Repository navigation
fix: Bindings stays on the spinner when config.get fails - #1857
Conversation
A connected Bindings load waited forever when config.get was rejected or never answered, and Refresh stayed disabled. Raise ConfigGetFailed when config.get is not sent or the gateway rejects it. Bindings stops that load on the signal or after 15 seconds. The raw gateway text stays in the log. The page shows a fixed message. Validation: ./build.ps1 passed. Shared 4648 passed, 24 skipped. Tray 4510 passed. The two new Bindings checks failed on the spinner before this change and passed after it. Signed-off-by: Sebastien Tardif <[email protected]>
|
🦞👀 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: needs maintainer review before merge. What this changesThe Bindings page handles rejected or unanswered configuration requests with a localized error and an enabled Refresh button. Example: A connected gateway leaves the Bindings config.get request unanswered for 15 seconds.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a source-confirmed loading failure still present on current main, with sufficient runtime evidence and no blocking production finding. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherBindings reads configuration through the operator gateway client, stores successful snapshots in AppState, and projects loading, routing rows, and recovery messages into WinUI controls. flowchart LR
A[Bindings page] --> B[Correlated gateway request]
B --> C[Gateway response or timeout]
C --> D[Page lifecycle guard]
D --> E[AppState configuration]
E --> F[Bindings rows]
D --> G[Error and Refresh]
Technical reviewBest possible solution: Land the focused correlated-request repair while preserving the existing AppState, loading-state, and disconnected-recovery owners. Do we have a high-confidence way to reproduce the issue? Current-main source shows that rejection or silence produces no configuration update to finish loading, and the contributor supplies matching post-fix runtime observations. Is this the best way to solve the issue? The repair appropriately reuses the existing response-aware RPC implementation instead of adding transport failure events or a parallel timeout mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against de162ba66028. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 HistoryReviewed October 24, 2026, 1:36 AM ET / 05:36 UTC (Revision 3). |
A rejected or silent config.get left Bindings on the spinner. The page now waits on its own config.get. A late failure from the request that Refresh replaced does not fail the new load. Signed-off-by: Sebastien Tardif <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Tray failed StopAsync_CancelsAndDrainsInFlightDirectConfirmation after 2 seconds. That test is outside this Bindings change, and it passes locally. A fork cannot rerun the failed job. Signed-off-by: Sebastien Tardif <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: Copilot App <[email protected]>
|
Copilot triage agent here, not Scott. Thank you for the spinner fix. The independent reviews found no blocker after a small maintainer patch, Validation on the exact head: |
* fix: Bindings stays on the spinner when config.get fails A connected Bindings load waited forever when config.get was rejected or never answered, and Refresh stayed disabled. Raise ConfigGetFailed when config.get is not sent or the gateway rejects it. Bindings stops that load on the signal or after 15 seconds. The raw gateway text stays in the log. The page shows a fixed message. Validation: ./build.ps1 passed. Shared 4648 passed, 24 skipped. Tray 4510 passed. The two new Bindings checks failed on the spinner before this change and passed after it. Signed-off-by: Sebastien Tardif <[email protected]> * fix: Bindings config.get failure is tied to that request A rejected or silent config.get left Bindings on the spinner. The page now waits on its own config.get. A late failure from the request that Refresh replaced does not fail the new load. Signed-off-by: Sebastien Tardif <[email protected]> * ci: retrigger after an activation-router timeout Tray failed StopAsync_CancelsAndDrainsInFlightDirectConfirmation after 2 seconds. That test is outside this Bindings change, and it passes locally. A fork cannot rerun the failed job. Signed-off-by: Sebastien Tardif <[email protected]> * fix: retain pending Bindings response across config updates Co-authored-by: Copilot App <[email protected]> --------- Signed-off-by: Sebastien Tardif <[email protected]> Co-authored-by: Scott Hanselman <[email protected]> Co-authored-by: Copilot App <[email protected]>
What Problem This Solves
Fixes: the Bindings page keeps its spinner up when the gateway is connected but
config.getis rejected or never answered.User Impact
User impact: a failed or stalled bindings load shows "Could not load bindings" and enables Refresh, so the page can be tried again.
Why This Change Was Made
RequestConfigAsyncreturned when the frame was sent. Anok: falseresponse was only logged, and a missing response had no deadline. Bindings cleared its spinner only after a config snapshot. Refresh stayed disabled for that whole wait.Bindings now waits on its own
config.getfor 15 seconds. A rejection or a timeout stops that load and shows a fixed sentence. The gateway's error text stays out of the page, because that text can include config details. A late failure from the request that Refresh replaced does not fail the new load.Evidence
On
7b7aedfb4a41115461657510a2a0e84c2d6108f4, whose tree is identical to head6f9f24d728c32d34ab5675e7d32a055ac4eff87e, an isolated fixture tray opened Bindings. The firstconfig.getwas rejected. The page showed the error and enabled Refresh. The nextconfig.getwas left unanswered until the same error returned and Refresh was enabled again. Refresh started anotherconfig.getwhile the previous request was still unanswered. That late rejection left the page on "Loading bindings...". The current request then returned an empty bindings snapshot and the page showed Single-agent mode.Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: the Bindings page in the isolated tray shows the load error, the retry, and the late response.Validation
./build.ps1 -Project Traysucceeded on product commit7b7aedfb4a41115461657510a2a0e84c2d6108f4. Head6f9f24d728c32d34ab5675e7d32a055ac4eff87eis an empty retrigger of that commit.Real Behavior Proof
config.getis rejected or never answered. A late failure can also fail the refresh that replaced it.OPENCLAW_TRAY_DATA_DIR, synthetic gateway.6f9f24d728c32d34ab5675e7d32a055ac4eff87e. The log and UI Automation were collected on parent7b7aedfb4a41115461657510a2a0e84c2d6108f4, which has the same tree.openclaw://hub/bindings. Reject the firstconfig.get. Leave the nextconfig.getunanswered until the page stops waiting. Click Refresh, leave that request unanswered, click Refresh again, then deliver the previous request's rejection before the current request succeeds.config.getand UI Automation read titleCould not load bindings, messageThe gateway did not return bindings. Refresh to try again., andRefreshButtonenabled. At 22:11:14 anotherconfig.getwas sent and left unanswered. The same error returned andRefreshButtonwas enabled. At 22:13:01 Refresh sent anotherconfig.get. At 22:13:02 the log recordedGateway request failed: config.get rejectedwhile UI Automation readLoading bindings...,RefreshButtondisabled, and no error title. The current request then applied the empty snapshot: titleSingle-agent mode, messageAll messages route to the default agent. Add bindings for multi-agent routing.,RefreshButtonenabled, and no error title.config.getleaves the loading state and enables Refresh. A late rejection does not replace the load that is still in flight. The successful retry shows Single-agent mode.Security Impact
Compatibility and Migration
Review Conversations