-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Description
Description
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.
Screenshot and/or share link
No response
Operating System
Linux
Terminal
Chrome (Web UI)