Opencode bug in Apptainer container
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
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
Operating System
NAME="Red Hat Enterprise Linux" VERSION="9.4 (Plow)"
Terminal
VScode terminal
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.
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.