Prompt text, cursor and paste state now live in one shared object; nothing changes for you.
What's wrong with this entry?
The prompt text, cursor position, mode and pasted content are no longer passed around as eight separate values and setters. The REPL, autocomplete, voice input, the cloud-session reply box and the submit handler now share one draft handle that owns them. Nothing changes for you: restoring a stashed draft still reports Draft restored.
- The handle exposes
replaceValue,setValue,setValueWithCursor,setCursorOffset,setMode,setPastedContents,value,cursorOffsetandshellCompletionAbort. - Stashing and unstashing the prompt and inserting text are now the draft's own operations rather than the component's, and submits are subscribed to via
onSubmitRequestrather than the submit handler adjusting text, cursor and pasted content itself. - Autocomplete suggestions moved out of component state into a store read on demand.
- Both the main prompt and the cloud-session reply box now hand the voice keybinding handler a single composer instead of a bag of refs.
- The state machine for pressing left arrow to open agents or background the current turn moved out of the input component; the remaining hook still reads the
leftArrowOpensAgentssetting and treats any value other thanfalseas on.
setValueWithCursor, shellCompletionAbort, onSubmitRequest, leftArrowOpensAgents
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.219
Typing cancels a pending left-arrow confirmation in the prompt input
Both mention prompt input
-
v2.1.227
A large paste stays recallable even when it cannot be written to disk
Both mention prompt input
-
v2.1.227
Leftover paste staging files are cleaned up
Both mention prompt input