fix(ghidra): preserve lifecycle ownership and failure provenance

Refs #4502, #4506, #4508, #4518, #4522, #4526.

Retain snapshot, endpoint, launch rollback and compiler cleanup owners. Join request finalization and cleanup cancellation. Preserve bounded compiler output and original byte counts through capture and Ghidra failures. Normalize execFile cancellation once at its producer.

Validation includes real macOS Ghidra TCP MCP success workflows, controlled Node compiler/process fault fixtures, focused regressions and static checks. Native Swift compiler faults, Windows execution and stdio transport were not verified. Broader startup primary classification in #4517 and native adapter propagation remain unfinished.
This commit is contained in:
morluto committed 2026-10-17 00:44:02 +08:00
1 parent 5f9ac2c98a
commit 9d940c2f28
29 files changed
+3340 -578

No files matched your search

+4 -1
View File
@@ -314,7 +314,10 @@ export const registerSessionTools = (
{
cause,
reason: "cleanup_incomplete",
cleanupResources: ["process_capture_resources"],
cleanup: {
reason: "process capture cleanup remains incomplete",
resources: ["process_capture_resources"],
},
executionFailure:
cause instanceof Error
? cause.message || cause.name