Skip to content

Configurable status bar items (e.g. working directory / git branch) #33676

Closed as not planned

Description

@erickmazer

Problem

When working with multiple OpenCode splits (Cmd+D) in the same terminal tab — each pointing at a different git worktree of the same monorepo — there is no way to tell at a glance which split is running in which worktree. The sidebar shows the directory name but disappears when the window is narrowed, and terminal-level tab titles don't help across splits in the same tab (splits have no per-pane title in most terminal emulators, including Ghostty).

The status bar below the message input (currently showing token usage / model) is the one piece of UI that is always visible regardless of window size or sidebar state, but it is currently hardcoded — there is no config field to add custom items to it.

Proposal

Add a config field (e.g. statusbar.items) to the config schema that accepts one or more shell commands whose output is rendered in the status bar alongside the existing token/model info. Example:

{
  "statusbar": {
    "items": [
      { "command": "basename \"$PWD\"", "refresh": "on-focus" },
      { "command": "git branch --show-current", "refresh": "on-focus" }
    ]
  }
}

Why this matters

For users running 3-4 OpenCode splits side-by-side (common in multi-worktree monorepo workflows), the status bar is the only UI surface guaranteed to be visible in every split regardless of window width. Letting it show the working directory and/or git branch would make it immediately obvious which split is which — without needing to widen the sidebar in each pane.

Alternatives considered

  • Shell-level tab titles (OSC sequences): works for tabs, but most terminal emulators (including Ghostty) don't have per-split/pane titles — only the focused split's title propagates to the tab.
  • CLAUDE.md rule forcing the agent to print the branch at the start of every reply: noisy and only visible when scrolling back through messages, not at a glance.

Environment

  • OpenCode TUI (terminal)
  • Ghostty terminal, macOS

Activity

  1. github-actions commented on Jun 24, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • The title should start with [FEATURE]: for feature requests (e.g. [FEATURE]: Configurable status bar items (e.g. working directory / git branch))
    • Feature requests require a verification checkbox confirming you have searched existing issues (see template)

    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.

  2. github-actions commented on Jun 24, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions