Skip to content

Fix #464: preserve group sort_order when saving session data#465

Draft
asheshgoplani wants to merge 1 commit intomainfrom
fix/464-group-sort-order-reset
Draft

Fix #464: preserve group sort_order when saving session data#465
asheshgoplani wants to merge 1 commit intomainfrom
fix/464-group-sort-order-reset

Conversation

@asheshgoplani
Copy link
Copy Markdown
Owner

Summary

  • saveSessionData() was using NewGroupTree() which reconstructs groups from scratch, losing all stored sort_order values
  • Changed to accept stored group data and use NewGroupTreeWithGroups() to preserve ordering
  • Updated all 9 call sites across session_cmd.go, try_cmd.go, launch_cmd.go, and worktree_cmd.go

Fixes #464

saveSessionData() used NewGroupTree() which reconstructs groups from
scratch, losing stored sort_order values. Changed to accept stored
group data and use NewGroupTreeWithGroups() to preserve ordering.

Fixes #464
Committed by Ashesh Goplani
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.

Bug: Adding/starting sessions resets all group sort_order values to 0

1 participant