feat: add status light indicator for TUI and Web UI#30273
Closed
niushuai1991 wants to merge 3 commits into
Closed
Conversation
Contributor
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
- Add computeStatusLight() in @opencode-ai/core/session/status-light - Refactor TUI trafficLight memo to use shared function - Add status light dot to Web UI session tabs (V2 titlebar) - Shows colored dot when config.status_light is enabled - Falls back to title text when disabled
860c7a8 to
5b1f488
Compare
6 tasks
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.
Issue for this PR
Closes #30272
Type of change
What does this PR do?
Adds a configurable status light indicator in the terminal title bar and Web UI session tabs that reflects the current opencode state:
Configuration:
status_light: booleanat top-level config (global or project-level).{ "status_light": true }The indicator is prepended to the existing terminal title (e.g.
🟢 OC | My Session). In Web UI, a colored dot is shown before the tab title text.Permission required and question asked states are correctly shown as green (waiting for user), avoiding false "busy" indication.
How did you verify your code works?
bun typecheckpasses across all 27 packagesbun run buildsucceeds for all platformsstatus_light: truein global configScreenshots / recordings
N/A — terminal title bar change is not visible in screenshots. Web UI tab dot can be verified visually.
Checklist
If you do not follow this template your PR will be automatically rejected.