refactor(desktop): quit-flag consolidation + desktop-action Exec composition (follow-up to #6894) - #6907
refactor(desktop): quit-flag consolidation + desktop-action Exec composition (follow-up to #6894)#6907Kitenite wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe desktop build shares Linux executable arguments between AppImage configuration and the New Window desktop action. Application quit state now resides in a shared module used by main-process and window lifecycle handlers. ChangesLinux launch arguments
Shared application quit state
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This PR consolidates quit-state handling and derives the Linux desktop action command from the configured executable arguments without changing the intended artifact behavior; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description includes a clear What & why section and a detailed testing section. It omits the template's Checklist section, but it provides equivalent evidence for the relevant checks and is otherwise complete.
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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 |
…dule index.ts kept isQuitting and windows/main.ts kept appQuitting, both set at the same moment in before-quit and read by different guards (crash-log suppression, second-instance, per-window close). One flag in lib/quit-state.ts now serves every reader, so the guards can't drift.
…bleArgs Declares executableArgs explicitly (same value as the AppImage default) and builds the New Window action's Exec from it, replacing the keep-in-sync comment with actual sharing.
3421250 to
03e0b3c
Compare
What & why
Follow-up cleanups from the review of #6894 (now merged):
main/index.tskeptisQuittingandwindows/main.tskeptappQuitting, both set at the same moment inbefore-quitbut read by different guards (crash-log suppression, the second-instance handler, per-window close). They now share one flag inmain/lib/quit-state.ts(markAppQuitting()/isAppQuitting()), so the guards can't drift apart. No behavior change.Execfromlinux.executableArgs. DeclaresexecutableArgs: ["--no-sandbox"]explicitly (identical to the AppImage default when unset, so the built artifact is unchanged) and builds the New Window action'sExecfrom it — replacing the keep-in-sync comment with actual sharing.Test plan
tsc --noEmitpasses in apps/desktop (re-run post-rebase onto main)biome checkclean on the four touched filesSummary by CodeRabbit