anomalyco / anomalyco/opencode
TUI: model picker traps session after typing in search field
@kommander is already working on this.
Since Sep 6, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Opening the model picker with /models works, but typing anything in the search field empties the list and traps the picker: esc, enter, arrows, q, ctrl+c do nothing. Printable keys still land in the search field. Clearing the query with backspace does not bring the list back, so the only way out is to kill the process. With nothing typed, esc closes the picker normally, and the same flow works in 1.18.29 — looks like a v2 regression in the filtering path. Silent failure: nothing on stderr, nothing in the debug server log.
Plugins
none (empty config)
OpenCode version
0.0.0-beta-17823
Steps to reproduce
echo '{}' > /tmp/oc.json && OPENCODE_CONFIG=/tmp/oc.json opencode --standalone- Run
/models, type one character in the search field. - Press
esc— the picker stays open and no key dismisses it.
Operating System
Ubuntu 24.04.4 LTS (WSL2, Linux x64)
Terminal
xterm-256color
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.