Skip to content

Allow customizing TUI status bar segments (model, cost, code changes, etc.) #40534

Closed

Description

@harryqin-heidi

Feature request

The TUI status bar currently shows a fixed set of segments and is not user-configurable. It would be great to expose the status bar as a configurable surface so users can surface the info they care about at a glance.

What I'd like

A config field (e.g. statusbar / status_bar) in opencode.json that lets me pick which segments render and in what order, ideally with per-segment color. Useful segments:

  • Current model (provider/model id)
  • Per-session token cost ($$) and/or cumulative cost
  • Code change summary (files changed / +/- lines since session start or vs base branch)
  • Current agent + mode (build/plan/subagent)
  • Git branch + dirty indicator
  • Context window usage (tokens used / context limit)
  • Session timer / message count

Why

A denser, color-coded status bar gives users real-time feedback on cost, context pressure, and the shape of their diff without leaving the conversation. Today this requires running separate commands or checking the diff manually.

Proposed shape (rough)

{
  "statusbar": {
    "segments": [
      { "type": "model", "color": "primary" },
      { "type": "cost", "color": "warning" },
      { "type": "diff", "color": "success" },
      { "type": "agent" },
      { "type": "git" },
      { "type": "context" }
    ]
  }
}

Each type maps to a built-in renderer. Unknown types ignored or warned. Colors reuse the existing theme palette (primary/secondary/accent/success/warning/error/info) plus hex.

Alternatives considered

  • Hardcoding more segments upstream — works but forces one layout on everyone.
  • Plugin hook that injects custom segments — more powerful but heavier; could be a follow-up.

Out of scope (for now)

  • Custom user-defined segment renderers (TUI plugins). Worth considering as a later extension.

Activity

  1. github-actions commented on Aug 4, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • The title should start with [FEATURE]: as required by the feature request template
    • The feature request template requires a verification checkbox confirming the feature hasn't been suggested before (this appears to be missing)

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


    This issue might be a duplicate of existing issues. Please check:

    If you believe this was flagged incorrectly, please let a maintainer know.

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

Metadata

Metadata

Assignees

Labels

needs:complianceThis means the issue will auto-close after 2 hours.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions