Skip to content

improve: explain connection pills and open matching dashboard pages - #2137

Merged
bkudiess merged 1 commit into
openclaw:mainfrom
bkudiess:bkudiess-connection-status-details
Nov 13, 2026
Merged

bkudiess merged 1 commit into
openclaw:mainfrom
bkudiess:bkudiess-connection-status-details

Conversation

@bkudiess

@bkudiess bkudiess commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Connection settings shows status pills such as "1/2 channels" without explaining which channel needs attention or offering a useful next step.

User Impact

All six header pills explain their meaning. Channels, clients and today's cost open the matching Channels, Systems and Usage web dashboard pages; Shared token keeps its copy action and gains keyboard access. Connection type and hostname remain informational, with hover tooltips and screen-reader help.

Why This Change Was Made

Use native buttons and the existing dashboard launcher rather than a new connection or navigation owner. Channel help includes reported statuses and redacted errors, refreshes even when the ready count is unchanged, and keeps keyboard focus during updates. All six locales are updated; native interaction states and aligned pill fills are preserved.

Evidence

The real ARM64 app passed the focused fixture journey: partial channel readiness, same-count error updates, retained keyboard focus while the preceding client pill disappears/reappears, readiness transitions, Axe accessibility, and the three dashboard destinations.

Current-build screenshots use synthetic Gateway data; the full-page capture includes a test notification and does not show an expanded tooltip. Both uploaded assets were fetched back and visually verified.

Connection pills close-up from the current native build

Full Connection page screenshot and proof notes

Independent Hanselman source review used claude-opus-5.5 and gpt-6-astra, both at high reasoning. The three accepted P3 observations were fixed and both reviewers confirmed those repairs. A subsequent Opus-only tint-alignment observation was also fixed; Opus confirmed the exact final commit and proof package with no actionable P0-P3 findings in that narrow final check.

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: Connection-page pill actions, accessible help, focus retention and visual alignment changed. The focused isolated ARM64 fixture passed; this does not claim complete formal pool execution.

Validation

Final source: cba142002eb7795d37155a65181f4bdd199076fe. The checks ran before commit against an uncommitted patch manually recorded as 8f44b2822db12588af764a6fe78bfadafb47d296; the committed parent-to-head diff has the identical digest. Committing did not change the tested source.

  • .\build.ps1: passed all projects on Windows ARM64; documentation checks also passed.
  • dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: 5,848 passed, 28 ordinary opt-in skips, 0 failed.
  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: 6,352 passed, 0 skipped, 0 failed.
  • git diff --check: passed.
  • Focused native invocation below: 1 passed, 0 skipped, 0 failed. It includes the changed-state Axe scan; the full Category=Accessibility inventory was not run locally.

The native invocation used a temporary task-owned V: mapping to this worktree for Windows path-length limits. It was executed on a private desktop through scripts\Invoke-PrivateDesktop.ps1 with fixture UI/screenshots enabled and the current non-Dev Debug ARM64 app explicitly selected. The mapping and owned app were cleaned up.

dotnet test V:\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-build --no-restore -c Debug -r win-arm64 --filter FullyQualifiedName~ConnectionGlancePills_ExplainTheirStateAndOpenTheMatchingDashboardViews --logger "trx;LogFileName=tint-fill-ui.trx" --results-directory "<private session artifacts>"

Real Behavior Proof

  • Environment tested: native Windows ARM64, isolated private desktop, non-Dev Debug Companion and synthetic fixture Gateway. No real Gateway or user settings were used.
  • PR head or commit tested: cba142002eb7795d37155a65181f4bdd199076fe, associated with the identical tested uncommitted source as described above.
  • Exact steps or command run: the filtered native invocation above navigated to Connection through local MCP, published partial channel health, focused Channels, updated its error without changing the count, removed/restored the preceding Clients pill, exercised healthy/partial readiness, then invoked Channels, Clients and Usage.
  • Evidence after fix: the fixture observed help text Ready channels: 1/2, telegram: running, slack: error (Sign in again) and browser handoff targets /channels, /systems, /usage on its own Gateway port. Keyboard focus stayed on Channels throughout refreshes. The changed page passed Axe.
  • Observed result: each actionable pill reached the expected handoff. Current native screenshot pixels show the sampled Local, hostname, clients and channels fills all spanning rows 189-217; before the final cosmetic fix, action fills only spanned 191-215.
  • Screenshot or artifact links verified? (Yes/No/N/A): Yes. Both GitHub-hosted assets in the proof comment were fetched back and visually verified.
  • Not verified or blocked: actual OS high-contrast rendering, an expanded tooltip screenshot, live web Dashboard loading, token-copy invocation, Release-shaped visual proof and the complete formal proof pool. Fixture browser launches are deliberately suppressed. The separately installed shared autoreview helper was unavailable; independent app-native source/rubber-duck reviews were used instead. Upstream route source was checked at released Gateway v2026.11.1; the user's installed Gateway version was not inspected.

Security Impact

  • New permissions or capabilities? (Yes/No): No.
  • Secrets or tokens handling changed? (Yes/No): Yes. The existing copy action now reads the active shared token at invocation instead of retaining a rendered value. Tooltip/help text never includes that token; channel error details are redacted before presentation.
  • New or changed network calls? (Yes/No): No new RPC or protocol. The new user-initiated entry points reuse the existing authenticated browser-launch path.
  • Command or tool execution surface changed? (Yes/No): No.
  • Data access scope changed? (Yes/No): No.
  • If any answer is Yes, explain the risk and mitigation: no broader credential export or capability is introduced. Existing dashboard credential policy, browser error reporting and Gateway ownership remain with their current owners.

