Skip to content

fix(macOS): keep account actions visible with many gateways - #174655

Merged
fuller-stack-dev merged 3 commits into
mainfrom
openclaw/mac-menu-compact-20261016
Oct 16, 2026
Merged

fuller-stack-dev merged 3 commits into
mainfrom
openclaw/mac-menu-compact-20261016

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: the Mac account menu hides common app actions below its scroll edge when several gateways are saved.

User Impact

Settings, Updates, Usage, Pair device, Help, and appearance controls stay visible with nine gateways. Gateway switching and management remain available in a submenu. The Mac app no longer offers the redundant Get the apps action; browsers, embedded clients, and the Linux companion still do.

Why This Change Was Made

The existing shared Menu now owns a single current-gateway row and its nested switcher. Health, primary/selected indicators, keyboard navigation, Command/Control-click new-window actions, and conditional management actions retain their existing native bridge. There is no new state owner or menu-height override.

Evidence

  • Real bundled Control UI regression: nine gateways, unclipped common actions, keyboard submenu focus/escape, switching, new-window and settings actions, and a 390 × 500 viewport.
  • Native and embedded sidebar regressions cover switching, promotion, live snapshot updates, missing/empty/unknown-current snapshots, browser Apps availability, and disconnected/reconnected health.
  • The new visibility assertion fails on the original implementation and passes with this change.
  • Final candidate: 22 focused tests passed across six native/sidebar and bundled-browser suites, including the full native desktop and gateway-status suites. Production UI build, targeted oxlint (0 warnings/errors), formatting, diff whitespace, and line-cap checks passed.
  • The two initial CI failures were stale flat-menu assumptions: the Linux desktop test now opens the gateway submenu, and the offline status test selects the current-gateway menu item by role. Native readiness, per-document token replacement, modifier-click, management, and offline retry assertions remain intact.
  • API review caught an overbroad WebKit-bridge platform check. A new real Linux-adapter assertion failed before the repair; the existing Mac host marker now owns the Mac-only Apps omission. Final full-candidate precommit API review was scoped-clean for P0–P2.
  • pnpm tsgo:ui passed on the initial candidate. The final local rerun is blocked before checking source by the declaration-preparation guard rejecting the supported external pnpm graph; dependencies and guards were left unchanged. Exact-head hosted production and test typechecks passed. No live Mac app or Gateway deployment was used.

All screenshots use a synthetic account and synthetic gateways in the actual bundled UI, not a design mock.

Before After
Before: saved gateways obscure app actions After: compact current gateway keeps app actions visible

Gateway submenu: all nine gateways and settings remain available

Narrow and short window

Gateway submenu remains inside a 390 by 500 viewport

Completed CI investigation

Exact head f17c352fc54cee676aa99081b2ed9c90e1d59b18, run 38967078044, attempt 1 is failed, not green. Three inherited failures were independently inspected for the native pre-existing-CI landing exception:

  • Mock E2E shard 5/9: the optional-hover-runtime test times out opening /settings/about. The same assertion fails on both the actual CI merge and its exact main parent 892629fe27e1a36fd82e0a463e82fe89cdcb5bb2, independently reproducing the failure without this PR.
  • Real-Gateway shard 1/2: managed-media proof capture sees replaced image nodes while the original row/bubble and both current images remain.
  • Real-Gateway shard 2/2: the reconnect test transiently sees duplicate follow-up text before its settled/reload assertions.

Both real-chat tests and their complete chat, Gateway, capture, and fixture inputs are byte-identical between main and the tested merge. Neither opens the identity menu; all changed production logic is behind that unopened path. Both tests pass in isolated runs on the exact main parent and the actual CI merge. These passes do not establish a fix or reproduce their original timing interleavings; the inherited classification rests on the inspected unchanged inputs and excluded changed control flow. Assertions were not relaxed. All other selected jobs, including security and hosted types, passed; the aggregate fails only downstream of these three jobs. Full local checkout, source-object, failure-log and replay evidence is retained for the native verifier.

Dependency repair and current qualification

The optional-preview failure was repaired and landed in #174757 at d68385dea667b9aa72a5865396152b009ae95fe8, with all exact-head CI passing. This PR now mechanically incorporates that prerequisite at 67044dd80a6f09eba8f59d7e7c33b46f9c2af6e9; all seven menu implementation/test file blobs are unchanged from the API-reviewed candidate, with no conflict edits. The four affected bundled menu/native-desktop/status/health suites pass again (17/17). Current-head CI 38977570559 is fully green. Ordinary native landing is now qualified; no inherited-failure exception or protection bypass is requested.

@fuller-stack-dev fuller-stack-dev added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
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.

@fuller-stack-dev
fuller-stack-dev marked this pull request as ready for review October 16, 2026 20:42
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M labels Oct 16, 2026
@fuller-stack-dev
fuller-stack-dev enabled auto-merge (squash) October 16, 2026 20:48
@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. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR moves gateway choices into an account submenu and hides Get the apps in the Mac host.

