fix(core): close stale watcher after shortcut restart#8153
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThe change separates build and server resource cleanup from complete shutdown, keeping restart watchers active for retryable restarts and closing them during full shutdown. CLI shortcut wiring now uses a dedicated restart helper. A new end-to-end case configures file-based restart watching, launches the CLI in development mode, triggers a keyboard restart, modifies the watched file, and verifies the restart logs. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
Summary
This PR prevents successful CLI shortcut restarts from leaving the previous restart watcher active. It closes the old watcher only after the replacement server starts successfully, preserving failed-restart retries, and adds focused end-to-end coverage.
Related Links