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.
Nothing submitted yet
Nothing submitted yet
Nothing submitted yet
Nothing submitted yet
Nothing submitted yet
Focus has not left the form
Nothing submitted yet
Nothing submitted yet
Nothing submitted yet
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.
Nothing submitted yet
Nothing submitted yet
Nothing submitted yet
Nothing submitted yet
Nothing submitted yet
Nothing submitted yet
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.
Surface content
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.
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.
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.
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.
No comment sent
Remapped card idle
| approval.acceptRequest on Enter | no conflict |
| composer.sendMessage on Enter | no conflict |
| approval.rejectRequest on Escape | no conflict |
| approval.rejectRequest on Enter | composer.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.
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.
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).
- enter: CmdOrCtrl+Enter
- cmdIfMultiline: CmdOrCtrl+Shift+Enter
- cmdAlways: CmdOrCtrl+Shift+Enter
| Dictating | stop-dictation |
|---|---|
| Realtime session starting | stop-realtime-session |
| Template picker open | close-template-picker |
| Approval surface active | null |
| Reply chain open | close-reply-chain |
| Reply chain and mention menu | null |
| Response in progress | confirm-stop-turn |
| Response in progress, confirming | stop-turn |
| Composer not focused | focus-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.
- Local failure: The message could not be sent
disk full - Worktree failure: Error starting chat
disk full - Cloud failure: The message could not be sent
quota exceeded - Cloud, missing GitHub link: Reconnect GitHub in Plugins before sending this request
- Worktree restore required: Restore this worktree before continuing
- Worktree gone: This worktree has been removed
- Worktree status unavailable: The worktree status could not be read
- Too many browser tabs: You can mention up to 100 browser tabs per message
- Too much tab context: Remove some browser tab mentions before sending this message again
- Worktree setup script failed: The worktree setup script failed. Review the script in the host environment settings
- Chat references unavailable: Remove the chat references, or use them in a new chat instead
- Closed sub-agent: Resume this sub-agent from its parent conversation before replying
- App content: Content from the app could not be used
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.
Approval reason link
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.
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.
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
- 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
Nothing submitted yet
Nothing submitted yet
Dark theme
Nothing submitted yet
Nothing submitted yet
Dark theme, with a light panel inside
Nothing submitted yet
Nothing submitted yet
Nothing submitted yet
Light theme, with a dark panel inside
Nothing submitted yet
Nothing submitted yet
Nothing submitted yet
Right to left
Nothing submitted yet
Nothing submitted yet