Compatibility and Migration

  • Backward compatible? (Yes/No): Yes; existing health/status parsing and native connection behavior are unchanged. Dashboard handoff uses existing supported routes.
  • Config or environment changes? (Yes/No): No.
  • Migration needed? (Yes/No): No.
  • If yes, list the exact upgrade steps: N/A.

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.

No GitHub review conversations existed during preparation. Hosted CI and maintainer review are still required; local evidence is not a ready-to-merge claim.

Add localized explanations and native dashboard actions to connection glance pills. Retain focus across health updates, sanitize channel error details, and preserve native contrast states and aligned tint backgrounds.

Co-authored-by: Copilot App <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 13, 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.

@bkudiess

Copy link
Copy Markdown
Collaborator Author

Current isolated Windows ARM64 build for cba1420, using synthetic Gateway data. All six pills have explanations; Channels, clients and cost open the matching dashboard views. The close-up is cropped from the full native capture. Tooltips are not expanded in these images; the full-page capture includes a synthetic Slack notification that covers the rightmost pills. The native fixture also passed focus-retention, changed-state Axe accessibility and all three suppressed browser-handoff checks (1/1 passed).

Connection pills close-up from the current native build

Connection page in the isolated current native build

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: sufficient Contributor real behavior proof is sufficient. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

The PR adds localized explanations, keyboard-accessible actions, and matching dashboard links to Connection status pills.

Example: Telegram is running while Slack reports “Sign in again.”

  • Before: The “1/2 channels” pill gives no channel details or direct action.
  • After: Its help identifies Slack’s error, and activating it opens the Gateway Dashboard’s Channels page.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, focused implementation with scoped native proof and no blocking finding; redundant helper coverage keeps it below A.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Current-source Windows ARM64 screenshots and copied native observations cover Connection pill rendering, help updates, retained focus, accessibility, and all three production launcher handoffs. Browser launches were deliberately suppressed; actual Dashboard loading, token-copy invocation, expanded tooltip pixels, and OS high-contrast rendering remain unverified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users cannot tell which channel needs attention from the readiness count or open its management view directly.
Reason: The maintainer-authored direction adds useful guidance and shortcuts while preserving native presentation and established Dashboard ownership.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR provides a useful improvement absent from current main, with no blocking correctness or security finding.

Priority: P3
Reviewed head: cba142002eb7795d37155a65181f4bdd199076fe

Before merge

None.

Findings

None.

Tests

  • Low-value test tests/OpenClaw.Tray.Tests/ConnectionPageChannelMetricsTests.cs: Remove Details_ChangeWhenStatusOrErrorChangesWithoutChangingTheReadyCount: it repeats helper formatting assertions and cannot detect stale page help; the added native scenario already protects that distinct refresh failure.
  • Missing end-to-end proof: No base-fail/head-pass execution is recorded for the added regression coverage.
Agent review details

How this fits together

The native Connection page projects Gateway health, presence, usage, and registry data into status pills; user actions reuse the existing dashboard launcher or clipboard helper.

flowchart LR
  A[Gateway health and usage] --> C[Connection page]
  B[Active Gateway registry] --> C
  C --> D[Localized status pills]
  D --> E[Existing dashboard launcher]
  E --> F[Gateway dashboard]
  D --> G[Clipboard helper]
Loading

Technical review

Best possible solution:

Keep the existing page, channel-metrics helper, and dashboard launcher as owners of accessible explanations, focus-preserving refreshes, and destination handoffs.

Do we have a high-confidence way to reproduce the issue?

Current-main source directly shows the opaque informational channel, client, and cost pills; no failing runtime reproduction was attempted during this read-only review.

Is this the best way to solve the issue?

The implementation is appropriately scoped: it reuses existing owners, preserves the healthy-channel predicate, and retains mounted buttons to protect keyboard focus.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6ddc13b8eff7.

Provenance checked

  • Connection glance presentation keeps the original intent (672aadc: The Connection-page rebuild introduced glance chips as concise Gateway context while keeping connection and credential ownership outside the page.)
  • Shared-token copy action keeps the original intent (ed126f2: The shared-token chip intentionally copied the credential; this PR preserves that action, adds native keyboard access, and resolves the active token when invoked.)
  • Channel management destination keeps the original intent (4db2960: Native channel management was deliberately removed in favor of the Gateway Dashboard; the added shortcut follows that decision.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ranjesh: Raw commit ed126f2 adds src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:466 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ed126f2aac6d; files: src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Change scope Production +123/-33; resources +114/-6; tests +183; design documentation +11 Growth supports native actions, retained focus, synchronized translations, and a mounted interaction scenario without introducing another production owner.

Labels

Label changes:

  • add P3: This improves explanation, keyboard access, and navigation in an existing working Connection workflow.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • 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.

Label justifications:

  • P3: This improves explanation, keyboard access, and navigation in an existing working Connection workflow.
  • 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 12, 2026, 9:29 PM ET / November 13, 2026, 02:29 UTC.

@bkudiess
bkudiess merged commit 8d5e27b into openclaw:main Nov 13, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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.

1 participant