Repository navigation
fix(target): preserve physical admission failures through cancellation - #12339
Merged
Merged
Conversation
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. |
Contributor
[Medium impact] The reviewed changes appear safe to merge; no blocking issues remain. SummaryPreserves file-read failures when a caller cancels during target selection, while keeping cancellation details and ownership of handles that still need closing.
Reviews (2) · Last reviewed commit: "fix(target): preserve cancellation facts..." · Reviewed by Greptile |
4 of 12 tasks
morluto
enabled auto-merge (squash)
November 19, 2026 13:03
jimpablo
added a commit
to jimpablo/rea
that referenced
this pull request
Nov 21, 2026
…-admission Resolve conflicts with upstream/main (8fefe18): - Remove docs/specs/README.md and docs/specs/native/macho-dsym-companion/* per morluto#12856 - Combine caller_input_path and debug_companion in liveBinaryTargetSummary.ts - Combine ComLoader import and debug_companion in GhidraAnalysisProfile.ts - Combine detectDatabaseEngine, boolean hasTrailingZipArchive, and retainTargetCancellation (morluto#12339) with dsym_path admission and cleanup in BinaryTargetResolver.ts - Update advertised schema summary for open_binary.json - Migrate new tests in ghidraCheckpointLifecycle.test.ts and GhidraProvider.behavior.test.ts to createTestTempDirectory (morluto#12722)
jimpablo
added a commit
to jimpablo/rea
that referenced
this pull request
Nov 21, 2026
…rship - Report Mach-O LC_UUID and FAT format failures with ParseFailureError (kind, format, offset, field) in machoDebugCompanion and preserve them through DebugCompanionAdmission. - Preserve established member refusals in readMemberWithBorrowedResources without running cancellation-sensitive post-read stability validation on rejected outcomes, and preserve physical EIO failures when the caller aborts with the same error object (morluto#12339). - Preserve cancellation arriving during outer target handle close after an inner companion handle close failure. - Defer partial staged-bundle removal in stageGhidraDebugCompanion to the private runtime owner so open destination descriptors are never unlinked before release (matching GhidraTargetSnapshot). - Remove explicit 10s test timeout in sessionMcp.test.ts, use exactOptional() on liveBinaryTargetSummary debug_companion, and align explicit format-selection rejection/docs with TargetFormatHint.
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
Preserve the physical failure when a selected binary target's descriptor read or hash fails and the caller cancels before cleanup finishes. Retain the caller's cancellation and any descriptor lease that still needs retry.
Root cause
The target resolver inferred cancellation from the ambient signal and from equality with its reason, even when the stable file owner had recorded a distinct physical outcome. It now uses the owner's typed cancellation, retains a later interruption as a secondary failure, and uses the same descriptor cleanup owner.
Validation
Four regression variants failed on the base. Two further cases reproduced loss of typed cancellation after a successful close retry. The final patch passed 131 focused tests, with one Windows-only fixture skipped on macOS, including real file handles with injected physical errors, cleanup retry, and MCP connection reuse.
npm run check:fast, formatting, and diff checks passed.Author readiness
Human owner: @morluto