Skip to content

Implement #1228 Stop-during-prepare - #1269

Merged
currentbits merged 2 commits into
mainfrom
coder/implement-1228-stop-during-prepare-64798e
Sep 10, 2026
Merged

currentbits merged 2 commits into
mainfrom
coder/implement-1228-stop-during-prepare-64798e

Conversation

@currentbits

Copy link
Copy Markdown
Owner

No description provided.

Register a preparing active Map entry before first-turn
prefetchBootstrapNote so stopRun, threads:delete, and stopAll abort
the launch instead of spawning after bootstrap.
@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-10T16:20:11.728765Z 70ec99b 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.

@currentbits
currentbits merged commit aa9b2e4 into main Sep 10, 2026
0 of 6 checks passed

@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: 70ec99b5a6

ℹ️ 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/runner.js
Comment on lines 4109 to +4110
notifyRunTerminal(threadId, "failed", failure.text);
clearRun(threadId);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Clear the preparing entry before terminal notification

When local Grok setup fails while a follow-up is queued during bootstrap, notifyRunTerminal(..., "failed") calls afterFailedTurn and maybeDrainQueued while this run still occupies active. The queued startRun therefore fails with “A run is already active on this thread” and is restored with an error instead of running; orchestrator notices are likewise blocked by flushOrchNotices' active check. Move clearRun(threadId) before the terminal notification, as normal provider failure paths already do; the same reversed ordering occurs in both new Muse overlay-failure paths.

Useful? React with 👍 / 👎.

Comment thread electron/runner.js
Comment on lines +3390 to +3392
store.save();
pushDetail(threadId, lastWorkflowByThread.get(threadId) || null);
pushThreadsChanged();

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 Close the run span when settling an archived launch

When a thread is archived while prefetchBootstrapNote is pending, abortIfCancelled reaches this helper after otel.startRun has already opened the run span. This path clears the active entry and marks the thread idle but never calls notifyRunTerminal or otel.endRun, so the run remains in the OTel in-flight map and no stopped span is exported. Explicitly close the span, using the known runId, when this cancellation path reaches a still-present archived thread.

Useful? React with 👍 / 👎.

@currentbits
currentbits deleted the coder/implement-1228-stop-during-prepare-64798e 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