Skip to content

fix(bindings): the Bindings page misses routes stored under parsed - #1657

Merged
shanselman merged 2 commits into
openclaw:mainfrom
SebTardif:fix/f038-bindings-envelope
Oct 20, 2026
Merged

shanselman merged 2 commits into
openclaw:mainfrom
SebTardif:fix/f038-bindings-envelope

Conversation

@SebTardif

@SebTardif SebTardif commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: the Bindings page shows single-agent mode when config.get has routes under parsed.

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 bindings array. config.get keeps that array on parsed, and the channel, account, and peer live under match. The page now uses the same parsed-then-config root as the config editor, then reads match.

Evidence

OpenClaw 2026.9.6 on 127.0.0.1:19273, auth none, disposable state. config.get had no top-level bindings. parsed.bindings length was 1. The item's top-level channel was absent. match.channel was telegram, match.accountId was work, agentId was main, and the peer kind was direct.

Production ConfigEditorModel.ReadBindingRoutes on that payload, head a826c7bbd4878da04164ad5f5df01aef33c69717:

top_has_bindings=False
routes=1
channel=telegram
account=work
agent=main
peer_is_direct=True
peer_has_id=True

The first binding shape, with channel on the object itself, was rejected by the gateway as invalid input. The accepted shape is agentId plus match.

Isolated Bindings page on head 4e8e889d2ce0c508a46fe2a5b62668f53cad2048 (empty retrigger; the product diff is a826c7bb). 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:

BindingsPageMarker=Bindings
StatusPillText=Connected
row=telegram
row=work
row=direct:chat-1
row=main

The disposable config was then saved with bindings set to an empty array. openclaw doctor --fix was not run. Live config.get reported parsed_bindings_len=0. Refresh was invoked. The same page then showed:

BindingsPageMarker=Bindings
StatusPillText=Connected
Title=Single-agent mode
Message=All messages route to the default agent. Add bindings for multi-agent routing.

telegram, work, and direct:chat-1 were absent. The Agents navigation item named main was still in the rail. That item is not a binding row.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

  • windows-winui-interactive: opened the isolated Bindings page on this head. Populated route texts were telegram, work, direct:chat-1, and main. 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.ps1 exit 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.
  • Head 4e8e889d2ce0c508a46fe2a5b62668f53cad2048 is an empty retrigger. The UI job on a826c7bb aborted after five minutes of inactivity during markdown and workspace layout tests. The product diff remains a826c7bb. Required checks on 4e8e889d are green.

Real behavior proof

  • Behavior or issue addressed: Bindings were inside parsed, so a top-level lookup saw no routes. The live payload has one route under match, and the Bindings page now shows that route.
  • Real environment tested: Windows, .NET SDK 10.0.401, OpenClaw 2026.9.6 (eb377ac), gateway 127.0.0.1:19273, auth none. The installed gateway on port 18789 was not the peer. Isolated tray, head 4e8e889d2ce0c508a46fe2a5b62668f53cad2048.
  • Exact steps or command run after this patch: Started that gateway with one match binding, paired the isolated tray, opened openclaw://hub/bindings, and read the UI Automation names. Cleared bindings in the disposable config, confirmed parsed_bindings_len=0, invoked Refresh, and read the names again.
  • Evidence after fix: populated row telegram, work, direct:chat-1, main. Empty page title Single-agent mode.
  • Observed result after fix: The connected Bindings page listed the route stored under match. With no bindings, it showed single-agent mode.
  • What was not tested: No screenshot was saved or attached. The signed installer and WSL setup E2E pools were not run.
  • Environment tested: Windows, .NET SDK 10.0.401, OpenClaw 2026.9.6, isolated tray against 127.0.0.1:19273.
  • PR head or commit tested: 4e8e889d2ce0c508a46fe2a5b62668f53cad2048
  • Exact steps or command run: open the Bindings page, then refresh after bindings is an empty array.
  • Evidence after fix: UI Automation names listed above.
  • Observed result: populated route, then single-agent mode.
  • Screenshot or artifact links verified? No
  • Not verified or blocked: screenshot attachment. The page text was copied from UI Automation.

Security Impact

  • New permissions or capabilities? No
  • Secrets or tokens handling changed? No
  • New or changed network calls? No
  • Command or tool execution surface changed? No
  • Data access scope changed? No
  • If any answer is Yes, explain the risk and mitigation:

Compatibility and Migration

  • Backward compatible? Yes
  • Config or environment changes? No
  • Migration needed? No
  • If yes, list the exact upgrade steps: none

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

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]>
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed October 6, 2026, 8:55 PM ET / October 7, 2026, 00:55 UTC (Revision 3).

ClawSweeper review

What this changes

The 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
Reviewed head: 4e8e889d2ce0c508a46fe2a5b62668f53cad2048

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with regression coverage, reported validation, and directly relevant current-head UI output.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): Current-head copied UI Automation output exercises BindingsPage against a real disposable gateway on Windows, showing the nested route and its removal after an empty-config refresh. It resolves the prior UI proof request; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Current-head copied UI Automation output exercises BindingsPage against a real disposable gateway on Windows, showing the nested route and its removal after an empty-config refresh. It resolves the prior UI proof request; no stored-data contract changes.
Evidence reviewed 8 items Pinned introduced change: The verified main-to-head delta changes only the Bindings page, its configuration projection helper, and helper tests. It reuses the existing parsed-then-config root selection.
Current main still needs the fix: Pinned main reads only top-level bindings and top-level channel, account, and peer fields. It does not consume parsed.bindings or match fields. No merged fixing PR is supplied in the captured context; the latest supplied release predates this unmerged branch.
Production response and display path: The gateway client emits the complete config.get payload; GatewayService copies it into AppState.Config. The page projects routes into existing row fields and clears its list when no routes remain. This changes display parsing without changing routing, authorization, configuration writes, or stored formats.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production and test LOC production +84/-21 (net +63), tests +96/-0 Production growth isolates route projection and safe field extraction, with four focused regression tests.

Technical review

Best 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.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. Current-head copied UI Automation output exercises BindingsPage against a real disposable gateway on Windows, showing the nested route and its removal after an empty-config refresh. It resolves the prior UI proof request; no stored-data contract changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): Current-head copied UI Automation output exercises BindingsPage against a real disposable gateway on Windows, showing the nested route and its removal after an empty-config refresh. It resolves the prior UI proof request; no stored-data contract changes.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This repairs incorrect route display on one companion page without changing actual message delivery.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): Current-head copied UI Automation output exercises BindingsPage against a real disposable gateway on Windows, showing the nested route and its removal after an empty-config refresh. It resolves the prior UI proof request; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Current-head copied UI Automation output exercises BindingsPage against a real disposable gateway on Windows, showing the nested route and its removal after an empty-config refresh. It resolves the prior UI proof request; no stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The verified main-to-head delta changes only the Bindings page, its configuration projection helper, and helper tests. It reuses the existing parsed-then-config root selection. (src/OpenClaw.Tray.WinUI/Services/ConfigEditorModel.cs:41, 4e8e889d2ce0)
  • Current main still needs the fix: Pinned main reads only top-level bindings and top-level channel, account, and peer fields. It does not consume parsed.bindings or match fields. No merged fixing PR is supplied in the captured context; the latest supplied release predates this unmerged branch. (src/OpenClaw.Tray.WinUI/Pages/BindingsPage.xaml.cs:83, 839dad2936c7)
  • Production response and display path: The gateway client emits the complete config.get payload; GatewayService copies it into AppState.Config. The page projects routes into existing row fields and clears its list when no routes remain. This changes display parsing without changing routing, authorization, configuration writes, or stored formats. (src/OpenClaw.Tray.WinUI/Pages/BindingsPage.xaml.cs:83, 4e8e889d2ce0)
  • Current-head real UI proof resolves prior request: The captured PR body identifies head 4e8e889 and an isolated Windows tray connected to a disposable OpenClaw 2026.9.6 gateway. Copied UI Automation output shows telegram, work, direct:chat-1, and main in the populated page; after clearing bindings and refreshing, it shows Single-agent mode and confirms the former route texts are absent. This directly satisfies the prior request for populated and empty page screenshots, recording, or copied UI diagnostics. Captured sourceRevision: c9ad78e0a238e96f39e6838f26b4ad2625d58cf9cd334101ff957bd3a3943594. (4e8e889d2ce0)
  • Applicable UI proof policy: The full root AGENTS.md and applicable proof-validation skill were read. They accept copied UI diagnostics from the current isolated app; screenshot attachment is therefore not an additional blocker for the supplied visible row and empty-state evidence. No nested AGENTS.md or maintainer-note files were found in the inspected paths. (.agents/skills/openclaw-proof-validation/SKILL.md, 4e8e889d2ce0)
  • Regression coverage and reported validation: Four added tests cover parsed precedence, config fallback, nested match fields, and an envelope without bindings. The captured body reports a successful full build, 4262 passing shared tests with 33 skips, and 3994 passing tray tests; supplied current-head required checks are successful. No builds or tests were executed during this read-only review. (tests/OpenClaw.Tray.Tests/ConfigEditorModelTests.cs:138, 4e8e889d2ce0)

Likely related people:

  • Ranjesh: Raw commit 9de9b5b adds src/OpenClaw.Tray.WinUI/Services/ConfigEditorModel.cs:27 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9de9b5ba0f8a; files: src/OpenClaw.Tray.WinUI/Services/ConfigEditorModel.cs)
  • Scott Hanselman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-06T23:51:32.130Z sha a826c7b :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-07T00:12:04.814Z sha 4e8e889 :: needs real behavior proof before merge. :: none

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]>
@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 7, 2026
@karkarl

karkarl commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Global triage: NEEDS_HUMAN_TEST. Take confidence 55%; recommendation confidence 97%; effort small; risk medium.

Reviewed exact head 4e8e889d2ce0. GitHub currently reports CLEAN with 28 passing, 0 failing, and 0 pending checks. proof label is sufficient. Durable automated signal: Codex review: needs maintainer review before merge..

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.

@shanselman shanselman added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 20, 2026
@shanselman

Copy link
Copy Markdown
Collaborator

Maintainer validation before landing (head 4e8e889, locally merged with main 18f33ce, no drift in touched files): ./build.ps1 passed; dotnet test tests/OpenClaw.Shared.Tests 4429 passed / 36 skipped / 0 failed; dotnet test tests/OpenClaw.Tray.Tests 4243 passed / 0 failed. Independent review (Copilot code-review subagent fallback, P0-P3; Codex/Claude CLI unavailable on this host, so no helper isolation claimed): no P0-P3 findings. Existing exact-head real Gateway UI Automation proof in the PR body still applies. Thanks @SebTardif!

@shanselman
shanselman merged commit 4414ef5 into openclaw:main Oct 20, 2026
29 checks passed
@shanselman shanselman removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 20, 2026
larroy pushed a commit to larroy/openclaw-windows-node that referenced this pull request Oct 20, 2026
…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]>
@clawsweeper clawsweeper Bot mentioned this pull request Oct 29, 2026
5 of 16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants