Commit 9180639
committed
fix(sidebar): keep transient worktree selections stable
Synthetic sidebar worktree rows are transient selections and are not present in the saved repositories list. Repository-store updates were treating those selections as missing and falling back to the previously selected saved repository, which could jump the UI back to an unrelated main repository after selecting a worktree from another repo family.
Preserve transient synthetic worktree selections across repository list updates instead of replacing them during selection reconciliation.
Validation:
- yarn eslint app/src/lib/stores/app-store.ts
- yarn compile:prod1 parent f34dbca commit 9180639
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3033 | 3033 | | |
3034 | 3034 | | |
3035 | 3035 | | |
3036 | | - | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
| 3043 | + | |
| 3044 | + | |
| 3045 | + | |
| 3046 | + | |
| 3047 | + | |
| 3048 | + | |
| 3049 | + | |
3037 | 3050 | | |
3038 | 3051 | | |
3039 | 3052 | | |
| |||
0 commit comments