Repository navigation
Desktop: confirm quit during training - #7790
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e47e9508f1
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ece43efc75
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9da09c7f5f
ℹ️ 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".
| } else { | ||
| // Another quit path already has the dialog up; deny this request | ||
| // rather than promise a reply nobody will send. | ||
| NS_TERMINATE_CANCEL |
There was a problem hiding this comment.
Keep overlapping system termination pending
When a macOS logout/restart request arrives while a menu or tray quit confirmation already owns QUIT_IN_PROGRESS, spawn_quit_confirmation returns false and this branch returns NSTerminateCancel. AppKit therefore aborts the system operation even if the user accepts the already-visible dialog, because that dialog only calls app.exit and cannot reply to the canceled termination request. The remaining false-result branch is fresh evidence beyond the earlier NSTerminateLater fix; attach the pending system request to the existing confirmation instead of canceling it.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 80307ae: overlapping AppKit termination now attaches to the active menu or tray confirmation and receives the same final reply. Completion atomically closes attachment before draining the pending request, and panic paths reply false. Native macOS validation passed 200 Rust tests and all 25 lifecycle cases, including confirm, cancel, overlap, duplicate, and injected panic paths.
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Preserve the Windows WebView guards and the macOS quit interception setup.
Quitting with Cmd+Q or the app menu killed a running training job with no warning. The tray "Quit" item asks first; those paths reach the runtime directly and skipped it.
Handles
RunEvent::ExitRequestedwithcode: None(user-initiated quit only, so a programmatic exit or updater restart is unaffected) and shows the same confirmation. The dialog blocks, so it runs off the event loop. Also covers quitting mid-install, which had the same gap.