Skip to content

fix(core): persist command identities before live output - #380

Merged
lg2m merged 2 commits into
feat/durable-command-deadlinesfrom
feat/live-command-receipts
Oct 21, 2026
Merged

lg2m merged 2 commits into
feat/durable-command-deadlinesfrom
feat/live-command-receipts

Conversation

@lg2m

@lg2m lg2m commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

QQ previously saved a native command receipt only with its final result. Running commands now persist their process identity before live output is published. The command owns this write, so cancellation cannot discard it; failed persistence kills/reaps the child and prevents safe settlement. Completion cannot replace or erase the recorded identity. No wire or store schema changes are needed.

Stacked on #379. This supplies private recovery evidence; it does not yet reattach running processes, authorize signalling stored PIDs, or provide OS containment.

Verified the live-receipt, mismatched-identity and cancellation-at-spawn regressions failed before their fixes. Passed 84 focused process/context/deadline/steering and schema tests, including failed receipt persistence, normal completion, cancellation, compaction, reopening and interrupted-run recovery. Both real CLI command-deadline and resume smoke scenarios pass. Formatting, repository lint and Clippy pass; broad and Windows checks run in CI.

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

chatgpt-codex-connector Bot commented Oct 20, 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-20T21:48:46.494015Z c1a5aef 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.

@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: 5fd081673a

ℹ️ 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 crates/qq-core/src/tools/shell.rs Resolved
@lg2m
lg2m added this pull request to stack #386 October 21, 2026 01:34
@lg2m
lg2m merged commit 24cbdef into main Oct 21, 2026
6 checks passed
@lg2m
lg2m deleted the feat/live-command-receipts branch October 21, 2026 04:20
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