Repository navigation
fix(macOS): keep account actions visible with many gateways - #174655
Conversation
|
🦞👀 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 changes before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b8bea44d143f. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +20, Tests +232, Docs +5. Total +257 across 6 files. Added test files: 1. View PR surface stats
LabelsLabel changes:
Label justifications:
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 October 16, 2026, 4:58 PM ET / 20:58 UTC. |
|
Merged via squash.
|
…#174655) * fix(macOS): keep account actions visible with many gateways * fix(ui): preserve non-Mac app links in compact menu
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
pnpm tsgo:uipassed 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.
Narrow and short window
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:/settings/about. The same assertion fails on both the actual CI merge and its exact main parent892629fe27e1a36fd82e0a463e82fe89cdcb5bb2, independently reproducing the failure without this PR.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 at67044dd80a6f09eba8f59d7e7c33b46f9c2af6e9; 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.