[PR #13690] fix(app): only navigate prompt history at input boundaries #14772

Closed
opened 2026-02-16 18:19:32 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13690

State: closed
Merged: Yes


What does this PR do?

Fixes #13679
In the web prompt input, ArrowUp/ArrowDown was navigating history while editing and replacing the current draft. This change restricts history navigation to true boundaries only (ArrowUp at start, ArrowDown at end), so normal cursor movement works while editing.

How did you verify your code works?

  • Ran: bun test src/components/prompt-input/history.test.ts in packages/app
  • Updated/verified boundary navigation test cases in history.test.ts
  • Manual testing
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13690 **State:** closed **Merged:** Yes --- ### What does this PR do? Fixes #13679 In the web prompt input, `ArrowUp`/`ArrowDown` was navigating history while editing and replacing the current draft. This change restricts history navigation to true boundaries only (`ArrowUp` at start, `ArrowDown` at end), so normal cursor movement works while editing. ### How did you verify your code works? - Ran: `bun test src/components/prompt-input/history.test.ts` in `packages/app` - Updated/verified boundary navigation test cases in `history.test.ts` - Manual testing
yindo added the pull-request label 2026-02-16 18:19:32 -05:00
yindo closed this issue 2026-02-16 18:19:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14772