fix(desktop): restore auto-restart of stale daemon in dev mode#1032
Conversation
Partially reverts 8b5cbc4 to restore the mtime-based detection that automatically restarts the terminal daemon when the script is rebuilt in development mode. This fixes connection errors that occur when the daemon gets out of sync with the app after code changes. Keeps the pty-subprocess.ts fix from the original commit (waiting for tree-kill callback before exiting).
📝 WalkthroughWalkthroughA development mode enhancement that detects when the daemon script has been rebuilt and automatically restarts the daemon. The implementation tracks the daemon script's modification time and triggers a restart during connection attempts if changes are detected. Changes
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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
Test plan
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.