Skip to content

fix(javascript): preserve cleanup failures during preparation cancellation - #1654

Merged
N0zoM1z0 merged 1 commit into
mainfrom
fix/javascript-cleanup-cancellation-1563
Oct 11, 2026
Merged

N0zoM1z0 merged 1 commit into
mainfrom
fix/javascript-cleanup-cancellation-1563

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

A failed retained JavaScript analyzer cleanup can coincide with cancellation of the next caller during preparation. Preserve ProviderCleanupError instead of replacing it with a completed cancelled result, so the owned resource and retry diagnostic remain visible. Builds on main's preparation-cancellation correction.

Verify the failure through a real owned Node worker with an injected cleanup callback failure, then allow verified cleanup and prove subsequent analysis recovers. Move the filesystem/process cancellation suite into boundary tests and assert its retained partial observation. The injected callback establishes this failure projection; an actual OS cleanup denial was not observed.

Validation: 16 real process/cancellation boundary cases; npm run check:ci; npm run verify:test-discovery (794 files). Packed final head ba885214 and independently installed production dependencies on native Windows in an isolated Windows verification directory, using existing Node 22.19.0. Actual CLI JSON and pinned-SDK MCP pass: 170 tools, startup cancellation with retained partial evidence, timeout/partial views, subsequent successful analysis, paging/item lookup, tracing, close and ping. Input digests are unchanged and no owned worker roots remain. All 19 final-head GitHub checks passed, including the full test/coverage gate, Windows capability/package lane and both native package baselines. Real Hopper/Ghidra verification was not performed for this Node lifecycle change.

Fixes #1653. Refs #1563 and #1065.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@N0zoM1z0
N0zoM1z0 marked this pull request as draft October 10, 2026 23:53
@N0zoM1z0 N0zoM1z0 added area: domain Domain logic, errors, and pure functions area: providers Provider and capability discovery, including provider proposal triage area: tests Test suite and verification bug Something isn't working labels Oct 10, 2026
@N0zoM1z0
N0zoM1z0 marked this pull request as ready for review October 11, 2026 00:04
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: domain Domain logic, errors, and pure functions area: providers Provider and capability discovery, including provider proposal triage area: tests Test suite and verification bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(javascript): cancellation hides a failed owned-analyzer cleanup retry

1 participant