Repository navigation
Description
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 notup(P5 Decision Log 28, T5;e2e/machines.spec.tsstep 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.tsrestores 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)
- 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.
- 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
- Not part of P5's acceptance; registered so it is not lost. Builds on
transcript-hold.ts, which lands with O15 M2b. - Related: desk: a machine's reconnect invisible to the reader, and an end-to-end latency budget #57 (the desk: a machine's reconnect invisible to the reader).
Activity
SSFSKIM commentedon Nov 11, 2026
[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.
UX wave U9 M3: the scenes written (A4 for a lane B and a terminal ses…
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): the pane stays through an outage under one status line, with the reader's place kept.