Repository navigation
Conversation
…refactor #175077 removed [Symbol.dispose] from ConfigHealthStateStore and converted its sibling captures to const, but missed two in the stale-patch scope test, so the config-cli test typecheck shard fails on main (TS2741).
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
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 review: needs maintainer review before merge. What this changesReplace two obsolete using declarations with const in the config-health scope test. Example: Typecheck the config-cli test shard.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR is correct, and its exact two-line fix is already on main; the maintainer-authored keep-open guard leaves its disposition to a maintainer. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherConfig-health observations read persisted health facts and conditionally update them through shared-state owners; this PR only repairs declarations in their tests. flowchart LR
A[Config health scope test] --> B[Captured health store]
B --> C[Shared state worker]
C --> D[SQLite health entries]
A --> E[Config CLI typecheck]
Technical reviewBest possible solution: Retain the identical repair already on main and let the author settle this redundant PR. Do we have a high-confidence way to reproduce the issue? The original base contains two using captures of a non-disposable store, establishing the reported compiler failure from source; fetched main already corrects both, and no local tests were run. Is this the best way to solve the issue? The minimal declaration change follows the intentional refactor without restoring obsolete lifecycle machinery or weakening assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fb8d6eded985; fix evidence: commit 7b727f04d23f, main fix timestamp 2026-10-17T06:42:40Z. Provenance checked
SecurityNone. EvidenceWhat I checked:
PR surfaceTests 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 17, 2026, 2:54 AM ET / 06:54 UTC. |
|
Closing as redundant: main already carries the identical fix in 7b727f0 ("test(config): follow health observation disposal removal"), which landed before this PR was opened. |
What Problem This Solves
Main is red on the config-cli test typecheck shard (
test/tsconfig/tsconfig.core.test.config-cli.json):#175077 (8d89449) removed
[Symbol.dispose]fromConfigHealthStateStoreand converted the siblingusingcaptures in these tests toconst, but missed these two in the stale-patch-basis test. The shard only runs for PRs that select it, so every such PR now fails typecheck. First seen on #174797 (job 117330504961).Fix
Convert the two remaining
usingdeclarations toconst, matching #175077's own conversion. Test-only, 2 lines.Evidence