Skip to content

TUI: prompt rows wrap mid-word in narrow terminals #53061

Closed as not planned
Closed as not planned

Description

@moritzWa

Description

In a narrow terminal (about 60 columns or less), the two rows under the session prompt wrap character by character. Every text in each row is allowed to shrink, so the agent name, the model, the directory and the shortcut hints all get squeezed at once and wrap mid-word (Buil / d) instead of one item giving way.

#44551 shows the same wrapping in its captures; that issue was closed because its blank-row symptom came from the terminal app, but the wrapping itself reproduces in a normal terminal.

Plugins

None (--pure)

OpenCode version

1.18.34

Steps to reproduce

  1. Open an existing session in a 40-column terminal: opencode --pure --continue
  2. Look at the agent/model row and the directory row under the prompt.

Screenshot and/or share link

At 40 columns:

  ┃  Buil ·Abliterated Model ablite
  ┃  d                       ration
  ┃                          .ai
  ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   /Users/m/Code/   132.1 ctrl+p
   opencode               commands

Operating System

macOS

Terminal

tmux (macOS)

Activity

  1. github-actions commented on Oct 4, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    • #44551: reports prompt/footer wrapping in narrow terminals in the same TUI area, though its reported symptom is excess blank rows rather than mid-word wrapping.

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions