Repository navigation
fix: clear the unused restart export from changed checks - #206805
Conversation
Related to #206739, which moved the production pending restart reader to its own module.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review Summary: ✅ CompletedThis 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. |
|
@clawsweeper re-review Please review signed head |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesThis PR removes an unused restart predicate re-export and imports the predicate directly in the existing test. Example: A developer runs pnpm check:changed with production unused-export checks enabled.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it completes the restart-reader cutover with a minimal cleanup, and no actionable correctness or security defects were found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Gateway restart controller updates shared in-memory restart handles, while model recovery and restart tests read their pending-state predicate from restart-pending.ts. flowchart TD
A[Gateway restart requests] --> B[Restart controller]
B --> C[Shared restart handles]
D[Pending restart predicate] --> C
E[Model recovery] --> D
F[Restart tests] --> D
Technical reviewBest possible solution: Remove the unused internal forwarding export while retaining the shared predicate and existing recovery assertions. Do we have a high-confidence way to reproduce the issue? Source confirms the production-unused forwarding export on current main, and the PR records failing base scans followed by passing candidate scans; this read-only review ran no target code. Is this the best way to solve the issue? This is the smallest complete fix because it removes the redundant export and updates its sole remaining test consumer without changing restart ownership or behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c7ea9f418610. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -1, Tests 0. Total -1 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 27, 2026, 11:19 AM ET / 16:19 UTC. |
|
Merged via squash.
|
…6805) Related to openclaw#206739, which moved the production pending restart reader to its own module.
Related: #206739
What Problem This Solves
On clean main,
pnpm check:changedfails the production unused-export scan because the old restart module still forwards a predicate after its production caller moved to a lighter module.User Impact
Developers can run the changed-file check with the production unused-export gate enabled. This is an internal cleanup with no user-visible change.
Why This Change Was Made
#206739 moved the production read to
restart-pending.ts. The forwarding export inrestart.tsremained for a single test file. The test now imports the predicate from the same module as the production caller, and the forwarding export is deleted. Production code is one line smaller.Evidence
ebabd17b7d79, two production Knip scans each found onlysrc/infra/restart.ts: hasPendingGatewayRestartand exited 1. The same scan on the candidate passed with zero findings. No ignore or baseline edit.pnpm check:changedpassed in 383.10 seconds, including all three Knip export scans, core typechecks, lint, and format.ebabd17b7d79. The signed head is51b37def0beaefc2e0d97edf8bc95a7cd7590e03.