Repository navigation
improve(workspace): shorten the account menu with a Gateway switcher and Help & about - #2066
Conversation
…and Help & about The account menu is now: profile header, Gateway submenu (saved gateways, Add gateway, Reconnect, Connection status, Connection settings, Gateway settings in Dashboard) with Retry now while offline, Settings with an Update badge and Ctrl+,, Pair a device (Dashboard Devices), and Help & about. - Add WorkspaceAccountMenu, a pure, unit-tested projection of the menu. - Rebuild the native MenuFlyout on each open; switch gateways through GatewayConnectionManager.SwitchGatewayAsync like the Connection page. - Show the profile email, the Gateway version and an avatar update dot. - Keep an in-progress Add or Edit form when Add gateway is used again. - Localize new strings in all six locales; update docs and UI tests. Co-authored-by: Copilot App <[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 changesThis PR groups account actions into Gateway and Help & about submenus, adds Gateway switching, and shows available updates. Example: A user has saved Home Gateway and office.example.com.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it provides a useful, collaborator-approved menu improvement absent from current main, and inspection found no definite introduced production bug. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherWorkspaceWindow projects saved Gateway, operator identity, connection, and update state into native account menus whose commands use existing connection, Settings, and Dashboard owners. flowchart TD
A[Gateway registry and app state] --> B[WorkspaceAccountMenu projection]
B --> C[WorkspaceWindow native menu]
C --> D[GatewayConnectionManager]
C --> E[Connection and Settings pages]
C --> F[Dashboard launcher]
Technical reviewBest possible solution: Retain the focused menu redesign, with WorkspaceWindow applying presentation and existing services owning connection and Dashboard effects. Do we have a high-confidence way to reproduce the issue? This is an enhancement; current-main source confirms the flat menu and missing account-menu Gateway switcher. Is this the best way to solve the issue? The smallest complete approach is the supplied pure projection and native presentation using existing command owners, preserving credential handling, saved preferences, and connection lifecycle. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b6f158ab257a. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource 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
LabelsLabel 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 Reviewed November 7, 2026, 1:23 AM ET / 06:23 UTC. |
… submenu Saved gateways were radio items, so the submenu reserved a check column in addition to the icon column and pushed every row right. Use plain items; the current Gateway shows its live status dot instead of a radio check. Co-authored-by: Copilot App <[email protected]>
…l-preview # Conflicts: # docs/ARCHITECTURE.md
Preserve notification navigation-admission ownership and account Gateway submenu status routing in the architecture ledger. Co-authored-by: Copilot App <[email protected]>
Temporarily instrument the unchanged Tray UI selection to identify the repeated native crash. Keep dumps and raw debugger logs in runner temporary storage; export only bounded exception and function-stack metadata. Co-authored-by: Copilot App <[email protected]>
Match the original coverage-off test process when running the temporary native diagnostic through workflow_dispatch. Co-authored-by: Copilot App <[email protected]>
Keep host, version, and status metadata out of the native shortcut slot. Expose the current Gateway through localized accessible state without restoring the extra check column. Co-authored-by: Copilot App <[email protected]>
Preserve the existing PR diagnostics and CodeQL updates alongside the validated accessibility fixes. Co-authored-by: Copilot App <[email protected]> # Conflicts: # docs/ARCHITECTURE.md
Keep the diagnostic evidence in its dedicated run; restore the normal CI runner and coverage behavior. No product fix or original-crash attribution is implied. Co-authored-by: Copilot App <[email protected]>
Retain the account update indicator alongside the shared Inbox badge. Preserve the authoritative Inbox ownership and account Gateway submenu status routing. Co-authored-by: Copilot App <[email protected]>
Preserve the localized current-Gateway state and metadata/shortcut separation alongside latest main Inbox ownership. Keep all temporary crash diagnostics removed. Co-authored-by: Copilot App <[email protected]>
Wait for the actual visible Back control after opening Settings from the account menu. An existing Settings page marker does not establish that the shell chrome is available to UI Automation. Co-authored-by: Copilot App <[email protected]>
Avoid a second tree traversal after readiness: the provider can temporarily omit a still-live Settings Back peer. Invoke the captured pattern once, outside polling, with existing deadlines and assertions preserved. Co-authored-by: Copilot App <[email protected]>
Preserve account-menu resources and ownership alongside Systems and current CI lanes. Co-authored-by: Copilot App <[email protected]>
Treat an absent, writer-locked, or incomplete DevToolsActivePort as pending within the existing startup deadline. Preserve cancellation, browser-exit and invalid-endpoint failures. Cover the CI sharing violation with real temporary-file regressions. Co-authored-by: Copilot App <[email protected]>
Use a live-extent scroll only for a settled, completed initial bring that left the same tail target offscreen. Preserve the existing retry/frame budget, generation and input cancellation, and track the corrective scroll's own completion. Keep ordinary initial, follow and reflow requests indexed. Co-authored-by: Copilot App <[email protected]>
Keep main's WaitForEndpointAsync (tolerates a partial or locked DevToolsActivePort, openclaw#2066) together with this branch's direct about:blank page connection and bounded startup diagnostics. The browser-level session id is no longer needed because the socket attaches to the page itself. Co-authored-by: Copilot App <[email protected]>
What Problem This Solves
The Workspace account menu had grown into a long flat list (Settings, Usage, Pair device, Connection status, Get apps, Connection timeline, Help, About), which made it hard to scan, and gave no way to see or switch Gateways from it.
User Impact
User impact: clicking your name now opens a short menu: your profile, a Gateway ▸ submenu (with Retry now while offline), Settings (with an Update badge and a new Ctrl+, shortcut), Pair a device, and Help & about ▸.
/nodes) instead of Channels.Why This Change Was Made
This follows the approved v5 design, which matches the upstream web identity menu. A new pure projection,
WorkspaceAccountMenu, decides the contents, and it is unit-tested.WorkspaceWindowstays the single place that applies the menu and runs its commands, as the architecture ledger requires. The nativeMenuFlyoutis rebuilt each time it opens, so the profile, saved Gateways, status and update badge are always current. Two-line rows, the badge and the profile picture come from small retemplated menu-item styles; native keyboard, focus and accessibility behavior is unchanged.Design notes
GatewayConnectionManager.SwitchGatewayAsync, the same path as the Connection page's saved-gateway Connect. No parallel clients.OperatorState), not the aggregate connection state./profile,/nodesand/configDashboard aliases exist inui/src/app-route-paths.tsfor every released Gateway from v2026.8.35 through v2026.11.1, so they are not version-gated.UpdateCommandCenterInfo.IsUpdateAvailableignores releases the user chose to skip.OfficialSupportSourceTests).docs/ARCHITECTURE.md,docs/CONNECTION_ARCHITECTURE.mdanddocs/GATEWAY_FIXTURE_TESTING.mdare updated.Evidence
/nodes, including the browser-failure Retry path.Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: the Workspace account menu, footer avatar and High Contrast menu states changed and need current-head visual and accessibility proof.Validation
Run locally on Windows ARM64. PR head is
6a62dfe9, which adds the Gateway submenu spacing fix on top ofe5e4f57a.Run on the
6a62dfe9source (just before it was committed):./build.ps1: all 5 projects built, and documentation validation passed (72 Markdown files).dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: 4868 passed, 0 failed, 25 skipped (opt-in MXC native SDK cases).dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: 5281 passed, 0 failed.git diff --check: clean.Run on
e5e4f57aand not rerun after the spacing fix. That fix only changes how saved-gateway rows are built, and these tests open the Gateway submenu without selecting a saved Gateway..\scripts\run-proof-tests.ps1 -Project 'tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj' -Filter 'FullyQualifiedName~AgentSelector_UsesConfiguredIdentityPictureNameAndId|FullyQualifiedName~SettingsChrome_SearchAndBidirectionalHistory|FullyQualifiedName~SidebarSessions_SelectOriginalKeys_AndKeepCompanionDraft|FullyQualifiedName~NativePagesAndOwnerLinks_StayInOneWorkspaceWindow' -ResultName 'account-menu-ui-fixall' -RuntimeIdentifier win-arm64: discovered 8, executed 8, passed 8.ChannelsNavigation_OpensTheGatewayDashboardAndOffersRetryWhenTheBrowserFails(withOPENCLAW_RUN_GATEWAY_FIXTURE_UI=1and the built app): 1 passed.Earlier on this branch, one Dark-theme run of
AgentSelector_UsesConfiguredIdentityPictureNameAndIdfailed at line 119 ("Missing native control 'WorkspaceNavHome'"). That is before the account-menu steps; it passed on rerun and in every later run.Real Behavior Proof
scripts/run-gateway-fixture.ps1), connected as "Fixture Owner".e5e4f57afor the steps below (a Debug build of the same source, made just before the commit). The submenu spacing in6a62dfe9was checked separately in the isolated fixture app on that source.6a62dfe9: opened Gateway ▸ again and compared each row's icon and text positions with the main menu.Fixture Owner(help text[email protected]);Fixture Gateway (…)(help textConnected · vfixture-1, AXExpand);Settings(acceleratorCtrl+,);Pair a device;Help & about(AXExpand).Fixture Gateway (…)(Connected),Add gateway…,Reconnect,Connection Status: Connected,Connection settings,Gateway settings in Dashboard.Documentation,Get support,Community,Release notes,GitHub,Get apps,Connection event timeline,About OpenClaw(version shown)./nodesin the fixture test.6a62dfe9, every Gateway ▸ row puts its icon about 19 px and its text 68 px from the row's left edge, the same as the main menu (20 px and 68 px). Before the fix the text sat about 104 px in, behind an empty check column.Yes/No/N/A): N/A. Popup menus are separate windows and were not captured as images; the evidence is accessibility-tree output.windows-winui-interactiveshould capture.Security Impact
Yes/No): NoYes/No): NoYes/No): No. The menu uses the existing Dashboard launcher, reconnect command andSwitchGatewayAsync. The email comes from the existingusers.selfresponse.Yes/No): NoYes/No): No. The profile email was already read fromusers.self; it is now shown in the account menu, never for the shared owner.Yes, explain the risk and mitigation: N/ACompatibility and Migration
Yes/No): YesYes/No): NoYes/No): NoReview Conversations