Example: Open the account menu with nine saved gateways at 1280 × 900.

  • Before: Gateway rows fill the visible menu, pushing Settings, Updates, and other account actions below the scroll edge.
  • After: One current-gateway row leaves account actions visible and opens all nine gateways in a submenu.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The visible improvement has strong scoped proof, but the incomplete E2E cutover causes two confirmed CI failures.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the actual bundled Control UI keeping account actions visible with nine synthetic gateways, and additional screenshots show the gateway submenu at desktop and 390 × 500 sizes; the supplied browser scenario exercises shared-menu interactions with an injected host bridge, without claiming live Mac deployment.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: With many saved gateways, common account actions fall below the account menu's visible scroll edge.
Reason: The inspected screenshots show a concrete usability improvement, existing gateway operations retain their owner, and the maintainer-authored PR establishes direction.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this useful maintainer-authored PR open; the visual improvement is demonstrated, but two existing E2E consumers still assume the flat gateway menu and fail on this head.

Priority: P2
Reviewed head: 425f7618d67a853a34a5631598bda1aff0c44750

Before merge

  • Update the remaining E2E consumers for the gateway submenu (P2) - Moving gateway rows into children leaves two existing E2E consumers incompatible with the rendered menu. native-desktop-gateways.e2e.test.ts opens only the account menu, so its Studio radio item remains hidden and line 185 times out; subsequent switching, promotion, and settings interactions also need the submenu opened. gateway-status.e2e.test.ts:251 uses exact text that now matches both the current-gateway trigger and nested row, causing a strict-selector failure. Both failures are recorded by this head's CI. Update the desktop helper to open command:gateways when available, and scope the reconnect assertion to the intended trigger or row while retaining their behavioral assertions.

Findings

  • [P2] Update the remaining E2E consumers for the gateway submenu — ui/src/components/app-sidebar-identity-menu.tsx:133
Agent review details

How this fits together

The Control UI sidebar consumes host gateway snapshots, renders account and gateway menus through the shared Menu component, and dispatches selections through the existing native or embedder capability.

flowchart TD
  A[Host gateway snapshot] --> B[Sidebar identity menu]
  B --> C[Shared Menu]
  C --> D[Account actions]
  C --> E[Gateway submenu]
  E --> F[Existing host capability]
Loading

Technical review

Best possible solution:

Keep the compact shared submenu and update the remaining E2E consumers to navigate and identify it explicitly.

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

Current main still renders every gateway above account actions, and the inspected before screenshot demonstrates clipping with nine gateways; no new reproduction was run during this read-only review.

Is this the best way to solve the issue?

Using the existing shared submenu addresses menu crowding without another state owner or height override; the remaining defect is incomplete adaptation of existing E2E consumers.

Full review comments:

  • [P2] Update the remaining E2E consumers for the gateway submenu — ui/src/components/app-sidebar-identity-menu.tsx:133
    Moving gateway rows into children leaves two existing E2E consumers incompatible with the rendered menu. native-desktop-gateways.e2e.test.ts opens only the account menu, so its Studio radio item remains hidden and line 185 times out; subsequent switching, promotion, and settings interactions also need the submenu opened. gateway-status.e2e.test.ts:251 uses exact text that now matches both the current-gateway trigger and nested row, causing a strict-selector failure. Both failures are recorded by this head's CI. Update the desktop helper to open command:gateways when available, and scope the reconnect assertion to the intended trigger or row while retaining their behavioral assertions.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Flat gateway entries in the account menu changes intended behavior with a stated reason (61b3bc2: Move gateway identity and switching from the chat header into persistent account controls; the later shared-menu migration preserved those operations.)
  • Get the apps account action changes intended behavior with a stated reason (f3e38df: The shared-menu migration retained common account actions; this PR explicitly removes the redundant download action in the Mac host while retaining it in browsers.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test:ui:e2e ui/src/e2e/native-desktop-gateways.e2e.test.ts ui/src/e2e/gateway-status.e2e.test.ts ui/src/e2e/compact-identity-menu.e2e.test.ts ui/src/e2e/native-gateway-health.e2e.test.ts
  • git diff --check

What I checked:

PR surface

Source +20, Tests +232, Docs +5. Total +257 across 6 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 40 20 +20
Tests 4 234 2 +232
Docs 1 5 0 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 279 22 +257

Labels

Label changes:

  • add P2: This improves access to common account actions for users with many gateways, with a narrow repair needed for existing E2E coverage.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This improves access to common account actions for users with many gateways, with a narrow repair needed for existing E2E coverage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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 October 16, 2026, 4:58 PM ET / 20:58 UTC.

@fuller-stack-dev
fuller-stack-dev merged commit b4c0f82 into main Oct 16, 2026
104 checks passed
@fuller-stack-dev
fuller-stack-dev deleted the openclaw/mac-menu-compact-20261016 branch October 16, 2026 23:01
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…#174655)

* fix(macOS): keep account actions visible with many gateways

* fix(ui): preserve non-Mac app links in compact menu
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 ci:full Keep ordinary native-locale CI selection on the next PR run. 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. docs Improvements or additions to documentation size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant