Repository navigation
Conversation
Fixes TypeScript error: Cannot find name 'maintenanceBlocked' at three call sites in runHeartbeatOnce (lines 1888, 1938, 2036). The variable was referenced but never declared in the outer runHeartbeatOnce function scope after the cron maintenance-window changes were added. Fixes openclaw#74952
|
Codex review: needs changes before merge. Summary Reproducibility: yes. Static inspection of PR head Next step before merge Security Review findings
Review detailsBest possible solution: Make one canonical maintenance-window branch mergeable by fixing the cron dependency contract and test wiring, adding public docs and changelog coverage, then reviewing the scheduler behavior before merge. Do we have a high-confidence way to reproduce the issue? Yes. Static inspection of PR head Is this the best way to solve the issue? No. The Full review comments:
Overall correctness: patch is incorrect Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 8f20d03373f8. |
|
Superseded by #79192. This targeted fix branch was useful while the maintenance-window work was being repaired, but the current canonical branch now carries the relevant maintenance-blocking fixes plus protocol/docs/proof coverage. Closing to avoid duplicate stale maintenance-window CI noise. |
Summary
TypeScript error fix for #74952. The variable
maintenanceBlockedwas referenced at three call sites inrunHeartbeatOncebut never declared in that function scope — the declaration existed only in the nestedreplayDeferredRunsclosure.Changes
let maintenanceBlocked = false;alongsidelet ran = false;in therunHeartbeatOncefunction scope.Root Cause
When maintenance-window role gating was added,
maintenanceBlocked = trueassignments were added to the outerrunHeartbeatOncefunction but the variable declaration was only added inside the innerreplayDeferredRunsclosure. TypeScript flaggedCannot find name maintenanceBlockedat the three outer-scope assignment/usage sites.Fixes #74952
codex/maintenance-window-scheduler-rebasedbranch before the full PR #74952 is merged.