Skip to content

fix(tui): keep prompt rows on one line in narrow terminals - #53062

Closed
moritzWa wants to merge 1 commit into
anomalyco:devfrom
moritzWa:fix/tui-narrow-prompt-rows
Closed

moritzWa wants to merge 1 commit into
anomalyco:devfrom
moritzWa:fix/tui-narrow-prompt-rows

Conversation

@moritzWa

@moritzWa moritzWa commented Oct 4, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #53061

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Nothing in the two rows under the session prompt was marked as fixed-width, so in a narrow terminal every text shrank at once and wrapped mid-word.

  • Agent/model row: the agent and model group no longer shrinks. The right slot shrinks instead and clips (minWidth={0}, overflow="hidden"), so plugin content there gives way first.
  • Directory row: the directory truncates on one line (wrapMode="none", truncate) and is the part that shrinks. The shortcut hints keep their width, and a gap keeps the directory from running into them.

How did you verify your code works?

Ran the TUI in tmux at 120, 60, 45 and 40 columns, before and after, with --pure and with a plugin rendering into session_prompt_right. bun run typecheck in packages/tui passes.

Screenshots / recordings

40 columns, dev on the left, this PR on the right. On dev the model name, directory and hints all wrap mid-word.

dev This PR
before after

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TUI: prompt rows wrap mid-word in narrow terminals

2 participants