Skip to content

fix(tui): clear completed background shell status - #35320

Merged
kitlangton merged 2 commits into
v2from
background-shell-status
Jul 4, 2026
Merged

kitlangton merged 2 commits into
v2from
background-shell-status

Conversation

@kitlangton

@kitlangton kitlangton commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • render a compact gray Backgrounded badge once a shell is moved to the background
  • keep the shell spinner active while the background command is still running
  • switch the command to the normal $ completed state when the shell exits while retaining the Backgrounded badge
  • keep persisted shell output timeless for reloads and non-TUI clients while retaining model-only completion guidance

Supersedes #34851.

Visual follow-up

The persistent Backgrounded status is correct, but giving it a dedicated row feels more prominent than it should. Explore a subtler treatment separately, likely inline placement and/or a quieter color.

Verification

  • bun typecheck in packages/core
  • focused shell background regression test
  • bun typecheck in packages/tui
  • all 203 TUI tests
  • repository pre-push typecheck (31 packages)
  • Terminal Control verification of foreground shell -> Ctrl-B -> persistent badge with spinner -> completed $ state with persistent badge

@kitlangton

kitlangton commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor Author

Updated Terminal Control verification of the exact flow: foreground shell, Ctrl-B, persistent Backgrounded badge with the spinner still active, then $ after completion while the badge remains.

pr-35320-spinner.mp4

@kitlangton

Copy link
Copy Markdown
Contributor Author

Visual follow-up: the persistent Backgrounded status is correct, but giving it a dedicated row still feels more prominent than it should. We should explore making it subtler, likely by placing it inline with the command and/or using a quieter color.

@kitlangton
kitlangton merged commit 610e618 into v2 Jul 4, 2026
9 checks passed
@kitlangton
kitlangton deleted the background-shell-status branch July 4, 2026 15:33
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant