Files
orca/config
Brennan Benson 9f3fcd65ad fix(session): remove a deleted workspace's saved session state (#42580)
* fix(session): drop a removed workspace's saved session state everywhere

Workspace removal is now driven by one per-field table, main's terminal-membership
rebase no longer re-writes empty rows for worktrees the window stopped listing, and
the post-scan local prune also drops saved session state of worktrees whose folders
are gone (keeping unsaved drafts, archived, active and otherwise-owned workspaces).

* fix(session): address review pass 1 on deleted-workspace session cleanup

Match Windows path casing for protected metadata, filter cleanup candidates before
probing paths, batch recency deletion, count only references removal deletes, and
keep paused WSL moves out of repo removal.

* fix(session): keep repo removal's existing WSL freeze guard placement

* fix(session): count only row owners removal can delete

* refactor(session): let repo removal rely on shared owner removal

Drop repo removal's per-field loops that the shared owner removal already covers,
remove type assertions from the new tests, and lower the layout-writer baseline
(net four fewer main-process writers; the new cleanup module adds two).

* refactor(session): read session record rows through a type guard

* fix(session): drop default-tab flags of worktrees a loaded repo no longer lists

QA found the window kept these flags for deleted workspaces and saved them back
after main removed them, so cleanup kept re-selecting those workspaces.

* fix(session): address CodeRabbit on deleted-workspace cleanup

Match unsaved-draft owners path-equivalently, drop rejected unified tab and group
records when the rebase skips a dropped worktree, and pin the POSIX test fixtures'
platform.

* fix(session): address council review on deleted-workspace cleanup

Keep default-tab flags any worktree list still shows, read only eligible
candidates' files for the draft guard, drop a dropped worktree's active-tab entry
in the rebase, and save only the local session after cleanup.

* fix(session): keep a workspace marked archived without an archived checkout

* fix(session): follow the moved workspace-scope module after merging main
2026-11-15 15:33:52 -08:00
..