Skip to content

improve(ui): move Agents phone actions into a menu - #190385

Merged
vyctorbrzezowski merged 4 commits into
mainfrom
brzezowski/mobile-agents
Nov 2, 2026
Merged

vyctorbrzezowski merged 4 commits into
mainfrom
brzezowski/mobile-agents

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

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 Menu component, 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 HubTabs and 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.

Before, Absolutely light After, Absolutely light
Copy ID toast Menu open, Absolutely dark
CRT Real Safari in a 400 px window, default theme, menu opened with a real click

Local checks pass: oxfmt, stylelint, check:control-ui-controllers, check:madge-import-cycles, oxlint, ui:i18n:verify, tsgo:ui, src/pages/agents and 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.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 1, 2026
@clawsweeper

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

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This 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.

  • Before: Memory is off screen, and Refresh wraps onto another row.
  • After: Memory is fully visible, with secondary actions behind a menu beside New agent.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The visible improvement is well illustrated, but duplicated lifecycle machinery and a diff-attributed asset-budget failure require repair.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected browser screenshots with synthetic data at 390 px show direct Memory entry and tapped Automations fully revealed, plus the compact action row; additional unavailable images are not needed to establish those visible changes.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Phone users can open an Agents panel without seeing its selected tab, while secondary actions consume an extra toolbar row.
Reason: The inspected images establish a useful improvement, and maintainer authorship supplies direction for the compact action menu.

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
Reviewed head: ad9422c2657dd7364790d7a1d31ddee822c040b5

Before merge

  • Reuse the tab-list owner’s active-reveal lifecycle (P1) - The new effect duplicates the existing createTabList revealActive option in ui/src/lib/tabs.ts, which already accepts a custom scrolling callback and handles active selection, item layout, and keyboard revelation. It also introduces a createEffect call into a file with no allowance in config/control-ui-createEffect-baseline.txt, so the changed-file controller guard rejects this patch. Forward the existing reveal option through Tabs and supply strip-only scrolling there, removing this second lifecycle rather than increasing the baseline.
  • Reduce the added CSS to fit the base-relative budget (P2) - The exact-head control-ui-performance annotation reports total CSS at 1,602,198 B against a permitted 1,602,117 B. Although base already exceeds the absolute cap, this PR adds 145 B where only 64 B of build variance is allowed, causing the performance check and aggregate gate to fail. Consolidate or reduce the responsive rules until the existing comparison passes without raising its budget.

Findings

  • [P1] Reuse the tab-list owner’s active-reveal lifecycle — ui/src/components/solid/hub-tabs.tsx:67-74
  • [P2] Reduce the added CSS to fit the base-relative budget — ui/src/styles/agents.css:1239-1245

Tests

  • Missing end-to-end proof: No committed regression test is shown failing on the base and passing on the head for overflowing active-tab revelation.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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:

  • [P1] Reuse the tab-list owner’s active-reveal lifecycle — ui/src/components/solid/hub-tabs.tsx:67-74
    The new effect duplicates the existing createTabList revealActive option in ui/src/lib/tabs.ts, which already accepts a custom scrolling callback and handles active selection, item layout, and keyboard revelation. It also introduces a createEffect call into a file with no allowance in config/control-ui-createEffect-baseline.txt, so the changed-file controller guard rejects this patch. Forward the existing reveal option through Tabs and supply strip-only scrolling there, removing this second lifecycle rather than increasing the baseline.
    Confidence: 0.98
  • [P2] Reduce the added CSS to fit the base-relative budget — ui/src/styles/agents.css:1239-1245
    The exact-head control-ui-performance annotation reports total CSS at 1,602,198 B against a permitted 1,602,117 B. Although base already exceeds the absolute cap, this PR adds 145 B where only 64 B of build variance is allowed, causing the performance check and aggregate gate to fail. Consolidate or reduce the responsive rules until the existing comparison passes without raising its budget.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Shared hub tabs keeps the original intent (b68c44c: Native Solid tabs preserved keyboard, focus, routes, and appearance; later focus work reused registered tab targets.)
  • Phone toolbar layout changes intended behavior with a stated reason (5413688: Phone-width settings support added wrapping so toolbar actions remained reachable; this PR explicitly replaces that presentation with a compact menu.)
  • Copy ID feedback changes intended behavior with a stated reason (a3a5cd5: Copy outcomes gained persistent status announcements; the desktop path remains, and the menu reports its outcome through the existing toast owner.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm check:control-ui-controllers
  • pnpm --dir ui test src/components/hub-tabs.test.ts src/components/solid/tabs.test.tsx src/pages/agents/view.test.tsx src/pages/agents/view.copy-feedback.test.tsx
  • pnpm ui:check-performance:base
  • Verify at 390 px that direct Memory entry and clipped-tab selection reveal the active tab without scrolling the page.

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit fb2e3a7 adds ui/src/components/solid/hub-tabs.tsx:49 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fb2e3a7dee89; files: ui/src/components/solid/hub-tabs.tsx)
  • Vyctor H. Brzezowski: Raw commit 880bdcd adds ui/src/styles/agents.css:216 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 880bdcd2fdd4; files: ui/src/styles/agents.css)

PR surface

Source +126. Total +126 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 132 6 +126
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 132 6 +126

Review metrics

Metric Value Why it matters
CSS growth over base +145 B; allowance +64 B The exact-head performance annotation identifies an 81 B excess over the permitted base-relative limit.

Labels

Label changes:

  • add P2: The PR improves recoverable phone navigation and toolbar layout with limited user impact.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The PR improves recoverable phone navigation and toolbar layout with limited user impact.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • 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 November 1, 2026, 9:22 AM ET / 14:22 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 1621b9b into main Nov 2, 2026
82 of 85 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/mobile-agents branch November 2, 2026 13:16
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 3, 2026
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.
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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant