Skip to content

Add hold-to-quit progress bar and experimental toggle#238

Closed
jmcte wants to merge 3 commits intoDimillian:mainfrom
jmcte:jmcte/codex/quit-hold-indicator
Closed

Add hold-to-quit progress bar and experimental toggle#238
jmcte wants to merge 3 commits intoDimillian:mainfrom
jmcte:jmcte/codex/quit-hold-indicator

Conversation

@jmcte
Copy link
Copy Markdown
Contributor

@jmcte jmcte commented Jan 25, 2026

Summary

  • add hold-to-quit progress bar centered at top of window
  • add experimental toggle to enable hold-to-quit behavior
  • wire Cmd+Q handling through Tauri menu event and settings

Testing

  • npm run test

Closes #237

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2f279abbca

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src-tauri/src/menu.rs
Comment on lines +364 to +368
"app_quit" => {
if should_hold_to_quit(app) {
emit_menu_event(app, "menu-quit");
} else {
app.exit(0);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Ensure quit still works if renderer isn't listening

When hold-to-quit is enabled, the macOS quit menu path no longer calls app.exit(0) and instead only emits menu-quit to the main window. If the renderer isn’t ready (early startup) or has crashed/hung, no listener will ever call requestAppQuit, so the Quit menu/accelerator becomes a no-op and the app cannot exit normally. Consider adding a fallback exit when no window exists or after a short timeout if the event isn’t handled.

Useful? React with 👍 / 👎.

@Dimillian
Copy link
Copy Markdown
Owner

Fun but extremely weird

@Dimillian Dimillian closed this Jan 26, 2026
@jmcte jmcte deleted the jmcte/codex/quit-hold-indicator branch February 17, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cmd-Q causes immediate exit - yes I know it is my fault

2 participants