Repository navigation
Recall sent prompts with the arrow keys in the chat composer - #915
Conversation
Recall starts only from a blank box and steps only while the caret sits on the first or last line, so a draft being typed and the caret moves inside a multi-line recall keep their TextBox meaning. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
PR Summary by QodoAdd arrow-key prompt recall to the chat composer
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo
1.
|
The composer wraps, so a newline search misreads a long single-line prompt as one row; a selection makes the arrows the TextBox's own collapse-and-move; and text equality cannot tell an untouched recall from one edited and restored by hand. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Re the Qodo findings:
|
AI-2731 (no GitHub issue exists for this one; the Linear issue is the tracker record)
What & why
In the desktop app's chat tab, ↑ in an empty composer recalls the most recent prompt sent from that tab, repeated ↑ walks older, and ↓ walks newer until it restores the empty draft, the way Claude Desktop and most chat apps behave. History is in-memory, per tab, for this app run; consecutive duplicates collapse and it is capped at 100 entries. A prompt the server rejected is not recorded.
Where to look
Recall starts only from a blank composer and continues only while the box still shows the recalled text unchanged; any edit turns it back into an ordinary draft. Inside a multi-line recall, ↑/↓ stay the TextBox's own caret moves until the caret sits on the first/last line, so long prompts remain editable.
Verification
🤖 Generated with Claude Code