Repository navigation
fix(desktop): preserve cancellation after output publication - #10108
Merged
Merged
Conversation
morluto
marked this pull request as ready for review
November 11, 2026 13:33
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
48357cb3and passed on initial repair7209c56f. Earlier sibling and finalization gates passed 29 and five cases, plus six focused rows; those results remain qualified to that revision.7209c56fand 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.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: