Repository navigation
fix(javascript): reuse shared AST child traversal - #7967
Conversation
[Low impact] The reviewed changes appear safe to merge; no blocking issue was found. SummaryReplaces duplicate child expansion in
Reviews (2) · Last reviewed commit: "Merge upstream main into AST traversal f..." · Reviewed by Greptile |
|
CI context: Static checks failed in For a baseline check, I fetched then-current Documentation completed successfully in this PR's run; other jobs remain queued or skipped. This observation does not claim the aggregate CI passed. I have not added unrelated formatting changes to this focused PR. |
Codex Review SummaryThis 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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
* fix(javascript): remove duplicate childNodes import The squash of #7967 re-added the import already introduced in afc1813, so typecheck failed with TS2300. * test(gdb): expect the command-output cap limitation The retained-record limitation now names the command-output setting. The coverage assertion still required the previous fixed-cap sentence. * test(cli): keep rejected mcp add values off Amp settings mcp add now rejects a flag in the --command value position. The Amp registration test still treated that invocation as a successful selection. --------- Co-authored-by: Cursor Agent <[email protected]>
Summary
Restore the architecture guard by reusing the existing JavaScript AST child-expansion owner in Electron call-path completion analysis.
On base
70a8325c38f44649898b2343aea4c13588ff0352,npm run verify:architecture-guardsfailed becauseElectronCallPathBlockPrefixes.possibleJumpsdirectly usedVISITOR_KEYSoutside the designated traversal owner. It passed after this change. No existing issue or duplicate PR was found in a bounded search; the guard failure is the concrete reproduction.Scope and behavior
childNodes; preserve the existing LIFO stack, per-visit budget, depth cutoff, label checks, and function/class exclusions.Validation and limitations
d157560d402fbd1b54069ff59039dcde73e4a7e1without conflicts; the PR diff remains the same two AST files. Upstream includes the formatting and Native fixture corrections that caused the previous hosted CI failure. Hosted CI completed successfully, including all eight test shards, Portable tests and the CI required gate; conditional lanes, including deep static, were skipped.792509bc231f4ea7776fb6a65b2b420cadc2f5e4, the two source test files plus the repaired Native fixture passed 206/206. Compiled public CLI and stdio MCP switch-selection and wrapped-call-path tests passed 25/25.git diff --checkpassed.check:ci:fastdid not pass: untyped oxlint was terminated by SIGKILL while running alongside typecheck. Typecheck passed separately, but oxlint also received SIGKILL when rerun alone. Full localnpm run checkand the full deterministic suite have not passed on this tree. Historical typed lint also received SIGKILL on an earlier snapshot; no current typed-lint result is claimed.Author readiness
Human owner: @WenyuChiou