Skip to content

ui: show panes instead of windows in the sidebar - #109

Merged
vaayne merged 1 commit into
mainfrom
feat/sidebar-panes
Jul 31, 2026
Merged

vaayne merged 1 commit into
mainfrom
feat/sidebar-panes

Conversation

@vaayne

@vaayne vaayne commented Jul 31, 2026

Copy link
Copy Markdown
Owner

What

The sidebar's expanded worktree rows now list panes instead of windows.

  • Single-pane windows (the common case) render exactly as before: window name, window badge, clicking selects the window. No visual change.
  • Split windows expand into one row per pane:
    • agent panes show their hook-assigned pane title (e.g. pi, claude) with a per-pane state glyph, pulse, and badge
    • plain shell panes are numbered — window · 2 — with a split-rectangle glyph (pane titles for shells are usually just the hostname)
    • clicking a row selects that pane via the existing onSelectPane → WorkspaceManager.selectPane wiring (window + pane focus)
    • hover preview and quick-reply target the row's own pane instead of the window's active pane
    • the window's unread dot rides only on its active pane row, so one unread window doesn't light every pane
  • The worktree count chip now counts pane rows, and its collapsed attention dot also inspects pane-level agent states (a single split window with a waiting agent now alerts — it couldn't before).

Why

Agents running in split panes were invisible in the sidebar: a window row only surfaced the window aggregate, so a 2-agent split showed one row and one state.

Notes

  • RuntimePane data and onSelectPane plumbing already existed end to end; this wires them into the rows.
  • Task-mode rows (TaskWorktreeRowView) are untouched.
  • No new localized strings.

Verification

  • mise run test UI/core suites pass; debug + release builds clean.
  • Changelogs (en + zh-Hans) updated.

Split windows used to collapse into one window row, hiding every agent
but the aggregate. Each pane of a split window now gets its own row:
agent panes show their hook-assigned pane title with per-pane state
glyph and badge, plain shells are numbered ("window · N"), and clicking
a row selects that pane via the existing onSelectPane wiring. Hover
preview and quick reply target the row's own pane.

Single-pane windows render exactly as before (window name, window
badge, onSelectWindow). The worktree count chip and its collapsed
attention dot now count and inspect panes.
@vaayne
vaayne merged commit 45039c1 into main Jul 31, 2026
5 checks passed
@vaayne
vaayne deleted the feat/sidebar-panes branch July 31, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant