Skip to content

tui: background task spinning logo persists after process is killed #36920

Description

@chrisae9

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

  1. Run a shell command in the foreground (e.g., sleep 300)
  2. Request to kill the process
  3. Kill the process using pkill -f "sleep 300"
  4. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions