Tmux formatting issues #1309

Closed
opened 2026-02-16 17:30:23 -05:00 by yindo · 3 comments
Owner

Originally created by @fedebotu on GitHub (Aug 14, 2025).

Running OpenCode in tmux causes formatting issues:

  1. The bottom bar, including the current agen,t is hidden by the tmux status bar
  2. The cursor is moved up by 1 line. This can be fixed by reducing this to +1

Normal:

Image

In a tmux session:

Image

cc @Zymrael

Originally created by @fedebotu on GitHub (Aug 14, 2025). Running OpenCode in `tmux` causes formatting issues: 1. The bottom bar, including the current agen,t is hidden by the `tmux` status bar 2. The cursor is moved up by 1 line. This can be fixed by reducing [this](https://github.com/sst/opencode/blob/156cc6cffe417a419cb23069d3cb97df20d4311d/packages/tui/internal/tui/tui.go#L953) to +1 Normal: <img width="967" height="677" alt="Image" src="https://github.com/user-attachments/assets/e9137db0-0992-4cc8-b5f9-89b120aaadb6" /> In a `tmux` session: <img width="965" height="677" alt="Image" src="https://github.com/user-attachments/assets/4508c8f2-a7ea-45ff-a769-7a95ae4ef06a" /> cc @Zymrael
yindo closed this issue 2026-02-16 17:30:23 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 14, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1930: Cursor drawn in the wrong place (TMUX + WSL + alacritty) - This issue specifically mentions cursor positioning problems in tmux and even references the same commit that may be related to cursor positioning issues.
  • #1917: In tmux sessions some of the styling is lost - This issue describes styling problems when running opencode in tmux sessions, including background styling being lost.
  • #336: shift-modified keybindings ignored inside tmux - While focused on keybindings, this demonstrates tmux compatibility issues with the TUI interface.
  • #230: Sharing session doesn't copy link in tmux - Another tmux-specific functionality issue that suggests broader tmux compatibility problems.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Aug 14, 2025): This issue might be a duplicate of existing issues. Please check: - #1930: Cursor drawn in the wrong place (TMUX + WSL + alacritty) - This issue specifically mentions cursor positioning problems in tmux and even references the same commit that may be related to cursor positioning issues. - #1917: In tmux sessions some of the styling is lost - This issue describes styling problems when running opencode in tmux sessions, including background styling being lost. - #336: shift-modified keybindings ignored inside tmux - While focused on keybindings, this demonstrates tmux compatibility issues with the TUI interface. - #230: Sharing session doesn't copy link in tmux - Another tmux-specific functionality issue that suggests broader tmux compatibility problems. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Aug 14, 2025):

This looks like duplicate of #1930

@rekram1-node commented on GitHub (Aug 14, 2025): This looks like duplicate of #1930
Author
Owner

@rekram1-node commented on GitHub (Aug 14, 2025):

Closing as duplicate

@rekram1-node commented on GitHub (Aug 14, 2025): Closing as duplicate
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1309