feat(web): recall sent prompts with the up arrow (#9173)
Press ArrowUp in an empty composer to get the last prompt sent in this thread. ArrowUp again goes further back, ArrowDown comes forward, and going past the newest prompt clears the composer.
History is per thread and derived from the thread's user messages on the keypress, so nothing new is stored or synced. Send-time appends (terminal and element context, preview annotations, review comments, the ultrathink prefix) and app-composed sends are stripped. With text in the composer, arrows move the caret unless the caret is on the first or last visual line of an unedited recalled prompt. Modifiers, IME composition, menus, approvals, and pending questions take priority. Attachments are not restored.
Prior art: #1778 by @PratyushChauhan, #4336 by @mfazekas, #7952 by @sethwebster.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
fd773172e7Theo Browne committed on 9/5/2026, 4:57:49 AM· committed by GitHubparentdf8e0eb