You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Characters are encoding gibberish all over the frontend #4320
It thinks the terminal supports explicit width for some reason. These are explicit width sequences. The capability detection seems to be off here. I'll check that.
Can you get an opentui-examples release from https://github.com/anomalyco/opentui/releases/tag/v0.1.72 for you platform and run the "Keypress Debug Tool" and show me the capabilities it shows? shift+s should also write that out as json in the cwd.
I tried that option and nothing seems to have changed. In case this is relevant: I've had similar characters in vim that were solved by setting set t_RK= t_TE=. Here is the issue that helped me solve it: vim/vim#11728.
I cannot reproduce that with GNOME 3.28 on ubuntu. Where the heck do I get an RHEL8 image? Have you tried upgrading the GNOME terminal or using one that is officially supported by opencode?
It's a work computer that runs RockyLinux 8.10. To test it you can download a bare-bones image on their official website: https://download.rockylinux.org/pub/rocky/8/isos/x86_64/Rocky-8.10-x86_64-minimal.iso. I have no root access so it's hard to install other terminals like konsole, but we do have terminator installed and it has the same problem as GNOME terminal. It looks to be a deeper problem than just switching emulators. That said, I talked to our sysadmin and we are due for an upgrade to RHEL9 in the upcoming weeks. Would be nice to get a working version until then but if it's unfeasible I'll just wait.
terminator can not work for me, too. But I found that this issue does not occur in the terminal of VSCode, even without the OpenCode plugin installed. I am currently using opencode in this way.
Activity
github-actions commentedon Nov 14, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
kommander commentedon Nov 27, 2025
It thinks the terminal supports explicit width for some reason. These are explicit width sequences. The capability detection seems to be off here. I'll check that.
inv1s10n commentedon Dec 23, 2025
Is there a solution to this problem? I am currently experiencing this issue in the latest version as well.
fkukuck commentedon Dec 23, 2025
Install a different terminal, such as Konsole
feghalya commentedon Jan 15, 2026
This is still an issue for me as well (GNOME Terminal v3.28.3 on RHEL8) with the latest opencode version (1.1.21) forcing me to use the old v0.15.31.
kommander commentedon Jan 15, 2026
Can you get an
opentui-examplesrelease from https://github.com/anomalyco/opentui/releases/tag/v0.1.72 for you platform and run the "Keypress Debug Tool" and show me the capabilities it shows?shift+sshould also write that out as json in the cwd.feghalya commentedon Jan 15, 2026
Is this what you're looking for?
kommander commentedon Jan 15, 2026
Yes. Curious. It says it supports explicit width, but doesn't handle the escape sequences properly. I am getting a setup up to debug this properly.
kommander commentedon Jan 16, 2026
Oh I just remembered, in the meantime you can try setting
OPENTUI_FORCE_EXPLICIT_WIDTH=0, which might fix that.feghalya commentedon Jan 16, 2026
I tried that option and nothing seems to have changed. In case this is relevant: I've had similar characters in vim that were solved by setting
set t_RK= t_TE=. Here is the issue that helped me solve it: vim/vim#11728.Running
gnome-terminal --versionreturns# GNOME Terminal 3.28.3 using VTE 0.52.4 +GNUTLS.kommander commentedon Jan 17, 2026
I cannot reproduce that with GNOME 3.28 on ubuntu. Where the heck do I get an RHEL8 image? Have you tried upgrading the GNOME terminal or using one that is officially supported by opencode?
fkukuck commentedon Jan 18, 2026
Yes i switched to Konsole
feghalya commentedon Jan 19, 2026
It's a work computer that runs RockyLinux 8.10. To test it you can download a bare-bones image on their official website: https://download.rockylinux.org/pub/rocky/8/isos/x86_64/Rocky-8.10-x86_64-minimal.iso. I have no root access so it's hard to install other terminals like konsole, but we do have terminator installed and it has the same problem as GNOME terminal. It looks to be a deeper problem than just switching emulators. That said, I talked to our sysadmin and we are due for an upgrade to RHEL9 in the upcoming weeks. Would be nice to get a working version until then but if it's unfeasible I'll just wait.
inv1s10n commentedon Jan 20, 2026
terminator can not work for me, too. But I found that this issue does not occur in the terminal of VSCode, even without the OpenCode plugin installed. I am currently using opencode in this way.
github-actions commentedon Mar 26, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.