Skip to content

feat(runtime): reattach native commands after coordinator restart - #394

Merged
lg2m merged 2 commits into
feat/native-result-reconciliationfrom
feat/native-command-reattachment
Oct 21, 2026
Merged

lg2m merged 2 commits into
feat/native-result-reconciliationfrom
feat/native-command-reattachment

Conversation

@lg2m

@lg2m lg2m commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

A restart previously replaced a still-running command with an interrupted result. Startup now retains its original run and observes the original worker in the background. Completion, cancellation and shutdown save the actual terminal result before reclaiming the worker observation. A missing admission is durably cancelled to prevent a delayed submission from escaping recovery.

Explicit CLI resume waits for inherited commands, and queued prompts receive their saved results before making another model request. Server startup stays available; no command is resubmitted and no deadline is renewed. Interrupting the wait cancels and drains the inherited run and pauses its owning goal. Observation-only runs reject steering; pre-crash queued steering is visibly superseded. Automatic continuation of the interrupted model task remains separate.

Verified: both regressions failed before their fixes; 16 focused core recovery/execution tests and 16 worker/CLI resume/control tests pass, including the real CLI SIGKILL restart case. Formatting, lint and core/binary Clippy pass. Full checks run in CI. Stacked on #393.

@lg2m lg2m added the ci:full label Oct 21, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-10-21T11:56:29.649129Z fd95810 New commits
ℹ️ 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.

@lg2m
lg2m added this pull request to stack #392 October 21, 2026 11:32

@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: 2782f614ac

ℹ️ 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/headless.rs Resolved
Comment thread crates/qq-core/src/sessions/runtime.rs Resolved
@lg2m
lg2m merged commit fd50e15 into main Oct 21, 2026
10 checks passed
@lg2m
lg2m deleted the feat/native-command-reattachment branch October 21, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant