Composer

Inline composer

Enter submits in a textarea, Shift+Enter adds a line, Escape cancels and a key press never leaves the form. While generating the input is hidden, a shimmering status replaces it and the send button becomes Stop generation.

Single line, ready

Nothing submitted yet

Multiline with a hint
Press Enter to send, Shift+Enter for a new line

Nothing submitted yet

Leading action (no start padding)

Nothing submitted yet

Embedded (no border, background or shadow)

Nothing submitted yet

Blur outside reports (not while generating)

Nothing submitted yet

Focus has not left the form

Cannot submit yet (empty value disables send)

Nothing submitted yet

Generating with the default status
Working…

Nothing submitted yet

Generating with a status and no cancel
Reading the file…

Nothing submitted yet

View-only workspace (content inert, send disabled)

Nothing submitted yet

Comment composer

The plain-text comment composer trims its value and enables submit only for non-empty text in an enabled control. Enter submits, Shift+Enter adds a line and Escape cancels when a cancel handler exists.

Multiline with Cancel and the footer submit

Nothing submitted yet

Compact (submit appears with text)

Nothing submitted yet

Single-line input (submit appears with text)

Nothing submitted yet

Disabled

Nothing submitted yet

Discussion: comment (card layout)

Nothing submitted yet

Discussion: inline layout

Nothing submitted yet

Embedded (no surface) with maxLength 40

Nothing submitted yet

Surface and motion

The surface is 22px rounded with a shadow and an outline ring. Its height, width and opacity transition with the snappy ease (none while revealing a page comment), and reduced motion turns the transition off.

Default surface

Surface content

Another surface variant (no background, shadow or ring)

Flat surface content

Submit button

The round 28px send button. A disabled or loading button keeps aria-disabled, cancels its click and dims. A blocked reason shows in a tooltip that opens when its nonce changes.

Clicks: 0

Tip bar

The tip bar is a polite status region. The plain bar shows its dismiss button on hover or focus, the pill bar always shows it.

Plain
Pill with an action

Shown callbacks: 0. Action not used

Approval request card

Enter approves and Escape denies while the card is enabled. The footer stacks below a medium container width.

No decision yet
Default
Reason
Run a build script .
Hotkeys on
Always allow action
Menu action
Split approve with Allow this conversation
Loading
Disabled: every action off, hotkeys off, no key chips
Disabled with the split approve (both parts off)
Approve disabled: Deny stays on, Enter does nothing, no Enter chip
Approve disabled with the split approve (menu item off)

Key commands

One key press goes to one handler. The registry offers it to the newest registration first and stops when one accepts; a prevented key or an IME composition is never offered.

