Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.246 ·

Prompt input state moved behind one shared draft object

Prompt text, cursor and paste state now live in one shared object; nothing changes for you.

Under the hood Internal Changes
JSON All of v2.1.246
Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Prompt InputArea: what it touches
Internal ChangesKind: in v2.1.246,
Internal ChangesSection of the release
What

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.

Details
  • The handle exposes replaceValue, setValue, setValueWithCursor, setCursorOffset, setMode, setPastedContents, value, cursorOffset and shellCompletionAbort.
  • 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 onSubmitRequest rather 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 leftArrowOpensAgents setting and treats any value other than false as on.
Evidence

setValueWithCursor, shellCompletionAbort, onSubmitRequest, leftArrowOpensAgents

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.246 →

Feedback