anomalyco / anomalyco/opencode

TUI long prompt text overflows while scrolling

Open
#49,341 0 comments 0 reactions 1 assignee View on GitHub

@simonklee is already working on this.

Since Sep 16, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

Long prompts can render outside the expected TUI composer/message layout and cause visible flickering/overflow while using the TUI.

On opencode 1.18.31, entering a long prompt and scrolling in the TUI can make part of the prompt appear outside the expected prompt area. The long text appears to escape or clip through the layout while the composer/status area remains visible, producing visible flickering and overflow.

This appears to be a TUI layout/height-clamping or redraw issue for long wrapped prompt text while scrolling.

Plugins

@opencode-ai/plugin 1.4.6

OpenCode version

1.18.31

Steps to reproduce

  1. Use opencode 1.18.31 in the TUI.
  2. Paste or type a long prompt, for example several thousand characters of normal prose without manual line breaks.
  3. Submit the prompt.
  4. Scroll the TUI while the long prompt is in the conversation history.
  5. Observe that long prompt text can visually overflow/flicker outside the expected prompt/message area instead of staying clipped within the layout.

Screenshot and/or share link

Screenshot shows long prompt text overflowing near the top of the visible TUI while the composer/status area remains at the bottom.

TUI long prompt overflow

Operating System

macOS 26.6.2 arm64

Terminal

Ghostty (TERM=xterm-ghostty). Reproduction capture used TERM=xterm-256color with COLUMNS=80 and LINES=24.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.