feat(work): show agent executing vs idle on Workbench terminal tabs - #132
Merged
danielss-dev merged 1 commit intoSep 21, 2026
Merged
Conversation
Workbench terminal dots stay lifecycle-only for ordinary shells. For Claude Code and Codex CLI, parse OSC titles already on the PTY stream so a running tab pulses while a turn executes and returns to steady green when the agent is idle. Co-authored-by: Daniels <danielss-dev@users.noreply.github.com>
danielss-dev
marked this pull request as ready for review
September 21, 2026 11:06
danielss-dev
deleted the
developements/workbench-agent-terminal-status-4f5b
branch
September 21, 2026 11:09
This was referenced Sep 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linear
DAN-75 — Workbench terminal status should show agent running vs turn finished.
Indicator colors
exitedcode 0), or a live non-agent shell (running)var(--add)runningvar(--info)(fixed hue, not the user accent)startingvar(--warn)(pulse on agent busy only)error, or non-zero exitvar(--del)Dormant / not started stays gray (
var(--text-dim)). Starting stays--warnrather than introducing a fifth color (same as working).Agent waiting is not green. Pulse is on working amber only.
aria-label: Agent working / Agent waiting for input / Terminal done / Terminal failed.Tab strip and open-tabs menu share
terminalIndicatorClass().What
When a live PTY is hosting Claude Code or Codex CLI, OSC titles already on the PTY stream overlay working vs waiting. Unknown CLIs and plain shells stay lifecycle-only. A false working signal is treated as worse than remaining on the lifecycle color.
Design (reuse, not new IPC)
Claude Code and Codex CLI already write OSC 0/2 titles (braille spinner while a turn runs;
✳/✱idle marker for Claude; project-only remainder for Codex). Strand parses them inconsumeTerminalAgentOutput. OSC 9;4 is honored only after the session is recognized.TERM_PROGRAM=Strandis unchanged.Verification
pnpm --filter ./ui exec tsc --noEmit— passpnpm --filter ./ui test— 556 tests passLive Claude Code / Codex CLI E2E is not available on this Linux agent VM.
Smoke on Mac (Daniels)
claude/codex: mid-turn → amber (may pulse); back at prompt → blue.