Card A
Card B
      A comment composer: its Enter submits the comment and approves no card

      No comment sent

      Remapped: approve is bound to Cmd/Ctrl+Enter in this subtree only

      Remapped card idle

      Default bindings {"approval.acceptRequest":["Enter"],"approval.rejectRequest":["Escape"],"composer.enqueueMessage":[],"composer.redirectRun":[],"composer.resetDraft":[],"composer.runInBackground":["CmdOrCtrl+Enter"],"composer.sendMessage":["Enter"]}. Binding a command to a key another command holds:
      approval.acceptRequest on Enterno conflict
      composer.sendMessage on Enterno conflict
      approval.rejectRequest on Escapeno conflict
      approval.rejectRequest on Entercomposer.sendMessage, approval.acceptRequest

      Compound button disabled states

      An outline compound button dims the chevron to 20% when the dropdown is off and the primary is on, dims the primary label to 40% when only the primary is off, and dims the whole button to 40% when both are off.

      Both on
      Dropdown off, primary on
      Primary off, dropdown on
      Both off

      Transcript card and announcement surface

      On the overlay window (the pathname or the initialRoute query is /ck-overlay) a card that is not embedded becomes the transcript card. Open this page with ?initialRoute=/ck-overlay to see every card above take it. The announcement surface is the composer-radius elevated card. A browser draws the material with CSS: the translucent elevated surface, its border and shadow.

      Announcement surface
      Review the plan
      Shown as an announcement
      Connection surface
      Connect an account
      Embedded card: no surface of its own, also on the overlay route
      Overlay material, variant transcript (CSS only)
      Run the build

      Keyboard rules

      The Escape rules in priority order, the submit shortcut labels, and the plan mode keys (Backspace at the start of the field leaves plan mode, Escape runs the handler).

      Escape resolves to
      Dictatingstop-dictation
      Realtime session startingstop-realtime-session
      Template picker openclose-template-picker
      Approval surface activenull
      Reply chain openclose-reply-chain
      Reply chain and mention menunull
      Response in progressconfirm-stop-turn
      Response in progress, confirmingstop-turn
      Composer not focusedfocus-composer

      Mode: plan. Press a key in the field

      Composer replacement

      A surface that replaces the composer registers with the consumer. Without a provider the consumer reports true. An inactive provider reports false and registers nothing.

      Composer replaced: false

      Without a provider: true

      With a provider: true

      Submit errors

      The toast text chosen for each failure. The composer stays populated so the user can retry.

      Submit failure handler and diagnostics

      The handler shows the toast for each failure with the source id and error analytics. With the diagnostics gate on, the toast has a View diagnostics action. The report is built when the failure happens: classified, scrubbed of secrets, paths and addresses, with a conversation id that must be a plain id. Clicking navigates through the router and then stores the report. The view below reads the stored report only when it belongs to the conversation, host and surface it shows.

      Logged: none

      Diagnostics opened: none

      Router calls (newest first): none

      The diagnostics view has no report for this conversation and host.

      Analytics delivered for error codes (newest first): none

      Latest payload: none

      Failure analytics delivery

      Danger toasts pass their errorAnalytics option to the host callback. Valid payloads contain only surface, code, message, and source. Missing or malformed payloads are ignored. Callback failures never stop the toast. The library makes no network requests.

      Danger hook calls that reached the client: 0. Payloads kept: 0.

      No payload delivered.

      A link in an approval reason is the app link around an inline mention, with the URL as its tooltip. A link provider set by the host can add a preview. A restricted resource policy makes the link ask before it opens, the open target and the browser flag reach the open request, and the open goes to the host. Without a host the card's own links open in a new tab.

      Reason
      See

      Open requests (newest first): none

      Tip selection

      Which tip shows depends on the beacon and on app data: the skills, plugins, automations, notification permission and browser extension state. Change the local data below and the tip appears or goes away. The tip's button prefills the editor, mentions a skill or plugin, navigates, or starts a flow, and each step is reported to the host. Views, impressions, clicks and dismissals go to a local log, and a view is reported once per beacon, conversation and message.

      Host calls (newest first): none. Views reported: 0.

      Rich editor

      The editor is ProseMirror: a schema of paragraphs, line breaks, mentions and skill mentions, with history, typography input rules, a placeholder, the base keymap and the key routing for Enter, Escape and Backspace. Type -- or ... for the input rules, Shift+Enter for a line break, and Ctrl or Cmd+Z to undo.

      Draft text: ""

      Last dictation range: none

      Key routing (newest first): none

      Attachments in the draft: none. Saved drafts: none.

      Submit button morph

      With the feature gate on, a button that supports morphing and shows the send, stop or voice icon draws the morphing icon: four paths blend between the shapes, the icon rotates, shifts and scales, and a change through the voice shape passes by two in-between shapes. With the gate off the static icons show. A shortcut label never morphs. Reduced motion jumps to the new shape.

      Morphs
      Shortcut label
      Without supportsMorphing

      State send, gate on

      Composer controls

      The main composer without its rich editor. The send commands are key commands, Enter follows the Enter behaviour, Cmd/Ctrl+Enter queues or steers while a response runs, the placeholder follows the mode, and removing an attachment can be undone for a minute.

      • notes.md
      • diagram.png
      Nothing sent
      • Code, new: Do anything
      • Code, follow-up: Work with the agent
      • Chat: Ask the assistant
      • Work: Work with the assistant
      • Plan mode: Describe your task to generate a plan...
      • Goal mode: Describe your goal and the outcomes you want
      • Image markup: Add instructions…
      • Compact floating, working: Working…
      • Caller text: Reply to this
      • Cmd+Enter, queue on: steer
      • Cmd+Enter, queue off: queue
      • Cmd+Shift+Enter, cmdAlways, queue off: queue
      • Repeated Cmd+Enter: swallow
      • Bare Enter: ignore
      • New attachments kept after the duplicate check: /b.ts4, /c.ts
      • Unable to upload file
      • File is too large to upload (maximum 5 MB)
      • Folders can only be attached to local conversations
      • Pasted text restores up to 25000 characters

      Light and dark

      Colours resolve against the nearest theme scope, so a light panel inside a dark one and the reverse each use their own colours.

      Light theme

      Hint under the composer

      Nothing submitted yet

      Nothing submitted yet

      Dark theme

      Hint under the composer

      Nothing submitted yet

      Nothing submitted yet

      Dark theme, with a light panel inside

      Hint under the composer

      Nothing submitted yet

      Nothing submitted yet

      Nested hint

      Nothing submitted yet

      Light theme, with a dark panel inside

      Hint under the composer

      Nothing submitted yet

      Nothing submitted yet

      Nested hint

      Nothing submitted yet

      Right to left

      تلميح

      Nothing submitted yet

      Nothing submitted yet