Repository navigation
feat(prompt-input): recall earlier prompts with ArrowUp - #153
Merged
Merged
Conversation
PromptInput now skips a submit while its PromptInputSubmit is disabled or not ready, and records the prompt at submit time when it goes through. Drops the clear-after-submit proxy, which a user's own Backspace could trip.
# Conflicts: # apps/site/content/components/prompt-input.md # packages/ui/registry.json # packages/ui/src/components/ai/prompt-input.tsx
aayushbtw
added a commit
that referenced
this pull request
Nov 21, 2026
The tracker used status words outside its own legend. This switches them to merged, marks #153 merged, and fixes the intro paths.
aayushbtw
added a commit
that referenced
this pull request
Nov 21, 2026
* docs(ui-sdk): record the UX audit fixes * docs(ui-sdk): use the legend's merged status The tracker used status words outside its own legend. This switches them to merged, marks #153 merged, and fixes the intro paths.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
UX audit item. ArrowUp in the composer brings back earlier prompts, like a terminal.
What changed
PromptInputkeeps onecreateInputHistoryper mount, and it's on by default. ArrowUp works on the first line or in an empty field. ArrowDown steps forward and ends at the draft. It stands aside while the Trigger Menu is open.PromptInputTextareaandPromptInputCommandTextareano longer takecontroller. A recalled prompt still reachesonValueChange.Tradeoffs
On by default, because nothing recalls until you send something. Call
event.preventDefault()inonKeyDownto opt out.Verification
vpr check,vpr buildandvpr testpass, with 7 new tests. In Chromium, I sent 2 prompts, then pressed ArrowUp twice and ArrowDown twice, and the field ended back at the draft.