Skip to content

UX wave U8c-1: a session's transcript that the engine moves keeps its readers #621

Closed

Description

@SSFSKIM

What is wrong (today's build, and the build before the UX wave)

When an agent enters or leaves a worktree through the engine's worktree tool, the engine moves the session's transcript and the session's folder to another project folder under its projects directory. Three readers lose the session at that moment:

  1. A terminal session's Background tasks stop changing. src/services/lane-a/transcript-jobs.ts asks where the transcript is once and keeps reading the old path.
  2. An open transcript of one of the session's agents stops reading. src/engine-host/fs/service.ts re-points only the session's own follow (locateFollows, relocateFollows skip a follow that has an agent id), and the agents are still listed at their old paths.
  3. The session is told removed and is listed as archived for an instant, by the file event of the old path or by a scan whose listing spans the rename, before it is found again.

Found by reading the code while the execution document for the live working folder was written; none was reproduced on a build yet. The first test of this ticket is that reproduction.

What done looks like

  • A real transcript file renamed between two project folders, with its session folder, is read on by the session's follow, the quiet follow of its older pages, a follow of one of its agents and a terminal session's job reader; the session's agents are listed at their new paths.
  • No removal of the session is told for a move: after a plain move, when a scan's listing spans the rename, when the read of the new path is held past the watcher's settle time, and when a look for the file is overtaken by a read that lists it.
  • A transcript that is deleted is still told removed, once, alone and among many deleted together.
  • The same cases pass on macOS (the gate's Mac lane, unit:darwin).
  • Tests first, failing on master where the document says so; nothing of the working folder itself is built here.

Plan

Execution document docs/doperpowers/plans/2026-11-12-ux-wave-U8c-live-working-folder.md, milestone M1 (its section "The two landings" says which parts bind this landing). Branch ux-wave/U8c. It consumes nothing unbuilt and lands alone, before the second landing (#593).

Review of the branch: one frontier reviewer. Class 1a, the Mac lane and the scene's run are the architect's.

Shares files with

src/engine-host/fs/service.ts and its suite with U8b's sixth milestone (#580): this lands first, U8b merges master and keeps both.

Activity

  1. added
    bug
    status:ready-for-architect
    priority:P2
    on Nov 13, 2026
  2. added
    status:in-design
    and removed
    status:ready-for-architect
    on Nov 13, 2026
  3. SSFSKIM commented on Nov 13, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-design: The execution document's revision 2 (after the adversarial review and the architect's rulings) is on ux-wave/U8c

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

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: M1 of the U8c document, dispatched to a plan executor on a build VM; the branch review is one frontier reviewer

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

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR 626 open: head ddea3e5 (the branch plus two merges of master); class 1a 43416525585, unit:darwin 43412144302, e2e:default 43412132457 green; reviewer-high correct

  8. removed
    status:in-review
    on Nov 13, 2026
  9. SSFSKIM commented on Nov 13, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed as PR 626 on master b865c90 (tree identical to ddea3e5)

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