Skip to content

fix(desktop): preserve cancellation after output publication - #10108

Merged
morluto merged 2 commits into
mainfrom
codex/fix-desktop-output-finalization
Nov 11, 2026
Merged

morluto merged 2 commits into
mainfrom
codex/fix-desktop-output-finalization

Conversation

@morluto

@morluto morluto commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

Desktop exports and witness records could report success after cancellation, or omit cancellation when both outputs failed cleanup. Preserve completed files and Evidence, report physical cleanup failures with exact caller cancellation, and retain real cleanup retries.

The shared output owner returns named publication, release and cancellation facts. All export/witness consumers use them; combined failures retain cancellation on their owning parent so CLI/MCP projection includes it. Typed owner checkpoints replace raw cancellation reasons. Saved witnesses retain a cleanup capability only while handles remain open, and return their existing record on the next matching check.

Scope: existing local output lifecycle, with current CLI/MCP contracts and execution authority preserved.

Evidence and validation

  • Five public output/witness regressions failed on base 48357cb3 and passed on initial repair 7209c56f. Earlier sibling and finalization gates passed 29 and five cases, plus six focused rows; those results remain qualified to that revision.
  • The two-output projection regression fails on 7209c56f and passes with the follow-up. It faults actual published descriptors, verifies both exact physical causes, checks one projected cancellation, and independently retries both cleanup owners while preserving the written files and Evidence.
  • Follow-up gates: full withheld suite 16 passed, selected export controls seven passed, final exact-cause regression and retry-order controls three passed. These counts overlap.
  • Current full npm run typecheck, scoped lint (zero errors; two existing size warnings), formatting and diff checks pass. No global recursive projection change or generated metadata update.

Authored captures and recording replies exercise real local filesystem descriptors and cleanup leases. No desktop application, GUI, provider engine or target ran. Published directory-close regressions ran on the current POSIX host and skip Windows; Windows runtime behavior remains unverified.

Author readiness

Human owner:

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@morluto
morluto marked this pull request as ready for review November 11, 2026 13:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T13:54:58.276957Z 094ddcc 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: 7209c56f1e

ℹ️ 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".

@morluto
morluto merged commit 12bf103 into main Nov 11, 2026
7 of 9 checks passed
@morluto
morluto deleted the codex/fix-desktop-output-finalization branch November 11, 2026 14:01
@morluto morluto added bug Something isn't working area: runtime Process capture and runtime observation labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant