Repository navigation
improve(ui): move Agents phone actions into a menu - #190385
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 reveals the selected Agents tab and moves secondary toolbar actions into a menu on phones. Example: Open an agent’s Memory tab at 390 px width.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this useful, maintainer-authored PR open; the active-tab implementation duplicates an existing owner, and added CSS exceeds the enforced growth allowance. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Agents page supplies selection and action callbacks to shared Solid tabs and menus, which render navigation and dispatch actions to existing owners. flowchart LR
A[Agents route state] --> B[Agents page]
B --> C[HubTabs]
C --> D[Tabs and tab-list owner]
D --> E[Visible selected tab]
B --> F[Phone action menu]
F --> G[Existing action callbacks]
Technical reviewBest possible solution: Use the existing tab-list reveal lifecycle with strip-only scrolling, preserve the shared menu callbacks, and reduce CSS growth within the existing allowance. Do we have a high-confidence way to reproduce the issue? Current-main source lacks active-tab revelation, and the supplied before screenshots show the clipped selection at 390 px; no independent runtime reproduction was executed. Is this the best way to solve the issue? The compact menu reuses existing actions appropriately, but active-tab revelation should use createTabList’s existing callback and settlement machinery. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5e687bfaf356. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +126. Total +126 across 4 files. Added test files: 0. View PR surface stats
Review metrics
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 November 1, 2026, 9:22 AM ET / 14:22 UTC. |
Integrated the shared RefreshButton and retained the phone menu and both required hiding selectors. Twenty-seven owner tests and UI typecheck/touched checks passed. An interaction check on the real settings/agents UI with a mocked Gateway confirmed the phone menu at390px and the shared desktop Refresh at1280px, with New agent reachable in both. The integrated source review found no blocking issues. CI41448787882 retains the authorized budget exception: CSS+129B gzip/+615B raw and chat boot JS+438B. All other planned jobs passed.
What Problem This Solves
At phone width, Settings > Agents stacks five flat actions above the tabs. They wrap to two rows with Refresh alone on the second, which pushes the tabs and the agent's content down.
User Impact
On a phone, New agent stays visible as a regular button aligned to the page margin, and Copy ID, Set default, Pin to switcher and Refresh move to a More actions menu on the same row. The tabs start 50 px higher. Desktop does not change.
Why This Change Was Made
Below 640 px the secondary actions swap for the existing
Menucomponent, which runs the same actions, and its trigger uses the Automations filter trigger's surface. New agent takes the regular button surface there, because a lone ghost label read as text. It is not a primary button. Copy ID confirms with a toast from the menu, because the row that shows the inline confirmation closes with it.Keeping the active tab in view is shared behaviour and lands in #190370, along with removing the tab track, so both still show here. This PR changes nothing in
HubTabsand works with or without #190370. The ring on the menu trigger after a tap is removed by #190535.Evidence
Mock data at 390 px with real taps. Page PRs branch from main, so these images show today's top bar until the header PR lands.
Local checks pass: oxfmt, stylelint,
check:control-ui-controllers,check:madge-import-cycles, oxlint,ui:i18n:verify,tsgo:ui,src/pages/agentsand hub tab tests.Integration validation
Integrated the shared RefreshButton and retained the phone menu and both required hiding selectors. Twenty-seven owner tests and UI typecheck/touched checks passed. An interaction check on the real settings/agents UI with a mocked Gateway confirmed the phone menu at390px and the shared desktop Refresh at1280px, with New agent reachable in both. The integrated source review found no blocking issues. The existing captures document the approved original revision.
CI 41448787882 is not green: CSS increased by 129 bytes gzip and 615 bytes raw; chat boot JavaScript increased by 438 bytes. The measured budget failures use the authorized exception while preserving the approved design. All other planned jobs passed.