OpenProgram Docs

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

RowTypeOn select
Add files or photosActionCloses
Record a workflowAction; macOS desktop App onlyCloses
Web SearchToggle, after a separatorStays open
SandboxToggle. Unavailable: disabled, native title gives the reasonStays open
UnattendedToggle, after a separatorStays 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
OptionOutcome
Radix on shared tokensAdopted: open state, portal, flip, roving focus, typeahead, Escape, outside press; one menu grammar
Base UI Menu with CSS modulesRemoved: a second library and a drifting copy of the styles
Manual fixed positioningRejected: no portal order, flip or full keyboard behaviour
Native Popover APINot adopted: no roving focus or positioning contracts
Acceptance
  • Panel, rows, separators and checks come from menu-styles.ts; composer.module.css has no .plusMenu* rules.
  • No Tools row, Access preset submenu or Tools chip.
  • No menuPosition or 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