Repository navigation
Description
Setup writes the gateway list from its own registry. Closing the setup window without Open leaves the running tray on the old list, so Remove gateway and switching the active gateway fail until the tray is restarted.
The fix is on the fork. Creating the pull request from this account is refused (CreatePullRequest is forbidden, and the REST create returns 404). The branch and compare link are ready:
- Branch:
SebTardif:fix/f113-adopt-registry-after-setup - Head:
de2b9eb254cfe83fac329e647d4e416946be61eb
The commit adopts the saved list when setup closes and this session has no unsaved edits. A failed remove restores the row. A failed switch restores the previous active gateway and the connection page shows the error.
Local validation on that head: .\build.ps1 succeeded. Shared tests passed 4263 (33 skipped). Tray tests passed 3996. An isolated debug tray opened setup, a token-free gateway record was written beside it, and closing setup logged Gateway list refreshed after setup closed. That process had no TCP connection to port 18789.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsBacklog
Activity
clawsweeper commentedon Oct 7, 2026
Codex review: this still needs some work.
Summary
Current main still contains the stale-registry failure; the same author's open fixing PR explicitly closes this issue, so it should remain open pending that PR.
Reproducibility: Source establishes the path: setup changes gateways.json through a separate registry, closing setup leaves the tray baseline unchanged, and subsequent removal or switching reaches the stale-save rejection; existing tests establish that rejection mechanism, but were not run here.
Next step
Review the existing repair in #1864 (fix: gateway remove and switch fail after setup is closed), resolve its outstanding validation, and let its merge close this issue.
Review details
Best possible solution:
Land guarded setup-close registry reconciliation with transactional gateway actions through the existing fixing PR.
Do we have a high-confidence way to reproduce the issue?
Source establishes the path: setup changes gateways.json through a separate registry, closing setup leaves the tray baseline unchanged, and subsequent removal or switching reaches the stale-save rejection; existing tests establish that rejection mechanism, but were not run here.
Is this the best way to solve the issue?
Guarded adoption after cleanup addresses the cause while preserving unsaved edits, persistence conflict checks, and connection ownership; the linked PR already owns this approach and should be reviewed rather than duplicated.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against de162ba66028.
Label changes
Label changes:
clawsweeper:linked-pr-open: Current issue advisory state selects this label.clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.clawsweeper:queueable-fix: Current issue advisory state no longer selects this label.clawsweeper:fix-shape-clear: Current issue advisory state no longer selects this label.Label justifications:
P2: Saved-gateway removal and switching fail after setup closes, with restarting the tray providing recovery.impact:ux-friction: The stale catalog makes gateway actions fail or appear successful until the tray reloads.Evidence reviewed
What I checked:
src/OpenClaw.Tray.WinUI/Services/WindowManager.cs:888, de162ba66028)src/OpenClaw.SetupEngine.UI/Pages/NativeGatewaySetupPage.xaml.cs:192, de162ba66028)src/OpenClaw.Connection/GatewayRegistry.cs:330, de162ba66028)src/OpenClaw.Connection/GatewayConnectionManager.cs:1623, de162ba66028)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed October 24, 2026, 9:40 AM ET / 13:40 UTC.
clawsweeper commentedon Oct 7, 2026
🦞⚠️
Automatic implementation stopped before completion.
Reason: The automatic implementation worker stopped before all deterministic gates completed. Open the workflow run for the exact blocker.
Worker: https://github.com/openclaw/clawsweeper/actions/runs/37689718805
github-actions commentedon Nov 8, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updated OpenClaw Windows details or it will be closed.