Repository navigation
fix(release): restart gateway after migration convergence - #120091
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: found issues before merge. Reviewed August 6, 2026, 8:40 PM ET / August 7, 2026, 00:40 UTC. ClawSweeper reviewWhat this changesThe PR adds one exact-marker retry for manual gateways that exit during startup migration convergence in cross-OS release checks. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked by patch quality or review findings - 9 items remain Keep open: the focused retry addresses the intentional migration exit, but it can race final child output and omits an additional manual gateway relaunch path. Priority: P2 Review scores
Verification
How this fits togetherThe cross-OS release harness starts a gateway for fresh-install, upgrade, and installer scenarios, then waits for it to become ready. The changed coordinator reads launch-specific logs to distinguish an intentional convergence exit from an ordinary startup failure. flowchart LR
A[Release scenario] --> B[Manual gateway launch]
B --> C[Readiness check]
C --> D{Exited with migration marker?}
D -->|First matching exit| E[Restart once]
D -->|Other failure| F[Fail release lane]
E --> G[Continue release checks]
Decision needed
Why: The necessary repairs are concrete, but the maintainer-owned release harness and protected label require an explicit owner decision before accepting changed release behavior. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +197, Other +120. Total +317 across 6 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Await the child close/stdio-drain boundary before inspecting the launch log, and route every manual gateway relaunch—including Discord roundtrip—through the same bounded coordinator with caller-level regression coverage. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main deliberately emits the exact refusal at startup, while the affected manual readiness paths do not recover it; a focused release-harness run must still establish the full failing sequence. Is this the best way to solve the issue? No; the shared bounded coordinator is the right owner, but it must wait for final child output and cover the remaining manual relaunch caller to be the complete fix. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 265f43eded8c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
ad6c11f to
8fe9bb3
Compare
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
8fe9bb3 to
f86ea8a
Compare
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Maintainer release-gate disposition:
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where prepublication cross-OS release checks would fail after a manual gateway intentionally exited to converge plugin migration state during first startup.
The failure affected packaged fresh, packaged upgrade, installer manual fallback, and dev-update manual gateway lanes in the
2026.8.1-beta.1candidate run.Why This Change Was Made
The release harness now records each manual gateway launch's log offset and retries that launch exactly once only when the child has exited, reached the child-close/stdio-drain boundary, and its flushed current-launch log contains the exact startup-migration refusal prefix. The retry reuses the same home/config, environment, port, CLI, and log path, and replaces the cleanup handle.
Generic exits, paraphrased or stale markers, live readiness failures, and a second refusal still fail. The same bounded path covers the Discord manual gateway relaunch. Managed gateway services are intentionally unchanged; the Windows Scheduled Task failure remains a separate release blocker.
User Impact
Release validation can continue through the gateway's intentional one-time migration convergence restart without hiding unrelated startup failures.
This adds a bounded release-harness capability across the two manual gateway launch owners; it does not change product runtime behavior.
Evidence
31131961509showed the exact startup-migration refusal in all manual gateway lanes after install, onboarding, and model setup completed.node scripts/run-vitest.mjs test/scripts/openclaw-cross-os-release-checks.test.ts- 130 tests passed.pnpm format:checkand scopedoxlintpassed for all changed scripts.check:changedTestbox delegation could not sync this GWT because omitted tracked paths made the remote checkout unsafe. Its exact trusted local fallback passed all lightweight guards; the full script/test type lanes stopped on unrelated stale shared-checkout errors in untouched files before reaching this change.