Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(worktrees): scroll existing list

Darren Kattanf2a41981d839
diff --git a/src/renderer/components/WorktreeDialog.tsx b/src/renderer/components/WorktreeDialog.tsx
index 0828a76a6..879927b13 100644
--- a/src/renderer/components/WorktreeDialog.tsx
+++ b/src/renderer/components/WorktreeDialog.tsx
@@ -108,27 +108,29 @@ export function WorktreeDialog({
{existing.length > 0 && (
<div className="bind-existing">
<div className="bind-existing__title">Existing worktrees</div>
- {existing.map((e) => (
- // A detached-HEAD worktree cannot be bound (there is no branch to merge or name the
- // group after), so the row is DISABLED and says why — clicking it used to be a
- // silent no-op.
- <button
- key={e.path}
- className="bind-existing__row"
- disabled={busy || !e.branch}
- onClick={() => onBindExisting(e)}
- title={
- e.branch
- ? e.path
- : `${e.path}\nDetached HEAD — check out a branch in this worktree first.`
- }
- >
- <span className="bind-existing__branch">
- {e.branch ? `⎇ ${e.branch}` : '⎇ (detached HEAD — check out a branch first)'}
- </span>
- <span className="bind-existing__path">{e.path}</span>
- </button>
- ))}
+ <div className="bind-existing__list">
+ {existing.map((e) => (
+ // A detached-HEAD worktree cannot be bound (there is no branch to merge or name the
+ // group after), so the row is DISABLED and says why — clicking it used to be a
+ // silent no-op.
+ <button
+ key={e.path}
+ className="bind-existing__row"
+ disabled={busy || !e.branch}
+ onClick={() => onBindExisting(e)}
+ title={
+ e.branch
+ ? e.path
+ : `${e.path}\nDetached HEAD — check out a branch in this worktree first.`
+ }
+ >
+ <span className="bind-existing__branch">
+ {e.branch ? `⎇ ${e.branch}` : '⎇ (detached HEAD — check out a branch first)'}
+ </span>
+ <span className="bind-existing__path">{e.path}</span>
+ </button>
+ ))}
+ </div>
</div>
)}