anomalyco / anomalyco/opencode
tui: ALSA errors flood and corrupt the terminal during interaction
@kommander is already working on this.
Since Aug 11, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
On the V2 beta/next TUI, ordinary interaction can repeatedly initialize ALSA on a Linux host with no sound card. Scrolling through the slash-command picker and continuing to interact with the session prints ALSA diagnostics directly over the TUI, corrupting the display.
Expected behavior: ordinary TUI input should not initialize audio, and subprocess/library stderr should not overwrite the terminal UI.
Representative output:
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib conf.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
The sequence repeats for default, dmix, and dmix:0,0.
Install/channel: npm global install, V2 next channel.
Shell: /usr/bin/zsh.
Terminal environment: tmux (TERM_PROGRAM=tmux, TERM=xterm-256color, COLORTERM=truecolor).
Background service: running at http://127.0.0.1:49374.
Plugins
@plannotator/opencode@latest@ishaksebsib/opencode-tree- Local
clankerhouse-lifecycle.ts
OpenCode version
opencode2 v0.0.0-next-17155
Steps to reproduce
- Run
opencode2on Linux without an available ALSA sound card. - Type
/to open the slash-command picker. - Scroll through the commands or otherwise interact with the session.
- Observe repeated ALSA errors written over the TUI.
Screenshot and/or share link
A screenshot is available, showing the repeated ALSA output overwriting the command picker and session UI.
Operating System
Linux 6.1.175-219.359.amzn2023.aarch64 (aarch64)
Terminal
tmux (TERM=xterm-256color)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.