Feature request: Git status badge on sidebar workspace rows #5092
Replies: 2 comments 1 reply
|
Source verification against current master ( 1. The workspace rows exist and already carry the path. 2. The important part: the sidebar has no additive seam for this today. This is the difference between your request and the composer-chip variant:
Contrast with the composer: 3. Upstream blueprint for the sidebar variant. Add a per-row list slot seam, e.g. Related: dsh-github-sidebar (#5093) shows a community sidebar surface for GitHub data — same no-seam constraint, worth knowing about if you look at their approach. |
|
Created a plugin + Seam Patch See dsh-workspace-git-badge for installing plugin and running seam patch |
Uh oh!
There was an error while loading. Please reload this page.
Feature request: Git status badge on sidebar workspace rows
Summary
Show each Workspace's git state directly on its sidebar row, Claude Code
statusline-style:
Name stays in the row's normal styling; everything after the separator is
muted tertiary text. The emoji is the only colored element — green when the
working tree is clean, yellow when it has uncommitted changes.
Why
The sidebar is where I decide which workspace to work in, but it currently
says nothing about the state of those workspaces. Answering "is anything
uncommitted here?", "which checkout am I on?", or "does this branch need a
push?" requires opening a terminal per workspace. Claude Code's status line
set the expectation: one glance, per project, at branch + dirty + sync state.
For multi-checkout work (main checkout + worktrees), the rows are
indistinguishable today; with the badge they read at a glance.
Proposed UX
Row (always visible)
name | emoji branch— pipe separator in tertiary; branch in tertiary, 12px.↑n/↓nappended only when nonzero — unpushed / unpulled commit counts.non-git directories — those rows are otherwise unidentifiable if the badge
replaced the name.
stable when switching between git and non-git workspaces.
Hover card (detail on demand)
The existing workspace hover card gains a git section:
carry this.
Behavior notes (UX-level)
the user has committed is worse than no badge. Poll on a modest interval
(a few seconds) with a per-workspace shared cache so row and hover agree.
action buttons in v1. Hover carries the detail.
single color signal. No brackets, no extra badges.
truncate, never push the name out.
Questions for maintainers
exposed to the client (the browser can't run git), or is this better
scoped as an extension point (a row annotation slot) that a plugin fills?
cadence/trigger would you prefer (e.g. refresh on hover or on sidebar
focus instead of interval)?
with the existing state aliases?
Happy to test any proposed design against a two-workspace setup (main
checkout + worktrees) — that's where this earns its keep.
All reactions