What happened?
OpenCode TUI loses input area and sidebar after switching away and back to a worktree
Environment
- Supacode (latest, macOS 26 Tahoe 26.6.2)
- MacBook Air M3, 16 GB
- OpenCode 1.18.21, model Kimi K3 via Moonshot AI
- Claude Code and Codex also installed, hooks enabled for all
Summary
When running OpenCode inside a Supacode terminal pane, the TUI progressively
loses its layout: the input area disappears, the right-hand context sidebar
disappears, and a narrow ghost column of orphaned characters appears at the
left edge of the pane (fragments like "ar", "/do", "rl" plus empty blocks).
The OpenCode process itself keeps working normally — it responds to input,
completes tasks, and reports correct token counts. Only the rendering breaks.
Frequency
Reproduces on every OpenCode pane, across all worktrees, within a few
minutes of use. Confirmed on at least 4 separate worktrees.
Key detail: agent-specific
Claude Code running in the exact same panes, worktrees, and machine has
NEVER exhibited this. Only OpenCode. This isolates the issue to the
Supacode + OpenCode rendering combination rather than Supacode's terminal
layer in general.
Workarounds (temporary)
- Resizing the window forces a full redraw and fixes it
- Archiving and unarchiving the worktree fixes it for ~10 minutes
- Both are temporary; the glitch returns
Suspected cause
Possibly a resize/SIGWINCH event not propagated to the OpenCode process when
a pane is hidden and restored, leaving OpenCode's internal layout state out
of sync with the actual pane dimensions.
Attachments
[joindre tes 3 captures : état sain, état cassé, et la colonne fantôme]
Steps to reproduce
Reproduction
- Open a worktree in Supacode
- Launch
opencode in a pane
- Work normally for ~10 minutes (several prompts, long agent responses)
- Switch to a different worktree in the sidebar
- Switch back to the original worktree
- The OpenCode TUI is now malformed
Supacode version and build
last version
macOS version
macOs 26.6.2
System locale
en_US (i guess)
Mac hardware
Mac book Air M3
Relevant logs or screenshots
Are you planning to fix this yourself?
Before submitting
What happened?
OpenCode TUI loses input area and sidebar after switching away and back to a worktree
Environment
Summary
When running OpenCode inside a Supacode terminal pane, the TUI progressively
loses its layout: the input area disappears, the right-hand context sidebar
disappears, and a narrow ghost column of orphaned characters appears at the
left edge of the pane (fragments like "ar", "/do", "rl" plus empty blocks).
The OpenCode process itself keeps working normally — it responds to input,
completes tasks, and reports correct token counts. Only the rendering breaks.
Frequency
Reproduces on every OpenCode pane, across all worktrees, within a few
minutes of use. Confirmed on at least 4 separate worktrees.
Key detail: agent-specific
Claude Code running in the exact same panes, worktrees, and machine has
NEVER exhibited this. Only OpenCode. This isolates the issue to the
Supacode + OpenCode rendering combination rather than Supacode's terminal
layer in general.
Workarounds (temporary)
Suspected cause
Possibly a resize/SIGWINCH event not propagated to the OpenCode process when
a pane is hidden and restored, leaving OpenCode's internal layout state out
of sync with the actual pane dimensions.
Attachments
[joindre tes 3 captures : état sain, état cassé, et la colonne fantôme]
Steps to reproduce
Reproduction
opencodein a paneSupacode version and build
last version
macOS version
macOs 26.6.2
System locale
en_US (i guess)
Mac hardware
Mac book Air M3
Relevant logs or screenshots
Are you planning to fix this yourself?
ready.Before submitting
ready.