Skip to content

A remote session's tab loses the reader's place in the transcript at every reconnect #563

Closed

Description

@SSFSKIM

What is wrong

A tab of a session that runs on another machine loses the reader's place in the transcript every time the link to that machine drops and returns (a sleep and wake, a network change, the other machine's restart). After the return the transcript opens at its end. A reader who had scrolled up to read earlier output has to find the place again.

Found by reading the mount path during P5 O15 M2b (2026-11-11); not yet observed in a run.

Why it happens

  • SessionTab (src/renderer/src/main/Pane.tsx) renders the placeholder " is offline" in place of <SessionPane> while the machine's link is not up (P5 Decision Log 28, T5; e2e/machines.spec.ts step 4 asserts the placeholder). So the pane unmounts at the loss and mounts again at the return.
  • A transcript mounts at its end. src/renderer/src/transcript/view/scroll-carry.ts restores the place only for a mount that a card's float or dock marked (markTranscriptCarry), and only when the content is unchanged (same row count and last row); otherwise the end.
  • The offline placeholder marks nothing, and after an outage the content has usually changed (the replay delivers what was missed).

O15 M2b's fix (src/renderer/src/lane-b/transcript-hold.ts) keeps the transcript's data through the placeholder, so nothing is read again; it does not keep the view's place.

Fix candidates (pick one at build time)

  1. Keep the pane mounted under the placeholder (hidden and inert) for a remote session, so nothing remounts. Check that the scroller keeps its offset while hidden and that the hidden composer cannot take focus or input.
  2. Mark the carry when the tab goes to the placeholder, and extend the restore rule for this path: when the recorded anchor row still exists, come back to it even though rows were appended. The float and dock rule (P4-B3 Decision Log 14) stays as it is unless the same extension is wanted there.

Candidate 2 is the smaller change. Candidate 1 also keeps an unsent draft and the composer's state, which needs its own check (an O15 M2b note: draft keystrokes across a loss are unverified).

Acceptance

In a tab of a remote session scrolled up so the reader is not following: stall the link until the placeholder shows, restore it, and the same first visible row is on screen once the pane is back, with rows that arrived during the outage below it. A reader who was following is at the end. One e2e scene beside machines.spec.ts step 4, plus the unit cases for the rule.

Notes

Activity

  1. SSFSKIM commented on Nov 11, 2026

    @SSFSKIM
    OwnerAuthor

    [board] ready-for-implementer: Found in O15 M2b by reading the mount path; builds on transcript-hold.ts, which lands with M2b. Parent: none (outside P5's acceptance). Blocked-by: none on the board.

  2. added
    bug
    status:ready-for-implementer
    priority:P2
    on Nov 11, 2026
  3. added
    status:in-progress
    and removed
    status:ready-for-implementer
    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): the pane stays through an outage under one status line, with the reader's place kept.

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

    bugpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions