You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Web UI: Capturing the up/down keys makes editing painful #13679
In the web UI, when I press "up" in the prompt box, it scrolls through the prompt history, like a shell would.
Annoyingly, this happens even if I've typed a long prompt, an my cursor is not on the first line of the prompt, and I'm pressing "up" in order to move the cursor to a previous line so that I can edit it. Instead, my whole prompt disappears, replaced with my previous prompt. I can press "down" to get back to what I typed, but this is quite jarring.
In the TUI, it seems that once you've started typing a new prompt, pressing "up" no longer scrolls through prompt history. Instead, it moves the cursor to the previous line as expected, and if you're already on the first line, it moves the cursor to the beginning of the line. This is how most text boxes in most UIs work. Good.
The web UI should match the TUI behavior.
Plugins
No response
OpenCode version
1.2.4
Steps to reproduce
Open the web UI with opencode web
Type and submit some prompt (so that the history contains something).
Now type a long prompt that wraps across multiple lines, but don't submit it.
Press "up"
Expected behavior: Cursor moves to previous line.
Actual behavior: Entire prompt disappears and is replaced by previous prompt.
Activity
github-actions commentedon Feb 15, 2026
For keybind-related issues, please also check our pinned keybinds documentation: #4997