Summary
After killing a foreground/background shell command (e.g., sleep 300) via pkill, the opencode UI continues to show an active spinning logo indicating a background task is still running, even though the process has been terminated.
Environment
- opencode version: v0.0.0-next-15546 (V2 beta)
- OS: Linux 7.1.2-arch3-1 (linux x64)
- Terminal: tmux-256color (tmux, truecolor)
- Shell: /bin/zsh
- Install/channel: next
- Active plugins: None found in config
- Service status: http://0.0.0.0:4096
Reproduction
- Run a shell command in the foreground (e.g.,
sleep 300)
- Request to kill the process
- Kill the process using
pkill -f "sleep 300"
- Observe the UI continues to show the spinning logo
Expected Behavior
The spinning logo should stop and the UI should return to idle state once the process is killed.
Actual Behavior
The spinning logo persists in the UI even though the process has been terminated. The UI state does not update to reflect that no background tasks are running.
Additional Context
- The process is confirmed killed via
ps aux | grep sleep
- Issue appears to be a UI state synchronization problem
- Reproduced consistently: closing and reopening the session does not clear the spinning logo
- Workaround tried: refresh the page (did not help), restart opencode
Summary
After killing a foreground/background shell command (e.g.,
sleep 300) viapkill, the opencode UI continues to show an active spinning logo indicating a background task is still running, even though the process has been terminated.Environment
Reproduction
sleep 300)pkill -f "sleep 300"Expected Behavior
The spinning logo should stop and the UI should return to idle state once the process is killed.
Actual Behavior
The spinning logo persists in the UI even though the process has been terminated. The UI state does not update to reflect that no background tasks are running.
Additional Context
ps aux | grep sleep