Where the person writes: the input with its tools, menus and submit button, then what sits around it: a model selector, suggestions, the context meter and a questionnaire.
Prompt Input
The root is a form. It draws the attachments and the text field; its children are the footer.
The whole inputEnter sends, Shift+Enter breaks the line, and a file let go over it is added. Send something: the submit button goes through submitted and streaming (press the square to stop), then back to ready.
PromptInputSubmitIts icon follows status. Ready and error are the form's submit button; while a reply is on its way a press calls press instead, to stop.
ready
submitted
streaming
error
disabled
Inside a form the first and fourth send it. Here they stand alone, so only the two in the middle answer a press.
press called 0 times
bare: the parts by handWith bare=true the root is only the form: put PromptInputHeader, PromptInputBody and PromptInputTextarea under it yourself. The field grows with its text up to maxHeight, then scrolls.
maxHeight120px
header
Sent
nothing yet
Buttons, tools, dictationPromptInputButton is ghost as it comes, or outline or default; pressed makes it a toggle. PromptInputTools is the row they sit in. The speech button writes what it hears into a value.
Think longer
Search the web
Disabled
Dictate
The page's state
think: false · web: true · pressed: 0
Dictated
Press the microphone and speak (the browser asks leave; not every browser can).
PromptInputSelectOne of a few. With options it draws itself and writes value back; or compose the trigger, the value, the content and the items.
From options
By handitems with icons; the value shows its own words
effort: Balanced · scope: project
Action menu, adding attachmentsA plus that opens a menu. PromptInputActionAddAttachments asks for a file (fs.pick) and adds it to files, within the limits it is given.
No files yet. Open the menu and add up to two.
last: nothing yet · files: 0 of 2 · error: none
Hover card with tabsA card that shows on hover or focus, for what the prompt can see. Tick files below: the card lists them.
Hover or Tab to it
Open files
src/app.mote
README.md
Rules
Answer in plain words
Quote the docs
src/app.mote, README.md
PromptInputCommandA list to search: commands, files to mention. The page narrows it by the search's value; here it also answers up, down and Enter through key.
Thread
Tools
Ran
nothing yet
Found
5 of 5
Type to narrow, move with the arrows, Enter runs the one that is lit.
Model Selector
A modal window with a search. Type to narrow (name, provider, id), up and down, Home and End, Enter to choose, Escape to leave.
From a list of modelsGiven models it draws the button, the window, the search and the list. value and open are written back; change is handed the id.
Composed by handThe same window from its parts: the page holds the search and narrows the list. ModelSelectorDialog is ModelSelectorContent under its other name.
Things to ask, in a row that scrolls sideways, faded at its edges.
SuggestionsA press hands the page the suggestion. label shows other words; a child goes before them.
Handed to the page (0)
nothing yet
Context
How full the model's context window is. Each part is given the numbers it shows; what things cost is the page's to say.
The meter and its cardContextTrigger is the percentage and a ring; hovering it (or Tab) shows ContextContent. Beside it the card's parts are laid open, with a ContextUsageLine of the page's own.
The triggerhover it
37.5%
48K/128K
Input
28.8K• $0.09
Output
12K• $0.18
Reasoning
4.8K
Tools
2.4K
Total cost$0.27
Used tokens48000
The window
37.5%
48K/128K
Input
28.8K• $0.09
Output
12K• $0.18
Reasoning
4.8K
Tools
2.4K
Total cost$0.27
Questionnaire
Questions, one at a time, with their progress. Single choice is the browser's radios, multiple its checkboxes, input a free answer beside or instead of them.
From a list of itemsNext refuses an unanswered item; Skip shows on items that are not required; the last has Submit. A shortcut key picks an answer, left and right move between items.
shortcuts
answers (written as they are given)
{}
submit was handed
not submitted yet
Composed by handEvery part, with the stepping the page's own: three items shown by active, an error, and the four buttons by visible.