{"content":"fix(studio-live-stage): keep finished runs from re-capturing the shared stage (commit 1d9e63d19, branch fix/studio-live-stage-session-isolation)\n\nRoot cause of the 2026-11-20 cross-session bleed (owner report: session 2's last reply — an APEC search summary — surfaced on the Live Stage in session 1 right as session 1's turn stopped). Forensics: transcript + sqlite attribution were clean, so the leak was purely the delivery layer. All Studio sessions of one Twin patch ONE persistent stage page (botKey adoption), and nothing stopped a FINISHED session's run from re-delivering its resting screen: the no-arg refreshChiefOfStaffHud() (fired after every studio turn completion, chat persistence, and long-term-board pushes) re-enriched finished runs whose bot-merged HUD signature had changed, and a finished run with rail companions kept its 10s refresh timer forever. Ordering made B's old screen land right after A's completion patch and win the page.\n\nFix (src/main/services/studioLiveStageService.ts): (1) refreshChiefOfStaffHud skips finished runs — resting screens freeze; HUD refreshes when the next turn revives the run; (2) syncCompanionsTimer stops on finish (explicit calls in observeComplete/observeError); (3) new revealedSessionId tracking (showSession reveal incl. boot restore, or human-origin messages) — attemptPatchDelivery holds patches from non-revealed sessions so a live background session can no longer overwrite the scene the owner is watching; held state stays current in memory + disk snapshot, and showSession resets the delivered-revision watermark for instant delivery on reveal; observeError activates the stage tab only when the errored session owns the page.\n\nTests: 3 regression tests added in tests/studioLiveStageService.test.mjs. Verified in the worktree: compile:electron green, check:dsh-deps + kernel-patches --check green (17 fingerprints), test:studio-live-stage chain 173/173 pass + assistantActivityIndicator 2/2, 0 failures.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}