Repository navigation
Conversation
The worker sent its already formatted resource error message, and the parent wrapped it in a second resource error with another path prefix. Limitations then read "main.js: Resource constraint during ...: main.js: Resource constraint during ...: <reason>". The worker now sends only the reason, and the parent formats the error once; the application consumer still prefixes the source path. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q3rXQaLacJ7gNBRkp7DovF
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. |
|
Serialize the typed resource reason once and let the application own path formatting, retaining partial static observations and reported limits. Reviewed-PR: #3039 Co-authored-by: balkan16 <[email protected]>
|
Superseded by |
Summary
analyze-javascript-applicationlimitations repeated the resource-constraint prefix for every file the parent declined:The worker now sends only the constraint reason, so the message is formatted once:
No separate issue: found while running the tool on a real app, and the fix is small and self-contained.
Problem and expected behavior
JavaScriptAnalysisWorkerServer.tsserializedcause.messagefor anAnalysisResourceConstraintError, which is already formatted asResource constraint during <operation>: <reason>.JavaScriptAnalysisWorker.tswrapped that text in a secondAnalysisResourceConstraintErrorwith a${file.path}:prefix.JavaScriptArtifactAnalysis.ts, the only consumer, prefixes${file.path}:again.Observed on a real Electron app (Postman desktop): every declined file produced the doubled text. Expected: the operation and path appear once.
Change and scope
cause.reasonfor a resource constraint; other failures unchanged.Not included: how the parent allocates the semantic budget across files.
Contribution scope: an ordinary fix within existing boundaries; a maintainer scope decision is not applicable.
Contract and boundary impact
JavaScriptAnalysisWorkerServer.ts)reportedLimitsand error tags unchangeddocs/public/product-catalog.json), package, or installation impact: noneExpected effects:
Evidence and regression coverage
tests/boundary/javascript/javascriptSourceAnalysisWorker.test.ts, "formats a real worker's declined semantic budget once". It runs the real owned worker process and declines its semantic budget at the admission frame, as an exhausted parent does, then checks the reason and that the message names the constraint once.For evidence-bearing changes:
Validation performed
npm run test:focused -- tests/boundary/javascript/javascriptSourceAnalysisWorker.test.ts— 10 passed (1 new)npm run check:fast— passnpm run verify:test-discovery— pass (1181 files)Compatibility, safety, and release
Before merge
type(scope): outcome.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q3rXQaLacJ7gNBRkp7DovF