Skip to content

UX wave · U8, a repair ahead of the live working folder (U8c-1): a moved transcript keeps its readers - #626

Merged
SSFSKIM merged 13 commits into
masterfrom
ux-wave/U8c
Nov 13, 2026
Merged

SSFSKIM merged 13 commits into
masterfrom
ux-wave/U8c

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Root: docs/doperpowers/specs/2026-11-12-ux-wave-design.md · child U8 (docs/doperpowers/specs/2026-11-12-ux-wave/U8-card-column-working-folder.md), contract UC-4's second landing, cut in two pull requests; this is the first, U8c-1 · parent pin 6b58dd653 · execution document docs/doperpowers/plans/2026-11-12-ux-wave-U8c-live-working-folder.md (milestone M1; M2 to M6 are U8c-2, #593).

What it does

When an agent enters or leaves a git worktree through the engine's worktree tool, the engine moves the session's transcript file, with its folder, to another project folder in its store. Three things went wrong at that moment, on master and on build f1852de3a:

  • a terminal session's Background tasks stopped changing (the job reader kept the path it first read);
  • an open transcript of one of the session's agents stopped reading (its follow kept the old path);
  • the session was told removed, and so listed as archived, for an instant.

Now the readers go on reading across the move and nothing is told removed.

  • An agent's follow moves with its session's folder. When the path the listing holds for a session changes, each follow of that session's agents takes the same relative path under the session's folder at the new project folder, and the session's agents are listed again at their new paths.
  • A session is told removed only after its transcript was looked for. The two places that forgot a session call one function instead: it notes the session as leaving, then one look reads the names in every project folder (Discovery.find, one readdir per folder per look). A transcript found elsewhere is summarised there and its follows re-pointed; one found nowhere is told removed, once, as a deleted transcript is today. No delay is part of the rule; a count per session decides whether a look's answer still applies.
  • The job reader asks where the file is at every read (src/services/lane-a/transcript-jobs.ts), and reads a file at a new path by the rule it already had for a file that changed under one path.

Nothing stored and nothing on the wire changes (no schema, table, key or command; the wire's minor is untouched). FsServiceOptions.hooks is a test-only option, undefined in the product, that holds three interleavings open for the suite.

Verification

  • The head and the merges of master. The pull request's head is ddea3e500be72e2bb8689fc226b1fa86ea2ebb8a: the branch's own head 35e86fab949977ecf7079f787e7800c4f6482438 plus two merges of master, neither with a conflict.
    • The first, of master 9df6b4493 (the one-strip landing, pull request 623), made d4ab1ff17ff50e97855ed2c1ff758fbb4dba5601. What the merge brought in (git diff --stat 35e86fab9 d4ab1ff17): 83 files changed, 5123 insertions, 1893 deletions (67 under src/renderer/src, 2 under src/shared/ipc, 1 under src/main/layout, 4 scene files under e2e/, 3 under test/layout, the rest documents). The branch's own change is 8 files. The three tests of the session that keeps master: (a) the two share a file, e2e/sessions.spec.ts (different scenes, merged by git): fails; (b) the incoming change touches e2e/: fails; (c) no directory two levels under src/ holds changes from both: holds. So every run below was made again on d4ab1ff17; the runs on 35e86fab9 are the first pass.
    • The second, of master 4d214b892 (the wave's spec batches 7 and 8, pull request 625), made the head. What it brought in (git diff --stat d4ab1ff17 ddea3e500): 16 files changed, 199 insertions, 149 deletions, all under docs/doperpowers/specs and the evidence register. The same three tests: (a) the two share no file: holds; (b) the incoming change touches no scene, test-support, build or config file: holds; (c) it touches nothing under src/: holds. So the runs on d4ab1ff17 stand for the head: the two trees differ in those 16 documents only.
  • Class 1a: run 43416525585 (static,unit,probes) on the head ddea3e500: green (static, static-local, unit 1/4 to 4/4, probes). An earlier attempt on d4ab1ff17, run 43412123856, was cancelled: its job unit 4/4 hung in the checkout's fetch on a pool runner until the job's time limit and ran no test, while the run's other jobs were green. First pass: run 43402496702 on 35e86fab9, green.
  • macOS-only unit cases: run 43412144302 (unit:darwin --affected) on d4ab1ff17: green, 22 files, 499 tests passed and 9 skipped; src/engine-host/fs/move.test.ts ran its 15 cases. First pass: run 43401607453 on 35e86fab9, green, 22 files, 499 tests passed and 9 skipped (the skips are in src/services/files/service.test.ts); src/engine-host/fs/move.test.ts ran its 15 cases there, none skipped. src/engine-host/fs/move.test.ts enters that lane by its guarded case (f): a move made inside the watcher's settle time right after the service starts is still found.
  • Electron e2e, on the Mac lane: run 43412132457 (e2e:default) on d4ab1ff17: green; the report counts 516 scenes: 225 passed, none failed, none flaky, 291 skipped. The new scene, e2e/sessions.spec.ts "a session whose transcript the engine moves stays listed and goes on reading" (invented rows in the scratch store; no engine), is among those that passed.
  • Review: doperpowers:reviewer-high on c0e7b2ae8..35e86fab9: verdict "correct", no material findings. The milestone's task review ran before it; its fixes are 4aa10721b (a scan waits for every look its pass started; a file found and then gone is decided; cases k to o).
  • On the build VM (Linux): failing first at b2fffe90f: 12 of the new cases red on master's code (c, d, e, g, h, i, the three job-reader cases, the three find cases); green at 2bd63a895, the move suite five runs in a row. At 4aa10721b: the move suite 14 passed and 1 skipped (the macOS case), three runs in a row; the touched folders and the test folders that import them 1,051 passed, 4 skipped; typecheck and eslint on the changed files exit 0; the whole pnpm test once: 6 files failed, exactly that VM's known set.

Found while building

  • Case (d) (the agents listed at their new paths) is a race on Linux master: red in 2 of 7 runs there, green on the branch every run. The document's Surprises & Discoveries has it.
  • Decision Log 6 and decision 7: where a file event reports the change, a listing's path changes only when a summary of the new path has succeeded; a scan sets it from the files its listing read, as master does.

Residue

Closes #621

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)

…s second landing)

