Repository navigation
Description
What is left open
O15 M2b made a remote session's tab keep its transcript through the " is offline" placeholder, so a live stream's return is answered by a replay from the held position and nothing is read again (src/renderer/src/lane-b/transcript-hold.ts, src/renderer/src/transcript/source/ipc.ts, main's answer {n, mode} on remote.session in src/main/lane-b/remote-session.ts). Three cases at a link's return are outside that fix. The first two behave as before M2b; the third is new with it and narrow.
- A cold mount. A tab whose first word from main says the link is
down(restored at launch while the machine is offline, or opened while offline) holds nothing. Its pane mounts when the roster saysupand reads its whole launch at once, beside the live streams' resubscriptions, not after their answers. - A visible tab of an idle remote session. With no live stream there is no replay to wait for, so the pane reads its whole launch at each return, and that read can run beside the other sessions' resumes.
- A return that nothing subscribes after. When the stream
endedat the loss, the peer has norl2.feeds, or a checkout feed does not reopen, main says no answer after the return. A held key then stays undecided until that stream's next answer: a held key that failed during the outage is not read again by itself, and gap bars heard meanwhile are drawn late.
Why it matters
Cases 1 and 2 put a whole-launch read inside the window in which the live sessions resume (P5 O15 acceptance 6's wake case bounds each subbed at 1,000 ms after the restore; the case's tabs are live, so it does not see these reads). Case 3 can leave a failed transcript in a tab after the machine is back, until the reader retries or the session speaks.
Direction
One signal would serve all three: main says, per machine, that a return's resubscriptions are all answered (or that there were none). A cold mount and an idle tab read after it; an undecided held key decides at it.
Known trap, from a first attempt built and reverted during M2b (commit 76ccfaf, reverted by 2764407): main said an answer of mode none at the link's return whenever the session had no subscription. It was said while #readRecord was still opening the session, so the renderer's re-read overlapped the opening's own subscription. The signal has to follow the opening, not only the absence of a subscription.
A second, narrower window in the hold: a loss main says while the hold neither holds nor can acquire is consumed; a pane that attaches between main's two messages of that loss (the session's word, then the roster) is held unarmed. It needs a mount between two back-to-back IPC messages; fold its test into this work.
Acceptance
- A unit case per item, in main's order of words (the session's word before the roster's), each failing first.
- e2e, beside the wake case of
e2e/remote-latency.spec.ts: with one live remote tab and one cold or idle remote tab open, nosession.events <app> after start: from the journalline on the remote machine between the restore and the live sessions'subbed. - Case 3: a held key that failed during an outage is whole again after a return with no resubscription, without the reader's action.
Notes
- Not part of P5's acceptance; registered from O15 M2b's report (
docs/doperpowers/plans/2026-11-10-p5-o15-m2b-report.md) so it is not lost. - Related: A remote session's tab loses the reader's place in the transcript at every reconnect #563 (the scroll place lost at a reconnect of the same tab).
Activity
SSFSKIM commentedon Nov 14, 2026
[board] in-design: Designed in U9 (docs/doperpowers/specs/2026-11-12-ux-wave/U9-other-machines.md)
SSFSKIM commentedon Nov 14, 2026
[board] in-progress: Built in U9
SSFSKIM commentedon Nov 14, 2026
[board] in-review: U9 PR
SSFSKIM commentedon Nov 14, 2026
[board] done: Landed in U9, PR #650 (82a46c8): a remote session's history is read after remote.settled (or 2 s after up); an incomplete transcript is read again once.