anomalyco / anomalyco/opencode
TUI: question tabs wrap mid-word and become cramped with too many questions
@simonklee is already working on this.
Since Sep 7, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- Avg merge
- 7h 2m
- Merged PRs (30d)
- 384
Description
Description
When the question tool asks too many questions (e.g. 12) at once in the TUI, the question tabs become cramped and their labels wrap in the middle of words. For example, Movies becomes Movi / es, Keyboard becomes Keyboa / rd, and Confirm becomes Conf / irm. The selected tab also becomes a tall block with a lot of empty space below its label.
The question body and answer options remain readable, but the header row is difficult to scan. The UI should keep question navigation readable when there are more tabs than fit across the terminal, including keeping Confirm accessible.
Steps to reproduce
- In the TUI, ask the agent to use the question tool to ask 12 questions in a single batch.
- Use short headers such as Kickoff, Movies, Essential Tool, Environment, Keyboard, Notes, New Language, Code Review, Peak Hours, Starting Over, Mystery, and Brag.
- Observe the question tab row: labels are squeezed and wrap mid-word, including the Confirm tab.
Observed in Build mode with the model displayed as DeepSeek V4 Flash Vision Exp.
OpenCode version
Locally installed version: 1.18.20 (opencode --version).
Related issue
#36040 describes wrapping caused by carriage-return characters in model output. This report concerns the crowded tab row with a large batch of questions; the underlying cause has not been verified.
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.