Skip to content

UX wave U8a: one selector for a session's working folder - #601

Merged
SSFSKIM merged 6 commits into
masterfrom
ux-wave/U8a
Nov 12, 2026
Merged

SSFSKIM merged 6 commits into
masterfrom
ux-wave/U8a

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 12, 2026

Copy link
Copy Markdown
Owner

UX wave · U8, first landing (U8a): one selector for a session's working folder

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), first landing · parent pin 48619c824 · execution document docs/doperpowers/plans/2026-11-12-ux-wave-U8a-working-folder.md.

What it does

Every reader of a session's working folder now asks one selector (src/shared/sessions/working-folder.ts; the renderer's hook src/renderer/src/sessions/working-folder.ts). Eighteen readers moved; four files changed in comments only. A test that reads the source tree (test/one-working-folder.test.ts) fails when any file but the selector's module and four counted exceptions spells the folder itself. For every valid session record each reader answers what it answered before: this landing changes no behaviour a person can see on this Mac. It is step 0 of the wave: later children (Review, Source control, Files, the terminal, the live working folder of U8c) code against the selector.

The one behaviour that changes: a malformed record at the endpoint

checkoutOf in src/endpoint/targets.ts answers a remote machine and reads a record of unknown shape. It now narrows the record before it asks the selector.

  • Before: for worktree: {}, a worktree.path that is not a string, or a worktree that is a primitive other than null, it fell back to directory and returned it only when that was an absolute string. For a string worktree.path beside a directory that is not a string, it returned the worktree path when absolute, else null.
  • Now: each of those shapes answers null, so CheckoutBounds.of reads the checkout as covering and the remote feed withholds that session's scm.remote.output.
  • Who can see it: only someone who views, from another machine, a session whose stored record is malformed in one of those ways: they no longer get that session's source-control output. No valid record is affected, and readers on the session's own Mac are unchanged. It fails closed on purpose; test/endpoint/checkout-rule.test.ts gains the case (it fails on master's code).

Verification

  • Class 1a: run 43328905405 (static,unit,probes) on 7e5f2016c86693dbcb68d1e3a9651ff3829b9a6e: green.
  • Review: doperpowers:reviewer-high on 48619c824..7e5f2016c, with a lens on checkoutOf: verdict "correct", no material findings. It confirmed by reading the whole diff that every moved reader keeps its previous result for valid records (empty directories, worktree subdirectories, missing-record fallbacks, the composer's status-first precedence) and described the old and new answers for each malformed shape, as above.
  • On the build VM (Linux): pnpm typecheck 0; eslint on the 28 changed source paths 0; the selector's, the hook's and the tree test's suites 29 of 29 (and red by exactly the document's twenty files before the readers moved); the surfaces' suites 78 files, 1,653 passed, 9 skipped (macOS-only cases in files this branch does not change).

Residue

  • Electron e2e not run (on a Mac under the load rule; arranged by the wave's architect). The specs that cross the moved readers: e2e/code-tools.spec.ts, scm.spec.ts, terminal.spec.ts, panel.spec.ts, ux2-shell.spec.ts, composer.spec.ts, maws-tools.spec.ts, lane-a.spec.ts, sessions.spec.ts, remote.spec.ts, code-tools-live.spec.ts, c12-prerun.spec.ts. No scene is added.
  • Left to U8's later landing (U8c), by decision: Files' default root (tools/code/files/FilesTool.tsx), which differs from the selector on two inputs (a case-folded match of the worktree path, and a listing that lags the record), and three displays that read record.directory alone (the composer's location chip after status?.cwd, the request card, the sidebar's request preview).
  • The macOS-guarded cases of src/services/files/ ran only in class 1a's lanes that have them.

Closes #575

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

… (U8, first landing)

One milestone: the pure selector and its renderer hook, the nineteen readers
moved onto them with today's answer, and the test over src/ that keeps a file
from working the session's folder out for itself. Written against master
85e9343: the readers sorted into moved, excepted and newly found; the
recogniser's three patterns run over the tree (26 spellings in 24 files, four
of them the contract's exceptions); the verification call recorded.

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

Files' default root leaves the landing: the review found two inputs where a
search by the selector's path differs from today's choice by role (a
case-folded match on another root; a record that changed before its listing),
so equality cannot be shown and FilesTool.tsx is not touched. The endpoint's
checkoutOf still moves; the values that answer differently are stated in full
(none a valid record, each failing closed) and one is pinned by a case added
to the endpoint's suite. The three record.directory displays stay. The six
differences from the spec are recorded as ruled on 2026-11-12. Concrete Steps
opens with the merge of master, which gained the wave's documents. Expected
size: 29 files.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…suites and the tree test (red: no reader moved yet)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…int's checkout reads it too

Eighteen readers of the session's folder move onto workingFolder/useWorkingFolder,
each passing the record it already holds; sessionDirectory in the terminal goes;
five comments name the selector; the endpoint's checkoutOf narrows its value and
reads the same selector, with its one new case in checkout-rule.test.ts.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
… failures, the executor's decisions, outcomes

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

chatgpt-codex-connector Bot commented Nov 12, 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-12T23:37:39.145484Z 7e5f201 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 7e5f201 into master Nov 12, 2026
@SSFSKIM
SSFSKIM deleted the ux-wave/U8a branch November 13, 2026 00:09
SSFSKIM added a commit that referenced this pull request Nov 13, 2026
… sections corrected against their documents

- Answers recorded in the register and written where they bind: an empty New chat does not come back (U13); no End session over the link (U9); Customize's My items / Discover, icons fetched behind a switch that starts on, defaults written to the Claude Code settings, no Touch ID for a read (U11); the narrow strip shrinks to icons, the second group from the menu only, "(+N)" on the Subagents card, the card lands with the terminal route's gap until U8d (U8); the agent's tab, a new computer-use ticket (U12); comments sent together, the export folder remembered (U5).
- l5-code-02 is not built: the owner wants no button that asks the agent to commit, push or open a pull request.
- Drive work is deferred out of the wave by the owner's word (l9-browser-delivery-09, its acceptance and its check withdrawn; ticket #603).
- U3 against U3a's document (desk web as a consumer, the dismissed answer, the output action, unknown classes) and U8 against U8b's (the optional parentTaskId and the wire minor, the follower's exit, the hidden column's stored form, U8d #599); tickets #599 and #600; six contradictions ruled; who runs which review panel; U8a landed (#601), the probes' PR #602.

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 U8a: the working folder's selector, with today's behaviour (UC-4)

1 participant