anomalyco / anomalyco/opencode
TUI: DialogModel is too narrow and truncates model names
Open
@kommander is already working on this.
Since Sep 6, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- Avg merge
- 7h 2m
- Merged PRs (30d)
- 384
Description
Description
In the TUI, the model selection dialog (DialogModel) remains locked to the default "medium" width (60 columns) regardless of terminal window size.
When models have descriptive names or when providers include additional backend info in the footer (e.g. custom endpoints, vLLM / Ollama instances, OpenRouter model variants), the footer consumes 35-45 columns. In a 60-column dialog, this leaves only ~15 characters for the model name, causing heavy truncation (e.g., Gemma 4 12B cod..., GPT-OSS 20B (Op...).
Steps to reproduce
- Configure custom models or providers with descriptive names / footers.
- Open the model picker in TUI (
/modelsor shortcut). - The dialog only uses 60 columns even on wide (120-200 col) terminals, truncating model names.
Operating System
Linux x86_64
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.