anomalyco / anomalyco/opencode

TUI: model picker traps session after typing in search field

Open
#47,615 1 comment 0 reactions 1 assignee View on GitHub

@kommander is already working on this.

Since Sep 6, 2026.

2.0
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
  1. echo '{}' > /tmp/oc.json && OPENCODE_CONFIG=/tmp/oc.json opencode --standalone
  2. Run /models, type one character in the search field.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.