fix(desktop): disable confirm-on-quit in development mode#539
Conversation
Skip the quit confirmation dialog when running in development mode to avoid interrupting hot-reload during development. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThe before-quit flow now detects development mode (NODE_ENV === "development") and disables the quit confirmation dialog when idle, preventing confirmation during hot-reload; existing confirmation behavior is unchanged for non-development environments. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (4)apps/desktop/**/*.{ts,tsx}📄 CodeRabbit inference engine (apps/desktop/AGENTS.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
apps/desktop/src/**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
apps/desktop/src/main/index.ts📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (1)📚 Learning: 2025-12-28T01:56:39.031ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
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 |
|
I found disabling it in dev settings once works. But yeah this is better for newcomers. |
Why
What / How
Skip the quit confirmation dialog when
NODE_ENV === "development":The setting continues to work normally in production builds.
Files
apps/desktop/src/main/index.tsTesting
bun run typecheck✓Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.