anomalyco / anomalyco/opencode
tui: assistant prose has uneven left and right margins
@simonklee is already working on this.
Since Sep 14, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Summary
In the TUI, assistant prose sits about 5 columns from the left edge but only
about 2 from the right, so long responses look off-balance against the
scrollbar edge.
Environment
- opencode version: 2.0.3 (also present on the current v2 development branch)
- OS: Darwin 27.0.0 (darwin arm64)
- Terminal: ghostty (TERM=xterm-ghostty, COLORTERM=truecolor)
- Shell: /opt/homebrew/bin/fish
- Install/channel: latest
- Active plugins: None found in config
Reproduction
- Open any session in the TUI.
- View an assistant response with a few long paragraphs of prose.
- Compare the empty space to the left of the text with the space to the right.
Expected Behavior
Regular prose has symmetric side margins.
Actual Behavior
The left margin is ~5 columns (2 from the message column container + 3 from
the text part) while the right margin is ~2 columns, so wrapped text runs much
closer to the right edge and scrollbar.
Additional Context
Consistently reproducible at any terminal width (on narrow terminals under 44
columns the same asymmetry shows as 4 vs 1). The text part in
packages/tui/src/routes/session/message-parts.tsx applies paddingLeft={3}
with no paddingRight. Suggested fix: mirror the left inset on the right.
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.