Repository navigation
fix(bindings): the Bindings page misses routes stored under parsed - #1657
Conversation
The Bindings page looked for a top-level bindings array. config.get keeps that array under parsed, and the channel lives under match. The page now uses the same parsed-then-config root as the config editor and reads the match object. 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. Reviewed October 6, 2026, 8:55 PM ET / October 7, 2026, 00:55 UTC (Revision 3). ClawSweeper reviewWhat this changesThe Bindings page now reads gateway configuration envelopes and nested route matching fields, with tests for route details and empty configurations. Merge readiness✅ Ready for maintainer review This PR remains necessary: pinned main still misses bindings inside the gateway response envelope. No blocking patch defects were found, and the updated current-head UI diagnostics satisfy the previous proof request. Priority: P2 Review scores
Verification
How this fits togetherThe Windows companion receives configuration from the connected OpenClaw gateway. Its Bindings page displays which channels, accounts, and peers route messages to each agent. flowchart TD
A[Connected gateway] --> B[Configuration response]
B --> C[Select parsed or config root]
C --> D[Read binding routes]
D --> E{Routes present}
E -->|Yes| F[Channel and agent rows]
E -->|No| G[Single-agent notice]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep one configuration-root parser and use its read-only route projection to display populated bindings and the empty state consistently. Do we have a high-confidence way to reproduce the issue? Yes. A config.get response containing parsed.bindings and nested match fields is ignored by pinned main's top-level lookup; the contributor supplies current-head real page output for the repaired path. Is this the best way to solve the issue? Yes. Reusing the existing envelope selection and adding a tested read-only projection is a focused repair that preserves the page's loading and empty-state behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 839dad2936c7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
The UI job aborted after five minutes of inactivity while MarkdownRendererListTests and WorkspaceSessionLayoutTests were active. Those tests do not use the bindings reader. This commit only restarts CI. Signed-off-by: Sebastien Tardif <[email protected]>
|
Global triage: NEEDS_HUMAN_TEST. Take confidence 55%; recommendation confidence 97%; effort small; risk medium. Reviewed exact head Maintainer or proof-pool owner: run every declared Windows proof pool at this exact head and replace blocked or historical evidence with current-head results. This is a triage classification, not a merge action. No branch changes were made. |
|
Maintainer validation before landing (head 4e8e889, locally merged with main 18f33ce, no drift in touched files): |
…penclaw#1657) * fix(bindings): read routes from the config.get envelope The Bindings page looked for a top-level bindings array. config.get keeps that array under parsed, and the channel lives under match. The page now uses the same parsed-then-config root as the config editor and reads the match object. Signed-off-by: Sebastien Tardif <[email protected]> * chore: retrigger UI tests after a host crash The UI job aborted after five minutes of inactivity while MarkdownRendererListTests and WorkspaceSessionLayoutTests were active. Those tests do not use the bindings reader. This commit only restarts CI. Signed-off-by: Sebastien Tardif <[email protected]> --------- Signed-off-by: Sebastien Tardif <[email protected]>
What Problem This Solves
Fixes: the Bindings page shows single-agent mode when
config.gethas routes underparsed.User Impact
User impact: a gateway binding is listed with its channel, account, and agent. A config object that has no bindings still shows single-agent mode.
Why This Change Was Made
The page looked for a top-level
bindingsarray.config.getkeeps that array onparsed, and the channel, account, and peer live undermatch. The page now uses the same parsed-then-config root as the config editor, then readsmatch.Evidence
OpenClaw 2026.9.6 on
127.0.0.1:19273, auth none, disposable state.config.gethad no top-levelbindings.parsed.bindingslength was 1. The item's top-levelchannelwas absent.match.channelwastelegram,match.accountIdwaswork,agentIdwasmain, and the peer kind wasdirect.Production
ConfigEditorModel.ReadBindingRouteson that payload, heada826c7bbd4878da04164ad5f5df01aef33c69717:The first binding shape, with
channelon the object itself, was rejected by the gateway as invalid input. The accepted shape isagentIdplusmatch.Isolated Bindings page on head
4e8e889d2ce0c508a46fe2a5b62668f53cad2048(empty retrigger; the product diff isa826c7bb). The tray used its own data directory, not the user profile. After pairing, the status pill read Connected. UI Automation names on the populated page:The disposable config was then saved with
bindingsset to an empty array.openclaw doctor --fixwas not run. Liveconfig.getreportedparsed_bindings_len=0. Refresh was invoked. The same page then showed:telegram,work, anddirect:chat-1were absent. The Agents navigation item namedmainwas still in the rail. That item is not a binding row.Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: opened the isolated Bindings page on this head. Populated route texts weretelegram,work,direct:chat-1, andmain. After the disposable config had no bindings, the page showed the Single-agent mode info bar. No screenshot file is attached. The copied UI Automation names above are the page trace.Validation
./build.ps1exit 0 (Shared, Cli, WinNodeCli, SetupEngine, WinUI).dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj: 4262 passed, 33 skipped, 0 failed, 4295 total.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: 3994 passed, 0 skipped, 0 failed.4e8e889d2ce0c508a46fe2a5b62668f53cad2048is an empty retrigger. The UI job ona826c7bbaborted after five minutes of inactivity during markdown and workspace layout tests. The product diff remainsa826c7bb. Required checks on4e8e889dare green.Real behavior proof
parsed, so a top-level lookup saw no routes. The live payload has one route undermatch, and the Bindings page now shows that route.eb377ac), gateway127.0.0.1:19273, auth none. The installed gateway on port 18789 was not the peer. Isolated tray, head4e8e889d2ce0c508a46fe2a5b62668f53cad2048.matchbinding, paired the isolated tray, openedopenclaw://hub/bindings, and read the UI Automation names. Clearedbindingsin the disposable config, confirmedparsed_bindings_len=0, invoked Refresh, and read the names again.telegram,work,direct:chat-1,main. Empty page titleSingle-agent mode.match. With no bindings, it showed single-agent mode.127.0.0.1:19273.4e8e889d2ce0c508a46fe2a5b62668f53cad2048bindingsis an empty array.Security Impact
Yes, explain the risk and mitigation:Compatibility and Migration
Review Conversations