opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Opencode bug in Apptainer container

Open Find-Yit opened this issue 10 months ago • 2 comments

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

Find-Yit avatar Jan 19 '26 13:01 Find-Yit

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] avatar Jan 19 '26 13:01 github-actions[bot]

To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

github-actions[bot] avatar Mar 26 '26 03:03 github-actions[bot]