mirror of
https://github.com/stablyai/orca.git
synced 2026-10-24 08:03:58 +00:00
* fix(terminal): rank cold-park recency by activation order, not random UUID The keep-warm exemption (#8262) broke equal hiddenSinceMs with id.localeCompare over UUIDv4 tab ids, so which tab stays warm was a coin flip. Ties are routine, not exotic: use-terminal-tab-cold-parking takes one Date.now() per effect pass (#7214) and stamps every tab first seen hidden in that pass with it, so switching away from a worktree ties all of them. The tab that wins the flip is skipped by selectIdsBeyondHotRetain and never parks. Ranks by an explicit activation sequence recorded on the hidden->visible edge. Unit test covers the tie; red before, green after. Does NOT fix terminal-hidden-view-parking.spec.ts:467, which still fails with the same 'did not park' error on CI. Shipping this on its own merit. Co-authored-by: Orca <help@stably.ai> * fix(terminal): preserve focused tab across parking ties --------- Co-authored-by: Orca <help@stably.ai> Co-authored-by: E2E Test <e2e@test.local>