Skip to content

P1: Prevent accidental app quit from silently stopping activ - #1291

Merged
currentbits merged 2 commits into
mainfrom
coder/p1-prevent-accidental-app-quit-from-sile-47403e
Sep 10, 2026
Merged

currentbits merged 2 commits into
mainfrom
coder/p1-prevent-accidental-app-quit-from-sile-47403e

Conversation

@currentbits

Copy link
Copy Markdown
Owner

No description provided.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-10T17:37:39.692553Z d0a3db9 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

…dental-app-quit-from-sile-47403e

# Conflicts:
#	electron/ipc.js
#	electron/main.js

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

Copy link
Copy Markdown

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: d0a3db9fec

ℹ️ 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 electron/quitGuard.js
Comment on lines +72 to +76
for (const t of threads) {
if (!t) continue;
if (t.pendingQuestion) questions += 1;
else if (t.pendingPlan) approvals += 1;
else if (t.awaitingInput && !runSet.has(t.id)) approvals += 1;

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 Exclude retired threads from the waiting-work scan

When a thread with a persisted question or plan is archived, explicitly settled, or moved to Trash, those operations leave pendingQuestion, pendingPlan, and awaitingInput on the stored row. Because store.getThreads() includes archived and trashed rows and this loop counts every row without checking those states, subsequent quits keep showing an active-work warning even though the thread was deliberately retired and is no longer actionable. Filter archived, trashed, and explicitly settled threads here, or clear their pending state when retiring them.

Useful? React with 👍 / 👎.

@currentbits
currentbits merged commit 71b644e into main Sep 10, 2026
0 of 6 checks passed
@currentbits
currentbits deleted the coder/p1-prevent-accidental-app-quit-from-sile-47403e branch October 3, 2026 16:07
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.

1 participant