Files
orca/src/renderer
NeilandOrca 275869f310 fix(store): purge all per-worktree maps on project removal via purgeWorktreeTerminalState (#5815)
removeProject hand-deleted only a handful of per-worktree maps and never
called the canonical purgeWorktreeTerminalState/buildWorktreePurgeState,
so ~30 worktree-scoped maps (unified tabs, groups, layout, git status,
browser, everActivatedWorktreeIds, …) retained an entry per worktree of
every removed repo with no reaper to recover them.

Route removeProject through purgeWorktreeTerminalState before its
repo-scoped set() (which still handles repo-level keys). The purge is a
pure state reducer with no PTY side effects.

Regression test fails before the fix (entries survive) and passes after.

Co-authored-by: Orca <help@stably.ai>
2026-06-19 12:34:37 -07:00
..
2026-03-17 01:40:24 -07:00
2026-05-30 13:09:17 -07:00