Composer options menu
The + menu in ControlsCluster. Radix DropdownMenu on the tokens in apps/web/components/ui/menu/menu-styles.ts, like every other menu. No module CSS.
Rows
| Row | Type | On select |
|---|---|---|
| Add files or photos | Action | Closes |
| Record a workflow | Action; macOS desktop App only | Closes |
| Web Search | Toggle, after a separator | Stays open |
| Sandbox | Toggle. Unavailable: disabled, native title gives the reason | Stays open |
| Unattended | Toggle, after a separator | Stays open |
Every row is PlusMenuRow (controls/menu-pieces.tsx): itemCls(false) plus MENU_ITEM_STATES. A 16px Solar icon column, label, optional metadata, check column. Checked rows show a 14px check-circle that pops in once; others reserve the column with CHECK_SLOT_PAD.
- Panel
MENU_PANEL:rounded-lg,p-1- Row
itemCls: 28px minimum,rounded-md, base text, hover is the only tint- Separator
MENU_SEPARATOR, full-bleed- Position
- Radix portal on body,
z-[200],side="top" align="start" sideOffset={9}; radix handles anchoring, flip and collisions
No tool switch
No Tools switch and no Access preset. Which tools a chat can call is the Agent's configuration (Agents → Capabilities → Programs: all, a scope or preset, or none). The composer only overlays Web Search. See tool toggle management.
Options compared
| Option | Outcome |
|---|---|
| Radix on shared tokens | Adopted: open state, portal, flip, roving focus, typeahead, Escape, outside press; one menu grammar |
Base UI Menu with CSS modules | Removed: a second library and a drifting copy of the styles |
| Manual fixed positioning | Rejected: no portal order, flip or full keyboard behaviour |
| Native Popover API | Not adopted: no roving focus or positioning contracts |
Acceptance
- Panel, rows, separators and checks come from
menu-styles.ts;composer.module.csshas no.plusMenu*rules. - No Tools row, Access preset submenu or Tools chip.
- No
menuPositionor computed fixed coordinates.
node apps/web/scripts/chat/check-composer-options-menu.mjs- Menu grammar
npx tsc --noEmit -p .- Types, in
apps/web npm run check,npm run test:unit- Frontend checks, in
apps/web
Last updated · 2026-11-25