Skip to content

fix(ui): explain Dashboard disconnect notices when the widget sandbox never responds - #193029

Merged
hannesrudolph merged 5 commits into
openclaw:mainfrom
daniel-lxs:fix/dashboard-sandbox-origin-timeout-guidance
Nov 6, 2026
Merged

hannesrudolph merged 5 commits into
openclaw:mainfrom
daniel-lxs:fix/dashboard-sandbox-origin-timeout-guidance

Conversation

@daniel-lxs

@daniel-lxs daniel-lxs commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Closes #193027
Related: #116680

What Problem This Solves

Fixes: Dashboard cards show only “Disconnected” when the widget sandbox never reports ready on a non-loopback Gateway with no mcp.apps.sandboxOrigin configured, even while the Gateway stays connected.

User Impact

The card keeps its short reconnect notice and adds a collapsed “More info” hint pointing to mcp.apps.sandboxOrigin. If the proxy or tunnel doesn't route the sandbox port, the operator can see that they need a dedicated public origin routed to the sandbox listener. The hint explains a possible cause; it doesn't repair the route automatically.

Why This Change Was Made

The existing sandboxOrigin guidance appears after repeated authorization failures. An unreachable outer sandbox never gets that far. This adds guidance to the readiness-timeout path, without showing it for an explicit sandboxOrigin or a loopback host. The disclosure stays collapsed so the card remains readable.

Evidence

Inspected commit 669a0ff against its base, aeeff2c. The added regression cases cover a connected remote Gateway whose outer sandbox never announces readiness, checking the collapsed hint with no sandboxOrigin and its absence with an explicit sandboxOrigin.

On November 4, 2026, git apply --check --verbose passed for all four changed files against upstream main at 70805b3. The check used files fetched at that exact revision in a temporary directory; it did not change the branch or shared checkout. This establishes patch applicability, not runtime correctness.

The two board widget test files pass (30 tests, including the collapsed-until-opened check). oxfmt and ui:i18n:verify pass. Screenshots came from a mocked gateway (before/after images follow in a comment).

Test-line allocation

config/test-lines-allocations/dashboard-sandbox-origin-guidance-193029.txt allocates 28 lines, the net test growth after the frame tests started sharing one connected-gateway context. It covers the new ready-deadline notice with and without an authored sandboxOrigin, which no existing test reaches.

When a Dashboard widget's outer sandbox frame never reports ready, the card
kept only the short "Disconnected" notice even though the Gateway stayed
connected. For derived non-loopback sandbox origins, keep that short notice
and add a collapsed "More info" disclosure noting the gateway might run behind
a proxy or tunnel that doesn't route the sandbox port, with the
mcp.apps.sandboxOrigin fix that previously appeared only after repeated
authorization failures.
@daniel-lxs

Copy link
Copy Markdown
Member Author

Screenshots from a mocked gateway, hint expanded (wide and narrow):

expanded-reworded expanded-narrow

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 669a0ffa0602b3de64a2fd938f77e036795a1a3a, but the PR head is now c01887e5e72930acfb583122f793b33369b43311. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-04T22:25:07.801Z sha 669a0ff :: needs real behavior proof before merge. :: none

@daniel-lxs
daniel-lxs marked this pull request as ready for review November 4, 2026 22:31
@clawsweeper

clawsweeper Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

Total Control UI CSS has a fixed raw ceiling; the wrap and paragraph rules
put this PR 87 B over it. The rarely shown notice state now uses inline
styles, rendering identically with no stylesheet growth.
@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Nov 6, 2026
@hannesrudolph
hannesrudolph merged commit ee774cf into openclaw:main Nov 6, 2026
86 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dashboard widgets show only “Disconnected” when the sandbox origin is unreachable

2 participants