anomalyco / anomalyco/opencode
tui: main prompt flashes while scrolling through terminal history
@kommander is already working on this.
Since Aug 28, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Summary
While scrolling upward through a long opencode session, the main input prompt briefly flashes on screen even when the current scroll position is far away from it.
Environment
- opencode version: 0.0.0-beta-18414
- OS: macOS, Darwin 25.6.0 (arm64)
- Terminal: Zed 1.17.2 integrated terminal (
TERM_PROGRAM=zed,TERM=xterm-256color,COLORTERM=truecolor) - Shell:
/bin/zsh - Install/channel: opencode 2 beta
- Active plugins: None found
Reproduction
- Open opencode in Zed's integrated terminal.
- Build up enough session output that the main input prompt is far below the visible terminal history.
- Scroll upward using a mouse wheel or trackpad.
- Observe the screen while scrolling.
Expected Behavior
Only the terminal history at the current scroll position should be rendered. The main input prompt should not appear when it is outside the visible region.
Actual Behavior
The main input prompt flashes on screen for a split second while scrolling upward, even when the current position is far away from the prompt.
The issue occurs deterministically when scrolling upward. It has only been reproduced in Zed's integrated terminal.
Additional Context
- No known update or configuration change preceded the issue.
- No workaround has been tried.
- No active plugins were found.
- A screen recording is available and will be attached.
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.