Opencode bug in Apptainer container #6795

Open
opened 2026-02-16 18:05:18 -05:00 by yindo · 1 comment
Owner

Originally created by @Find-Yit on GitHub (Jan 19, 2026).

Originally assigned to: @kommander on GitHub.

Description

When I use OpenCode on the GPU server, it works perfectly on the login node. However, after I request a GPU with qsub and start an interactive session, OpenCode shows a bug only inside qsub GPU interactive window(as shown in the screenshot). When I move the mouse or press the up/down arrow keys or Ctrl, the terminal output becomes garbled, and the cursor starts flickering/jumping.

I have already tried changing TERM, but the issue persists. I also tried the following commands, but none of them helped:

stty sane

tput rmcup

reset

export TERM=xterm-256color

Image

Plugins

No response

OpenCode version

1.1.25

Steps to reproduce

Allocate an interactive GPU job:

Command:

Inside the interactive window, run OpenCode:

Reproduce:

Move the mouse / press Up/Down arrows / press Ctrl

Observed:

The cursor starts flickering/jumping, and the screen output becomes garbled.

Screenshot and/or share link

Image

Operating System

NAME="Red Hat Enterprise Linux" VERSION="9.4 (Plow)"

Terminal

VScode terminal

Originally created by @Find-Yit on GitHub (Jan 19, 2026). Originally assigned to: @kommander on GitHub. ### Description When I use OpenCode on the GPU server, it works perfectly on the login node. However, after I request a GPU with qsub and start an interactive session, OpenCode shows a bug only inside qsub GPU interactive window(as shown in the screenshot). When I move the mouse or press the up/down arrow keys or Ctrl, the terminal output becomes garbled, and the cursor starts flickering/jumping. I have already tried changing TERM, but the issue persists. I also tried the following commands, but none of them helped: stty sane tput rmcup reset export TERM=xterm-256color <img width="1022" height="443" alt="Image" src="https://github.com/user-attachments/assets/927422a8-2c83-4479-b5eb-a7fddbece45b" /> ### Plugins _No response_ ### OpenCode version 1.1.25 ### Steps to reproduce Allocate an interactive GPU job: Command: <qsub command> Inside the interactive window, run OpenCode: Reproduce: Move the mouse / press Up/Down arrows / press Ctrl Observed: The cursor starts flickering/jumping, and the screen output becomes garbled. ### Screenshot and/or share link <img width="1022" height="443" alt="Image" src="https://github.com/user-attachments/assets/53455669-208b-40f2-a6b1-c362782131d5" /> ### Operating System NAME="Red Hat Enterprise Linux" VERSION="9.4 (Plow)" ### Terminal VScode terminal
yindo added the opentuibug labels 2026-02-16 18:05:18 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 19, 2026):

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

  • #7861: macOS terminal corruption with scrambled output and cursor positioning issues - similar terminal state corruption pattern
  • #9400: Rendering issues in PyCharm terminal with garbled output and input visibility problems - same environment-specific rendering failure pattern
  • #6503: Desktop APP rendering anomaly - platform-specific display glitches

All of these issues share the common theme of terminal display corruption and cursor problems in non-standard terminal environments, similar to your experience in the Apptainer container.

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

@github-actions[bot] commented on GitHub (Jan 19, 2026): This issue might be a duplicate of existing issues. Please check: - #7861: macOS terminal corruption with scrambled output and cursor positioning issues - similar terminal state corruption pattern - #9400: Rendering issues in PyCharm terminal with garbled output and input visibility problems - same environment-specific rendering failure pattern - #6503: Desktop APP rendering anomaly - platform-specific display glitches All of these issues share the common theme of terminal display corruption and cursor problems in non-standard terminal environments, similar to your experience in the Apptainer container. Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6795