Skip to content

feat: add Connor Stack sidebar mode with worktree grouping - #3

Merged
connorch merged 5 commits into
mainfrom
t3code/sidebar-v2-worktree-modes
Aug 6, 2026
Merged

connorch merged 5 commits into
mainfrom
t3code/sidebar-v2-worktree-modes

Conversation

@connorch

@connorch connorch commented Aug 6, 2026

Copy link
Copy Markdown
Owner

What Changed

Adds a new sidebar mode ("Connor Stack") that groups threads by worktree instead of by project, alongside the existing Default and Flat sidebars. Includes:

  • A SidebarMode setting (default / flat / connor-1) that supersedes the legacy sidebarV2Enabled boolean while staying backwards compatible with it.
  • Worktree-based grouping logic (SidebarConnor.logic.ts) with collapsed-group status indicators, per-thread status dots, and group navigation (which thread to open when clicking a collapsed group).
  • Project grouping, sorting, and hide/show controls within Connor Stack mode.
  • Drag-and-drop project reordering for Connor Stack's manual sort order.
  • Removal of the earlier Tree and Focus sidebar experiments, which are superseded by Connor Stack.

Why

The Default and Flat sidebars organize threads by project, but a large share of my work happens across parallel git worktrees on the same project. Connor Stack makes the worktree the unit of navigation so I can see, at a glance, which worktree needs attention (approval pending, question asked, working, or unread) without expanding every thread.

UI Changes

New sidebar mode selectable from sidebar settings. Not including screenshots/video here since this is a personal workflow feature, not a general product change - happy to add if useful for review.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

connorch and others added 5 commits August 6, 2026 11:44
Replace the Sidebar V2 beta toggle with a five-way sidebar mode select
(Default, Flat, and three Connor modes that group threads by git
worktree). Worktree groups carry rename, last-viewed-thread navigation,
and a prioritized attention indicator (question/approval, failed,
working, unread).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Stack mode (connor-1) now nests worktree cards and local-checkout
threads under collapsible project sections, sharing the Default
sidebar's project sort (last user message / created at / manual),
thread sort (which orders rows inside expanded worktrees), and
project-expansion store. The header gains the same sort menu and
add-project affordances as the Default sidebar.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Manual project sorting in Stack mode now supports dragging project
sections, using the same @dnd-kit setup and shared projectOrder
preference as the Default sidebar. A post-drop click guard keeps the
drag from also toggling the section's expansion.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Right-clicking a project section offers Hide project (with an Undo
toast) alongside new-thread and copy-path items. Hidden projects leave
the list until the sort menu's new Filter switch shows them, where they
render dimmed with an eye-off badge and an Unhide action. Both the
per-project flags and the filter persist in the ui-state store, keyed
by the same preference aliases as project expansion.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Connor Mode is now just the Stack take: the mode select offers Default,
Flat, and Connor Mode, and the Tree/Focus variant components, their
expansion state, and the variant plumbing are gone. Stored "connor-2" /
"connor-3" values decode to "connor-1" instead of failing the settings
blob, which would have reset every client setting.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@cursor

cursor Bot commented Aug 6, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@connorch
connorch merged commit 143684b into main Aug 6, 2026
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