mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 10:58:10 +00:00
fix(tabs): keep removed worktrees' group entries deleted on removal
The second emptied-group collapse in removeWorktreeLayout also visited removed worktrees and wrote their deleted groupsByWorktree entry back as an empty list, a delete-then-set the seam read as a reordered full resync. It now visits only surviving workspaces, so removal stays addressed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
17a10f196b
commit
7d73aea415
@@ -168,7 +168,12 @@ export function removeWorktreeLayout(
|
||||
: groups
|
||||
)
|
||||
}
|
||||
collapseEmptiedKeptGroups(s.groupsByWorktree, drafts, affectedWorkspaces)
|
||||
// Removed worktrees' entries stay deleted; collapsing them would write an empty group list back.
|
||||
collapseEmptiedKeptGroups(
|
||||
s.groupsByWorktree,
|
||||
drafts,
|
||||
new Set([...affectedWorkspaces].filter((id) => !worktreeIds.has(id)))
|
||||
)
|
||||
const recentEditors = Object.fromEntries(
|
||||
Object.entries(omitByWorktree(s.recentlyClosedEditorTabsByWorktree)).map(([id, rows]) => [
|
||||
id,
|
||||
|
||||
Reference in New Issue
Block a user