Skip to content

Show branch status in workspace name header #17

Description

@ammario

Filed by cmux AI assistant

Problem

The WorkspaceTitle in AIView.tsx (line 436) shows only {projectName} / {branch} with no git status indicators. Users cannot tell if their branch is behind/ahead, has uncommitted changes, conflicts, etc.

Solution

Add git status indicators to the workspace header:

  • ↓N / ↑N - commits behind/ahead
  • - dirty changes
  • ⚠️ - conflicts

Example: cmux/main ↓2 ● (2 behind, dirty changes)

Implementation

  • Component: src/components/AIView.tsx (WorkspaceTitle at line 436)
  • Add git status check (debounced/cached for performance)
  • Update on file changes, commits, fetch operations
  • Consider using simple-git or native git calls via IPC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions