anomalyco / anomalyco/opencode

TUI: DialogModel is too narrow and truncates model names

Open
#47,600 0 comments 0 reactions 1 assignee View on GitHub

@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
  1. Configure custom models or providers with descriptive names / footers.
  2. Open the model picker in TUI (/models or shortcut).
  3. 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

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.