mirror of
https://github.com/stablyai/orca.git
synced 2026-10-27 00:02:48 +00:00
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>