Skip to content

A remote tab's reads at a link's return: a cold mount, an idle tab, and a return nothing subscribes after #565

Closed

Description

@SSFSKIM

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.

  1. 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 says up and reads its whole launch at once, beside the live streams' resubscriptions, not after their answers.
  2. 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.
  3. A return that nothing subscribes after. When the stream ended at the loss, the peer has no rl2.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, no session.events <app> after start: from the journal line 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

Activity

  1. added
    enhancement
    status:ready-for-architect
    priority:P3
    status:in-design
    and removed
    status:ready-for-architect
    on Nov 11, 2026
  2. SSFSKIM commented on Nov 14, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-design: Designed in U9 (docs/doperpowers/specs/2026-11-12-ux-wave/U9-other-machines.md)

  3. added
    status:in-progress
    and removed
    status:in-design
    on Nov 14, 2026
  4. SSFSKIM commented on Nov 14, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Built in U9

  5. added
    status:in-review
    and removed
    status:in-progress
    on Nov 14, 2026
  6. SSFSKIM commented on Nov 14, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: U9 PR

  7. removed
    status:in-review
    on Nov 14, 2026
  8. SSFSKIM commented on Nov 14, 2026

    @SSFSKIM
    OwnerAuthor

    [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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions