Skip to content

feat(tui): show session status in terminal tab title#29637

Open
JochenYang wants to merge 1 commit into
anomalyco:devfrom
JochenYang:dev
Open

feat(tui): show session status in terminal tab title#29637
JochenYang wants to merge 1 commit into
anomalyco:devfrom
JochenYang:dev

Conversation

@JochenYang
Copy link
Copy Markdown

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a session status indicator to the terminal tab title so users can tell at a glance whether a session is idle or working.
Changes made:

  • packages/opencode/src/cli/cmd/tui/app.tsx
    Behavior:
    | Session state | Custom title | Default title |
    |---|---|---|
    | Idle | ▣ OC | {title} | ▣ OpenCode |
    | Busy | {spinner} OC | {title} | {spinner} OpenCode |

The original title display logic is preserved — custom titles show OC | {title}, default titles show OpenCode. Only the status prefix ( / spinner) is added in front.
Works on all platforms using standard Unicode characters and OSC 0 escape sequences.

How did you verify your code works?

  1. Ran bun dev from packages/opencode
  2. Confirmed the tab title updates between idle and busy states
  3. Verified typecheck with bun typecheck

Screenshots / recordings

aae084d0d3c7ab37da539b7e0a9292fb 4bf44cf774c39cc24f5ed32ecde6305f 36849d7b65ca60f81fc299b5d764c8a4 a085d1d90010dfd402b23555cb6f6349

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant