Composer and user decision output
The composer edits ordinary messages and user-opened function forms. Pending decisions are separate session panels above it, and receipts appear in the conversation. A pending decision never replaces the composer, clears its draft, closes its function form, changes its send action or takes its focus.
Composer input
| Case | Behaviour |
|---|---|
| Modes | idle, fn-form |
| Function form | Selecting a registered function opens FunctionForm. Fields, validation, transition, close and outgoing animation stay there. |
name(parameter=literal, ...) | A complete registered expression uses the form's dispatcher and schema validation. Explanatory text, partial expressions and fenced code stay chat text. |
| While running | Enter and Send add a message to the current turn (steer). Cmd/Ctrl+Enter queues for the next turn. Empty input keeps Stop. |
Owners
| Name | Owns |
|---|---|
question.asked, reconnect snapshots | Canonical targets |
useWaitAnswer | Execution commands and acknowledgement state |
QuestionMode | Answer fields, navigation, request-scoped in-memory drafts. One keyed card each for ask, confirm, ask_many, form, approval. |
PendingDecisionPanels | Pending placement above each composer, split panes included |
DecisionOutputs | Terminal receipts in the message stream |
New questions do not autofocus. Several questions stay independently addressable in stable order. Layout: composer interaction layout.
Delivery
| State | Card shows |
|---|---|
| Submitting | The actual answer and a sending state, at once |
| Matching applied command | Delivered. The only confirmation; event arrival alone is not a receipt. |
| Unknown outcome | Original command id and payload kept for retry, available error code, no implied success |
| Explicit rejection | Reconciles the current request before another answer |
| Closed request | Never shown as an accepted answer |
| Confirmed answer or decline | Stays as a session UI receipt |
Submitted receipts keep the question-and-answer layout, use field titles and show readable values, not JSON. Forms submit field objects. Approval cards keep their scopes, operation details and explicit allow or deny; asking a question does not authorize an operation.
A sub-agent's approval names it in a badge in the title row; the conversation's own agent's has none. The Worker's one wording for a tool approval is shown in the reader's language: "Run this command?" for a shell command, "Run tool?" otherwise.
Receipts are in-memory presentation state, not Workflow checkpoints: a refresh reloads canonical pending questions. Requests stay bound to their session, execution, generation and version across tabs. Backend Workflow questions continue in the original process, and predeclared Agent waits keep their continuation contract.
Discussion and events
A discussion action keeps its own feedback input and sends the text as the reason on the exact canonical decline command. The model receives it in the same turn and no chat message is queued. Only a matching applied receipt confirms delivery; an unconfirmed decline never authorizes execution. An ordinary composer message neither declines a question nor answers it.
- UI-only settings
- Direct store updates. Execution settings such as search and thinking also persist immediately to the selected branch through a correlated request.
- One-shot user action
- Correlated request and response
- Runtime questions
- Broadcast events projected into the pending-decision store
Acceptance
A pending question beside a populated composer: outside the composer, draft and focus kept, Send still submits a message. Card submit: immediate feedback, matching acknowledgement, retained receipt, unchanged draft, session isolation, retry identity, native App behaviour.
User input requests · Execution control