Conversation
Remove the stale daemon detection logic that was killing and restarting the daemon on every app restart in development. This was causing unexpected terminal disconnections and issues when switching between git worktrees. The daemon now persists across app restarts. If users switch worktrees and encounter issues, they can manually restart via the tray menu.
📝 WalkthroughWalkthroughThis pull request removes daemon rebuild-detection logic from the terminal host client and refines subprocess disposal flow to ensure proper process cleanup. The changes eliminate script modification time tracking and related restart mechanisms in development mode, while adjusting the PTY subprocess handler to clear process references before invoking tree-kill. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
Summary
Why
The mtime-based stale check was causing the daemon to restart on every app restart, and also caused issues when switching between git worktrees (ENOENT errors for the old Electron binary path).
Test plan
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.