Six milestones: a moved transcript keeps its readers; the record says where the agent is; what may be read there; the window follows; a shell row keeps its folder; the scenes, the record and the acceptance run. Written against master 89e25cb and the branches of U8b, U3a, U9, U4a, U5a, U13a, U7 and U1a, with one list of the statements to check again once they are on master.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…-exact and whole-script parse) before the document's revision

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…ersarial review; two landings

U8c-1 (M1, buildable from master): a moved transcript keeps its readers; a removal is told only after the transcript was looked for under every project folder, with a generation, in place of the fixed delay.
U8c-2 (M2 to M6): the change is additive on disk and on the wire (directory and worktree keep build F's meaning and movement; the launch folder and the agent's folder are two optional facts read through the selector); a move is judged by the common git directory; uploads and Source control's reads pass one admission, and Source control performs no act away from the launch folder; the sidebar's worktree mark and hover card follow the agent; a live shell row names no folder while the session reads moved; a terminal session on another machine is a stated exception; the measured bound runs on this build's input.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
… and the store's test hook

The tests that rename a real transcript and its session folder under the real
readers (src/engine-host/fs/move.test.ts), Discovery.find's cases (no find yet)
and TranscriptJobs' cases after a rename; FsServiceOptions.hooks awaits a
scan's listing per project folder and each summary, and changes nothing when
undefined. No fix yet.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
The engine host tells a session removed only after a look under every project
folder found its transcript nowhere, under an unchanged generation (raised at
every transcript event naming the session and every summary listing it); an
event's and a scan's removal share it, and a scan answers once its look has
decided. When the listing's path for a session changes, its agents' follows
are re-based under the session's folder at the new place and poked, and an
agent listing main holds is walked again. The terminal session's job reader
asks where the transcript is at every read. One e2e scene in sessions.spec.ts,
written and not run.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…e's unused import

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…ed, a file found and gone is decided, first listings and in-flight agent walks re-point

A scan's answer waits for the sessions its own summaries found missing and for
looks that only noted a session again (a settlement per session, carried across
re-notes). A look whose found file is gone by its read decides as for a file
found nowhere. A session's first listing re-points its follows, an agent
listing asked for or in flight is walked again at the new folder, and an
agent's follow starts at its path re-based on the current listing. Cases (k)
to (o), and (g) and (i) now assert that their look ran; (i) also returns the
file to the path it left.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…outcome in the document

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…events, as the architect ruled

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…nto ux-wave/U8c

A clean merge: U13a's change and this branch's share no file.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
… ux-wave/U8c before its pull request

Master moved by one docs landing since this branch's runs were launched on d4ab1ff. The incoming change is 16 files
under docs/doperpowers/specs and the evidence register; it shares no file with this branch's own change, touches no
scene, test support, build or config file, and nothing under src/. No conflict.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T11:34:15.324351Z ddea3e5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit b865c90 into master Nov 13, 2026
@SSFSKIM
SSFSKIM deleted the ux-wave/U8c branch November 13, 2026 11:33
SSFSKIM added a commit that referenced this pull request Nov 13, 2026
…ave's spec batches 7 and 8, #625) into ux-wave/U1a before its pull request

This branch already held the moved-transcript landing (d4ab1ff), so what master brings in is the docs landing alone:
16 files under docs/doperpowers/specs and the evidence register. It shares no file with this branch's own change, touches
no scene, test support, build or config file, and nothing under src/. No conflict. WIRE_MINOR stays 37 (master 36).

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant