Skip to content

fix: stabilize active worktree order in 'recent' sort - #116

Merged
nwparker merged 1 commit into
mainfrom
nwparker/smart-order
Mar 26, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/smart-order

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary

  • Active worktrees (with live PTY connections) now pin to the top of the list in stable name order when using the "recent" sort
  • Inactive worktrees continue to sort by recency below them
  • Prevents the list from reshuffling every time you switch between active worktrees

Test plan

  • Switch to "recent" sort in the sidebar
  • Open multiple worktrees so they have active PTY connections
  • Click between active worktrees and verify they don't reorder
  • Verify inactive worktrees still sort by most recently used

🤖 Generated with Claude Code

Active worktrees (with live PTY connections) now pin to the top in
name order so they don't reshuffle every time one is selected.
Inactive worktrees continue to sort by recency below them.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nwparker
nwparker merged commit 38c5b6b into main Mar 26, 2026
1 check passed
@nwparker
nwparker deleted the nwparker/smart-order branch March 26, 2026 19:51
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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