Skip to content

fix(javascript): yield during receiver and reference classification - #1557

Merged
N0zoM1z0 merged 2 commits into
mainfrom
fix/javascript-cooperative-receiver-reference-phases-1462
Oct 10, 2026
Merged

N0zoM1z0 merged 2 commits into
mainfrom
fix/javascript-cooperative-receiver-reference-phases-1462

Conversation

@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Large JavaScript files still run definition gathering, receiver classification, Electron alias classification and lexical-reference collection as uninterrupted scans. Drive these scans through the existing cooperative AST iterator and JavaScript analysis checkpoints, preserving synchronous domain facades, reference ordering and complete analysis results.

Refs #1462 and #1065. This does not close #1462: parsing and other semantic phases still have long steps.

Validation:

  • Pinned Node 24.18/npm 11.16, CPUs 13/15, nice 10, 2304 MiB process-family RSS guard.
  • 147 focused source tests; 44 compiled/public workflow tests including actual CLI/stdio MCP cancellation and wide receiver returns; 27 adjacent Electron tests including CLI/MCP preload overrides; cached typecheck/lint passed.
  • After merging current main (including perf(javascript): index returned object targets #1537), 162 tests in four affected suites passed. Thirty complete-IR corpus digests still match the original baseline.
  • Real unchanged 121-file ASAR: analysis 113.67 s, peak family RSS 1774424064 bytes; exact complete Evidence identity matched the pre-change baseline. Typed oversized-transport error retained the complete analysis; summary/pages, trace, identity rejection and close/stale/ping checks passed. This single run does not establish a throughput improvement.
  • Real largest ASAR module: open classification max step 1122.58 → 84.65 ms; Electron classification 763.13 → 35.40 ms; static analysis 790.18 → 69.35 ms. All four complete output digests matched, including the 91441981-byte semantic IR. Other semantic steps still reached ~980 ms.
  • Warmed real SDK cancellation: abort at ~202 ms, next ping ~35.66 ms, zero retained Evidence from the cancelled operation, then successful small analysis and cleanup. Input remained unchanged.

No tool schema, result limit or provider authority changes. Real Hopper/Ghidra verification is not applicable to these JavaScript-only changes and was not performed for this patch.

@N0zoM1z0 N0zoM1z0 added bug Something isn't working area: domain Domain logic, errors, and pure functions area: tests Test suite and verification performance Performance regressions, scaling limits, and bounded-resource work labels Oct 10, 2026
@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: tests Test suite and verification bug Something isn't working performance Performance regressions, scaling limits, and bounded-resource work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] JavaScript analysis blocks MCP ping and cancellation during synchronous computation

1 participant