Skip to content

fix(ui): refine composer media and capability menus - #184780

Merged
vyctorbrzezowski merged 7 commits into
mainfrom
brzezowski/composer-capability-menu
Oct 26, 2026
Merged

vyctorbrzezowski merged 7 commits into
mainfrom
brzezowski/composer-capability-menu

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The composer attachment menu separates related capability actions into inconsistent submenus, and long lists make navigation and status feedback difficult to follow.

User Impact

Users can choose media, find skills, inspect library entries, and control plugin tools within a consistent menu. Long lists scroll while navigation stays accessible, and library actions remain available when the separate skill catalog is loading or fails.

Why This Change Was Made

Reuses the native menu and existing capability owners for grouped media actions, skill search, inline plugin tools, and compact switches. Platform-specific attachment paths and permission checks remain in their existing owners. Library changes retain confirmation that they apply to the next turn. Colliding tool labels remain distinguishable, discovery guidance is separate from request errors, and unavailable skills explain missing dependencies or agent restrictions on hover.

Evidence

  • 21 focused menu tests passed, covering independent library loading, tool identity, discovery guidance, unavailable-skill explanations, focus retention, and mutation callbacks.
  • Four native browser scenarios passed: Camera, empty Skills/Plugins, menu-height navigation, and the complete Alice/Bob private-library and revision flow.
  • Type-aware lint passed on the exact patched source in an isolated macOS arm64 checkout. Formatting, stylesheet lint, translation checks, and file-size checks passed for the affected changes.
  • Independent review found no actionable P0–P2 findings.

Visual validation

Before and after use the same content, theme, viewport, and state.

plus menu — comparison 1

plus menu — comparison 2

Before

184780-before.mp4

After

184780-after.mp4
Tool identities and discovery guidance

Distinct tool names

Discovery guidance

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR groups media actions, adds skill search and library views, and expands plugin tools inline with individual and bulk toggles.

Example: A user opens Plugins for the github MCP server.

  • Before: Individual tools appear in a separate Tool access submenu.
  • After: Selecting github expands its tools inline, with individual switches and Turn all off.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Useful maintainer-directed UI work with inspected before/after evidence, focused regression coverage, and all earlier findings resolved.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The inspected browser screenshots demonstrate grouped media actions, revised skill navigation, and inline plugin tools at desktop and mobile widths; focused behavior tests support loading, identity, refresh, and mutation handling.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users navigate inconsistent capability submenus and long lists, while skill-catalog loading can obstruct library actions.
Reason: The maintainer-authored direction improves a shared user-facing surface while retaining existing platform attachment behavior and capability ownership.

Merge readiness

✅ Ready for maintainer review

This PR is worth merging: the earlier findings are resolved, and no additional actionable defect was found; current-head CI remains pending.

Priority: P2
Reviewed head: 489402f1e9177e4f07d09c32acb358da24a433df

Before merge

None.

Findings

None.

Agent review details

How this fits together

Chat and New Session share the composer menu, which presents capability catalogs and sends user selections to existing attachment, session-override, and skill-library owners.

flowchart TD
  A[Chat and New Session] --> B[Composer menu]
  B --> C[Attachment input owner]
  B --> D[Capability host]
  B --> E[Library session owner]
  D --> F[Gateway APIs]
  E --> F
Loading

Technical review

Best possible solution:

Merge the unified menu presentation once the existing current-head CI gate passes.

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

The base source and inspected comparison images establish the older submenu layout; the PR also records a failing library-loading regression followed by passing affected tests.

Is this the best way to solve the issue?

The change uses the existing menu, attachment, catalog, and mutation owners, with separate presentation state for search and expansion and no competing persistence path.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Native composer menus and lazy content keeps the original intent (54691736d026cba16ee8623bb3729f8cfc06301: Move composer menus to owned native primitives while preserving actions, navigation, and focus.)
  • Independent skill readiness keeps the original intent (50c39ab: Render skill reads through Solid loading and error boundaries while retaining usable menu chrome.)
  • MCP tool identity and discovery guidance keeps the original intent (feat(ui): add per-connector tool access to composer #115907: Use effective-catalog tools and raw identities for sparse session denials; the subsequent discovery repair explains unavailable catalogs.)
  • Pinned skill-library selection keeps the original intent (75bcd26: Pin immutable skill revisions per session and refresh related catalogs after explicit activation.)
  • Compact capability-menu geometry changes intended behavior with a stated reason (a5ff8f5: Keep long menus compact, scrollable, and within available viewport space; this PR replaces whole-panel scrolling with fixed navigation and scrolling content.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +572, Tests +253, Docs 0. Total +825 across 24 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 12 1189 617 +572
Tests 11 543 290 +253
Docs 1 8 8 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 24 1740 915 +825

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: The change improves composer navigation and capability management with a limited UI blast radius.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • 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.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-26T16:37:01.935Z sha 96e1f4b :: needs changes before merge. :: [P2] Preserve distinct raw names in the inline tool labels | [P2] Keep discovery notices separate from request failures
  • reviewed 2026-10-26T16:55:37.935Z sha fce0bbb :: needs changes before merge. :: [P2] Restore specific explanations for unavailable skills
  • reviewed 2026-10-26T17:12:15.319Z sha b7082f9 :: needs changes before merge. :: [P3] Update the composer guide for the new controls

Reviewed October 26, 2026, 1:23 PM ET / 17:23 UTC (Revision 4).

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Oct 26, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) October 26, 2026 18:56
@vyctorbrzezowski
vyctorbrzezowski merged commit 9d44439 into main Oct 26, 2026
80 of 83 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/composer-capability-menu branch October 26, 2026 20:17
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
* fix(ui): refine composer media and capability menus

* fix(ui): narrow composer library menu entry types

* fix(ui): distinguish MCP tool labels and discovery notices

* fix(ui): explain unavailable composer skills

* docs(ui): align composer menu instructions

* fix(ui): align composer menu flows and validation

* test(ui): align menu coverage with approved controls
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 docs Improvements or additions to documentation 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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant