You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TUI: tool-call output preview does not soft-wrap long lines #45028
In the TUI, when a tool call (e.g. write, edit, bash) renders its output/preview panel, long lines are shown without soft-wrapping. On a narrower terminal (or with long single-line content such as file paths or one-liner scripts), the text is clipped at the panel edge and becomes unreadable unless the user widens the window or copies the content elsewhere.
Steps to reproduce
Open the opencode TUI on a ~100-column terminal.
Ask the agent to write a file containing long lines (e.g. a minified JS line, a long PowerShell one-liner, or a deeply nested path).
Look at the tool-call preview in the conversation: long lines are cut off at the panel boundary instead of wrapping to the next line.
Expected behavior
Long lines in tool-call previews should soft-wrap, or expose a config toggle (e.g. tui.soft_wrap: true | false) so users can choose per their preference.
Partly done in #53584: code blocks in execute details now wrap long lines, and text output wraps by word. #53504 couldn't reproduce clipping in write, edit or shell previews with V2 defaults. If you still see long lines cut off in the current TUI on Windows Terminal, comment here with a screenshot and we'll reopen it.
Activity
neriousy commentedon Oct 22, 2026
Partly done in #53584: code blocks in execute details now wrap long lines, and text output wraps by word. #53504 couldn't reproduce clipping in write, edit or shell previews with V2 defaults. If you still see long lines cut off in the current TUI on Windows Terminal, comment here with a screenshot and we'll reopen it.