Repository navigation
Conversation
aicc_planning#513, step 1 (evidence only; no app code). A red D1 restarts
the Playwright worker and closeIsolatedApp deletes the data dir with its
debug/app.log, so the run that failed kept nothing to read.
- Part one's afterAll now writes, before closeIsolatedApp:
- $SNAP_E2E_OUT/part1-main-lines.json: main's console lines on the launch
path, each at the test's Date.now();
- $SNAP_E2E_OUT/part1-app.log: the app log's launch-path records, at
main's own times.
- D1 records readings.snapButtonAt (Date.now()), on the stand-in's clock.
- tests/e2e/helpers/launch-evidence.ts filters by prefix and scrubs folders,
the account name and anything token-shaped (the artifact is public);
tests/unit/e2e-launch-evidence.test.ts plants each shape and proves none
survives.
TAB_MS and every timeout are unchanged (rule 27). ci.yml already uploads
the folder with if: always().
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… capture The two new test files move the tracked and scanned file counts and the manifest head; no matched path and no predicate hit changed (pathDigest 968553bf, ledger complete in the candidate phase). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scrubEvidence read the first 8000 characters of a line and said the part past that was "far past the part kept". It is not: each credential becomes "[redacted]", so an 8000 character line can end up under 2000 with its tail intact, and a credential the cut fell in left a piece shorter than 32 characters, which no shape rule takes. A probe with about 300 unlabelled base64 keys ended in 24 characters of a live-shaped key, and nothing in the output said the line had been cut. When a line is longer than SCRUB_INPUT_MAX, drop the last run of token characters of what is read before any rule runs, and end the line with "...[cut]" whenever either cut (that one, or the one at EVIDENCE_LINE_MAX) was made. The comment now says what is true. The unit cases plant 44 character values so that the cut falls 1, 9, 17, 24 and 31 characters inside one, and require that no 8 character piece of any planted value survives and that the line ends with the cut mark; they are red without the drop and without the mark. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d user names Probes of the evidence scrub found four things that survive it. None has a source in the kept prefixes on the CI runner, which runs as runneradmin with no signed-in account, so this is hardening, not a leak: - a bare auth=value or key=value pair (neither word was in the key alternation); a bare auth or key now counts, alone or as the last part of a key (x-auth, ssh_key), and never inside a word (author, keyboard, monkey); - an e-mail address; one is now taken, tried only where its first word begins and with no slash in it, so a scoped package's path (node_modules\@types\node.js) is not mistaken for one; - the part after the space in another user's folder (C:\Users\Jane Doe\x became C:\Users\<user> Doe\x); the words of a name are now taken whole when a separator follows them, and a following word of prose is not. URL-encoded paths still survive; that was not asked for and has no source on the launch path either. Each new case is red against the rule it covers put back as it was. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…at the submit click
The helper header promised "the lines main writes between a tab's spawn
request and its launch line (pty-handlers.ts pty:spawn and its holds ...)",
which reads as a per-hold breakdown that step 2 will not get. Most holds
write none on the normal path: awaitScriptFolders and awaitClaudeLaunchWalk are silent;
hardenSpawnFoldersAhead ('[spawn] ...') and the start lookup
('[start] ...') write only when they ran out their bound; the launch
line is an unlogged 300 ms timer after '[pty-manager] Launching Claude
via shell'.
Both comments (and the spec's own header) now say it: the artifact gives
the holds' total, from the submit click to '[pty] Spawning PTY for
session', and then the tab's own PowerShell, from '[pty-manager]
Launching Claude via shell' (plus 300 ms) to launches[].at. It names a
hold only when that hold ran out its bound.
D1 also records readings.submitAt right after the click on the session
dialog's submit, on the same Date.now() clock as the lines. That is the
start anchor of the whole path; readings.snapButtonAt is set only once
the Snap button shows, which depends on the tab itself.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ritten Part one's afterAll wrote readings.json and the launch evidence, then closed the app. Any throw in the writes (a full disk on mkdirSync or the readings.json write, or os.homedir() inside localEvidenceScrub) skipped closeIsolatedApp and left the tab's shell and the data dir behind. D1's own error would still have been reported, since Playwright reports an afterAll error separately. The writes now sit in a try with closeIsolatedApp and the reset of ctx in its finally. localEvidenceScrub is called inside writePart1LaunchEvidence's own guard, so its "never throws" is literally true: when the scrub cannot be made nothing is written, never a line unscrubbed, and the job's log says so without the error's text (it may name a folder). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ly when D1 got far enough The evidence's end anchor, 'the tab's own PowerShell', is the stand-in's `at` in launches.jsonl. Only D1's finally set readings.launches, and that finally is reached only after the Snap button shows. D1's budget (TAB_MS + 10 s) is shared by four waits that can each take TAB_MS: the dialog showing, the dialog closing, the Snap button, and the launch poll. On a slow runner the budget can run out before the try is entered, or the stand-in can start after the poll gave up. Then readings.json carries no launches, and closeIsolatedApp deletes launches.jsonl: the artifact could not say whether the stand-in ever started, or when. afterAll now sets readings.launchesAtClose (the stand-in's records as the app closes) and readings.terminalAtClose (the tab's text then, bounded to 5 s so a page that does not answer cannot stop the close) before readings.json is written. Both have the shape of what readings.launches and readings.terminalAtStart already hold. writePart1LaunchEvidence's comment and the spec's header name them as the anchor that survives every way D1 can end, and the clock note in part1-main-lines.json names them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…old's work
hardenSpawnFoldersAhead holds a start while it makes ~/.claude and the
canvas plugin's tree owner-only. Two kinds of line from that work were not
on the launch path's prefix list:
- '[canvas-plugin]': ensureCanvasPluginOffThread catches its own failure
('could not materialize ...', and 'could not restrict permissions on
<dir>' when an icacls run failed or timed out) and returns null, so
foldersAhead's own '[spawn]' catch never fires. The dropped line was the
only record of what that hold's work met.
- '[acl]': the two notes account-profiles.ts writes from the same
off-thread hardening (no user SID; the fallback that could not prove its
grant).
Step 2 has to name the hold that used the time, and a hold that runs long
without hitting its overall bound writes nothing else. Neither line carries
a secret (the first names a folder, which the scrub already puts in place;
the second is fixed words), and both are written only on a failure.
The unit test's prefix loop lists both, a case keeps a planted line of each
with its folder put in place, and near-miss prefixes stay out. Each is red
with either prefix taken out of the list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d that a hold also writes on a failure Two comments overstated what the artifact gives: - 'readings.submitAt to [pty] Spawning PTY for session' was called the holds' total. The span also holds the renderer's way to pty:spawn (the dialog closing, the tab mounting, the account gate in TerminalView, the IPC) and main's awaits before the holds in the pty:spawn handler. It is now called the way to the spawn: the renderer's request, then main's work before the spawn and the holds. The artifact does not split it between those and the holds that wrote nothing. - hardenSpawnFoldersAhead was said to write '[spawn] ...' only when its holds ran out their bound. foldersAhead also writes one when a folder's hardening or the canvas plugin's materialize throws (spawn-folders-ahead.ts). The comments now say 'ran out their bound or failed'. The helper's header, the spec's header and writePart1LaunchEvidence's comment are corrected the same way. Comments only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rases, bare names, URL paths, cut e-mails
A probe of the evidence scrub found shapes that survive it. None has a
source in the kept prefixes on the CI runner (runneradmin, no signed-in
account), so this is hardening, not a leak. Each is fixed at its cause:
- a quoted value with spaces ("password": "correct horse battery staple"
kept 'horse battery staple'): a value that opens with a quote now goes to
its closing quote, in plain and in escaped JSON, single or double quotes;
- a second cookie (Cookie: session=c1; other=c2secretvalue kept the second
pair): the generic rule stops at ';'. A cookie's value now goes to the end
of the line or to its quote;
- passphrase= (and --passphrase): added to the key words and to the flag
rule;
- auth or key with no separator before it (oauth=, sshkey=): auth at the end
of any name, and key at the end of any name but the few English words that
end in it (monkey, turkey, hockey, donkey, jockey, whiskey, lackey,
hickey, mickey), now count. Anything else ending in key is redacted, the
safer way round; author and keyboard still are not keys;
- a URL-encoded home path (C:%5CUsers%5Crunneradmin): the account-name
rule's lookbehind failed after '%5C' because the C is alphanumeric, and
the user-folder rules knew only raw separators. The name is now a whole
word after %5C or %2F, and the Windows and POSIX user-folder rules take
%5C, %2F and %3A as separators too;
- the local part of an e-mail address that straddles the 8000-character
input cut (jane.doe@exa kept 'jane.doe@'): the cut drops the last run of
token characters, and neither '@' nor the local part's characters were
among them. They are now.
The new key rules are built from one KEY_NAME so the quoted, cookie and
general rules cannot drift apart. A bounded-time case covers the new rules
on long inputs.
Each new case is red against its rule put back as it was (twelve mutants:
the quoted rule, the cookie rule, passphrase as a key and as a flag, auth
and key at the end of a name, the English-word exceptions, the account-name
lookbehind, the Windows separators and colon, the POSIX separators, and the
cut's token characters); the files restored byte for byte, sha-checked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wait from the check's start The Snap e2e's first Claude Code tab waited 5.4 to 5.5 s from its ask to its spawn (runs 47213031983 and 47213083589). That was the scripts folders' hold running out its 5 s bound, counted from the tab's own ask: the start's owner-only check of the scripts folders is one Windows PowerShell call that takes 8.8 to 13.6 s on a runner's first app, and the tab started without the resume list all the same. The other holds then ran one after another. - script-folders.ts: one deadline for the run, counted from the check's start (scriptFoldersWaitLeft). A launch asked for once it has passed is not held, and no launch waits longer than before. - pty-handlers.ts: the holds run side by side, so a launch waits for the longest, not the sum. The start's look for Claude Code and the walk of PATH stay one after the other, and the session folders' owner-only step and the walk are still asked again once every hold is over. A launch with nothing to hold goes on in the same tick, as before (the one-at-a-time rule relies on that). A sign-in tab is not held for the scripts, since its line runs none. - One [spawn] line per hold of 250 ms or more (its name, its ms, and whether it ran out its bound), and one [pty] line when the launch line is written into the shell. Both carry the session id only. The scripts hold guards nothing: a launch takes a script only through the launch-time checks, which fail closed. The spawn's folders are still made owner-only before it starts. Refs aicc_planning#513 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s at the run's deadline
- pty-spawn-holds-side-by-side.test.ts (new): drives the real pty:spawn
handler over the real script-folders module on fake timers. It covers:
- the evidence case: a check that never answers, so a tab asked 3 s in
starts 2 s later, and one asked past the deadline is not held;
- five 5 s + 8 s pairs of holds that spawn at 8 s, not 13 s;
- a sign-in tab, and a check that answers in its usual time;
- the 250 ms log threshold.
- script-folders.test.ts: the run's deadline and scriptFoldersWaitLeft.
- pty-claude-picker-plain.test.ts: the launch-line log, with the resume
list's script ready and not ready, and no path in the line.
All 15 new tests are red on the old source.
Refs aicc_planning#513
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs aicc_planning#513 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ches The test drives Claude Code launches only, so it needs none of pty-manager's Codex calls, and without them it names no Codex (WP1 predicate P13). Refs aicc_planning#513 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ds fix The new test file and the context fragment move the tracked, scanned and excluded file counts and the manifest head. No matched path and no predicate hit changed (pathDigest 968553bf, ledger complete in the candidate phase). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…holds - account-profiles-owner-only-wiring.test.ts: the steps are now one of the holds a launch awaits together before the closed-or-superseded check. The test reads that shape (pushed as a hold, all holds awaited, then the check) instead of the old serial await. Mutation that turns it red: hold for the steps without awaiting them. - pty-spawn-holds-side-by-side.test.ts: two more pairs where the steps are the longer hold (8 s), so a launch that names no account is shown to wait for them in full. Refs aicc_planning#513 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Seven pairs and twelve tests in the side-by-side file, the wiring test's new reading, and the steps mutant. Refs aicc_planning#513 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rds that claim no more Review round on aicc_planning#513 step 2 (its logging findings). - A hold is said when it took 1 s or more (SPAWN_HOLD_LOG_MS, was 250 ms), or when what it waited for was still pending as its wait ended, however short. A warm start's holds (the scripts check takes 1.0 to 1.6 s from its start) write none. - The words are "no longer pending" and "still pending when the wait ended". "done" was wrong for a folders hold whose work failed and for the start's look past its own deadline; "ran out its bound" was wrong for a walk that ended without an answer. - The per-launch "[pty] Launch line written into the shell" line is gone. Whether the resume list's script was ready rides the "[pty-manager] Launching Claude via shell" line every local launch already writes, and only for a launch that asked for the list. Nothing is logged inside the launch-line timer's try any more, so a logger fault cannot drop the buffered keystrokes after a good write. pty-manager.ts stays under its line cap (7475 of 7476). Tests: pty-spawn-holds-side-by-side (the 1 s rule, a short hold still pending, the words) and pty-claude-picker-plain (3: the script's state in the launch's line, only for a resume-list launch, in no line of its own). Each is red on the previous commit's source. Mutants each turn its test red: log every hold, log only by time, a 250 ms threshold, the old words, the state dropped, said for every launch, said in a line of its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r ask Review round on aicc_planning#513 step 2 (its MAJOR on the folders hold). With the holds side by side, a launch held for its session folders whose work did not answer waited twice: its hold ended at SPAWN_FOLDERS_WAIT_MS (10 s) with the work still wanted, and the ask again after the holds joined the same icacls runs with a fresh 10 s. The spawn ran at 20 s with two "ran out" lines; on the base it ran at 10 s. Now the launch has one bound for its folders, SPAWN_FOLDERS_WAIT_MS across every wait it makes for them. hardenSpawnFoldersAhead takes the time left and answers whether its work ended in time. A launch whose wait ran out is not asked again. One whose folders were done in time and came to want doing again while it waited for a longer hold waits at most what is left. That is counted as time spent waiting for the folders, not from the first wait's start: before #513 the folders' one wait came after every other hold, so folders wanted by then were still done off the main thread, and they still are. A launch held only by other holds gets the whole bound on the ask again, as before. Tests: pty-spawn-holds-side-by-side (+3, its folders stand-in now shaped as the real module: one work for every caller, each wait bounded by what it is given): work that never answers spawns at 10 s with one call and one line (20 s and two calls on the previous commit, 10 s on the base); done in time then wanted again spawns at 15 s, not 18 s; held only by another hold keeps the whole bound (kept behaviour, proven by mutants). spawn-folders-off-main-thread (+1, 1 changed): a wait waits what it is given and answers whether the work ended in time. pty-spawn-waits-for-spawn-folders: its stand-in answers as the real module does. Mutants each turn the matching tests red: ask again whenever wanted, with the whole bound, after a wait that ran out, from the launch's ask, or only for launches held for the folders; the module ignoring the time given, or answering wrongly at its bound or when done. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… prompt Review round on aicc_planning#513 step 2: the D1 red's main share is the tab's own cold Windows PowerShell start, which the holds fix does not touch, and the evidence could not split it. D1 now keeps readings.promptSeenAt, the first time its poll for the stand-in saw the shell's prompt, on the clock of readings.submitAt. A red D1 then splits into main's part (to the spawn), the shell's start (to its prompt) and the stand-in's (to its at). Only the time is kept, never the text, which names the data dir. It is absent when no read saw a prompt (none came within D1's budget, or the stand-in cleared the screen first). A read that fails is let go; the poll still waits for the stand-in. The prompt test is showsPowerShellPrompt in helpers/launch-evidence.ts (no Playwright import), and the comments there and in the spec now say what the step-2 hold lines tell. Tests: e2e-launch-evidence (+2) for the banner alone, an empty screen and the stand-in's screen against a prompt with the launch line after it or its location wrapped. Red without the helper, and under two mutants (match PS anywhere; miss a wrapped location). The spec and helper also pass a strict tsc run; the Snap e2e itself only runs on CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and what stays open Review round on aicc_planning#513 step 2 (its note and comment findings). - The note now says it plainly. This step removes about 2 to 3 s of a first tab's wait (the tab, asked about 2.9 s in, waits about 2.4 to 2.7 s for the scripts check, not 5 s). It does not remove the D1 red. In the failing run 47192226861 the spawn happened and the tab's own Windows PowerShell did not reach its prompt in the rest of the 30 s, the runner's cold start that no hold covers. A run like it is expected to stay red, is not a regression of this fix, and is not re-run. #513 stays open on it, as an owner decision (a warm-up step changes what D1 measures; TAB_MS stays). - The run-wide scripts deadline is a trade, stated in the note and in script-folders.ts. A check that ends 5 s or more after it began, but within 5 s of a tab's ask, was waited for before; now that tab starts without its status line (for the session's life) and without the resume list. No check measured so far ended in that window (the b20 first app's ended about 0.8 s outside it). Raised as an owner choice; the note's "the wait bought nothing" and "every such tab waited 5 s" are corrected to what holds. - The note records the folders' one bound, the quieter log lines and the prompt time D1 now keeps, with this round's tests and mutants. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…again Round 3 on aicc_planning#513 step 2. The run-wide deadline for the scripts folders' wait is dropped, decided by the orchestrator with the owner away, under the owner's standing rules (decide, no option rounds; the status line is a top priority). Under that deadline a tab asked late into a slow check (one that ended 5 s or more after it began, but within 5 s of the tab's ask) started without the app's status line for the session's whole life, and without the resume list. That costs more than the up to about 2.5 s of wait it saved on a slow cold start, and the holds now run side by side, so they no longer add up. - script-folders.ts: as on 591eb8f. awaitScriptFolders waits at most its bound from its own call; scriptFoldersWaitLeft and the check's start time are gone. SCRIPT_FOLDERS_LAUNCH_WAIT_MS now says why the bound counts from the ask. - pty-handlers.ts: holdForScripts holds while the check runs, as before, and the hold stays one of the side-by-side holds. A sign-in tab is still not held for it: its line (localSignInLine) passes no --settings and no resume list, so it runs none of the scripts. The Codex hook folders' comment now says what holds: when the scripts wait ran out its bound first, the hook folders' wait covers what is left of the check and the deploys too. - script-folders.test.ts: as on the base; its three deadline tests go with the deadline. Refs aicc_planning#513 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he other holds Round 3 on aicc_planning#513 step 2, with the run's deadline dropped. - The evidence case: a check that never answers, the tab asked 3 s in, beside a 1.3 s folders hold and a 0.4 s look for Claude Code. It spawns 5 s after its ask, not 5.4 s. Red on round 2's source (d58277d, the run's deadline: 2 s), under a deadline from the check's start put back into the fixed code (2 s), and with the holds one after another (5.4 s). - New: a check that ends 6 s after it began, with the tab asked 3 s in, is waited for, and at the spawn the resume list's script may be run (checkDeployedScript, as pty-manager reads it). Red on the same two deadlines and with the scripts hold taken out. Its check at the spawn is red on its own under the deadline (the script not yet deployed), with the test's earlier checks taken out. - The run-deadline cases go. The short still-pending line is read from a 500 ms look for Claude Code, not the scripts wait's last 500 ms; red when a hold is said only by its time. - The pairs' comment says what the one-after-another mutant shows: a pair whose second hold in the old order starts its clock at its own call spawns at 13 s; the others still spawn at 8 s and are caught by their lines. Each mutant was applied in place, the tests run, and the files restored byte for byte and sha256-checked. Refs aicc_planning#513 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…aving and open decision Round 3 on aicc_planning#513 step 2. - Fix and the decisions: the run-wide scripts deadline and its trade are gone, decided by the orchestrator for the status line, with the reason. Only the runner's cold Windows PowerShell share of D1 stays open, for the owner. - The saving is now stated as expected, not measured: up to about 0.4 s for the evidence's first tab (the part of its 0.4 to 0.5 s after the scripts wait that was other holds), more where several holds each take long. The next Snap e2e dispatch of this head measures it, through its [spawn] lines and readings.promptSeenAt. - Who meets a run-out scripts wait now names the Codex case: its hook folders' wait usually brings the scripts back while the Hooks gateway listens; without the gateway the Codex resume list is lost too. - The known issue "A tab restored at start opened without the status line or the resume list" (app-knowledge.ts) needs nothing: a session that starts during the check again waits up to 5 seconds from its own start, as the entry says. - The sign-in tab's exemption is shown from the code (no --settings, no resume list, no picker script), and the tests and mutants are this round's. Refs aicc_planning#513 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rst-tab holds fix Round 3 adds no file and matches no new path: the manifest head moves, and the counts, pathDigest 968553bf and predicate digest stay. The ledger is complete in the candidate phase. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…515) Save sessions on the update dialog now marks the saved set as saved for an update, with the version that saved it (SessionState.savedForUpdate). The next start of a NEWER version restores that set at the resume prompt's turn in the boot chain with no prompt (RestoreAfterUpdate), so the release notes and every page before it still come first. Each restored tab carries on on its own account whatever Resuming sessions says (shouldPredetermineRestoredAccount afterUpdate), so no account picker opens; a tab that cannot carry on says why in the tab, as a restore in the default mode does. The mark is used once: the offer never carries it, so the restore's own save and any write while the offer is up leave it out. A quit's Save, a crash's autosave, the same version starting again, an older version and a mark that does not read all keep today's resume prompt. The autosave is cancelled before the marked save, and a failed update writes the set again without it. Settings, Accounts help text under Resuming sessions now says the choice applies when the app reopens your sessions, and that after an update with Save sessions each session carries on as it was; the agent-sessions switch's text no longer says to resume within five minutes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…abs (#514) The close and update dialogs now say, in plain lines with counts, what Save sessions does to each kind of tab open, then what Close sessions does. A kind with none open has no line. Update: how many keep running through the update and are back in their tabs straight away, SSH sessions that keep running on their hosts and reconnect, the rest that restart and pick up their conversations, terminals that start again, sign-in or install tabs that end. Quit: held sessions end; Claude Code and Codex tabs pick up their conversations at the next launch; SSH Persistent sessions keep running on their hosts. Close sessions says it leaves SSH Persistent sessions running on their hosts, which it always has (the old text said they were gone). How many an update keeps is main's answer, by the rule the install lets go of held sessions by: one read-only query, update:sessionsKept (typed channel, preload, update-handlers.ts). The renderer sends its open local tab ids in two lists; main reads them through updateKeepTabsFrom and answers two counts, no ids and no paths. Off Windows it answers none without asking the helper. The session helper's releaseForUpdate rule moves into updateKeeps, shared by the release and the new tabsKeptThroughUpdate, which lets go of nothing and counts an agent session only where its provider's take-over is wired. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The mark is written only by Save sessions on the update dialog, after the autosave is cancelled, and written again without it when the update fails; a start reopens the set at once only for a newer version with a mark that reads, and the offer never carries the mark on; RestoreAfterUpdate restores once under StrictMode; the restore after an update skips the account choice in 'ask' while a normal relaunch still asks; App wires the at-once restore at the resume prompt's turn with afterUpdate true and the prompt's Resume with false. The Settings and agent-switch copy pins follow the new text. Each case goes red under its mutant (13 run, all red, files restored byte for byte and sha-checked). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#514) Each line and count of both dialogs, singular and plural, with a kind with none open left out and the quit wording; the Close sessions line with and without SSH Persistent sessions; the dialog asks main once, about local saved tabs by id only, shows nothing until it answers, and reads a malformed or failed answer as nothing kept. The query: registered on its typed channel, Windows only, the question parsed (ids only, each once), counts back; the preload sends only the two lists. The session helper's count names the tabs the update would keep by its own rule, takes each tab asked about as saved, leaves a partner terminal out, counts an agent session only with its provider's take-over wired, is none when quitting, and lets go of nothing. The dialog's other tests pass tabs instead of a count. Each case goes red under its mutant (19 run, all red, files restored byte for byte and sha-checked). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e after an update (#514, #515) The Feature Guide reference (and what Ask Conductor knows) now describes what the close and update dialogs say, and that after an update with Save sessions the new version reopens the tabs by itself, with no resume prompt and no account picker, each session on its own account; a quit, a crash or the same version starting again still asks. The accounts entry says the same for Resuming sessions. The update tip, the Machines card and the README no longer tell the user to resume within five minutes: the tabs reopen by themselves once the pages the new version opens with are closed, still within five minutes. The hook-event known issue no longer names a Resume press. The tip and card pins follow the new text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ack as it is (#514) The Feature Guide's sessions section lists what the close and update dialogs say for each kind of tab, and the new line for a tab that has not started (its provider is off, or its start was refused) was missing from it, so "Ask Conductor" would have said that tab restarts and picks up its conversation. It now says it runs nothing, comes back as it is at an update and at a quit alike, and that Close sessions has nothing to end in it. The tips, the Settings help text and the README do not list the dialog's lines and need nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ts cut text Review of planning #517 (UX). On a closed line the roles followed the email in one span cut at its end, so at the wide layout's own threshold "w***@example.com · Primary · Reviewer" lost "Reviewer", and the roles are said nowhere else. A long per-model name ("GPT-5.3-Codex-Spark Weekly") pushed its figure out of the reset track. And no tooltip on the line could ever show: the toggle is stretched over the line (after:inset-0) and takes every pointer event there, so the titleWhenCut handlers under it never ran. - LedgerRow: line 2 is a flex row of three items. The email truncates with shrink-[1000] down to 4ch, the " · " separator is its own shrink-0 whitespace-pre item, the roles truncate last. textContent is unchanged. - UsageCell: the per-model phrase is a flex pair in the same track and colour: the name truncates, the figure (" 92% used") is shrink-0. - usage-parts: titleOfCutUnder, the toggle's onMouseMove. Under the pointer (document.elementsFromPoint) it finds the first element of this line marked data-cut whose text is cut, and sets the toggle's own title to that element's whole words; anywhere else it takes the title away. The line's name, email, roles, window labels, reset times, per-model name, Sign-in and Web cells, the clamped "Couldn't load usage" line and "Last reading" are marked; the six dead onMouseEnter handlers are gone. titleWhenCut stays on the open part, which the toggle does not cover. Tests: the subtext's three items and the email's larger shrink; the per-model pair, and a long Codex label keeping its figure; the toggle's title from a cut element under the pointer, none when it fits, none from another line's element, and every cut-prone element marked. e2e: hover the seed's long email (forced, since the toggle intercepts the pointer) and expect it whole as the toggle's title. Mutants n1 to n10, each red. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he summary's estimate Review of planning #517 (UX and code). - The heading read "Usage Rate limited · next check in 9:32", which says the usage is limited: false, and alarming. Only the app's background check of idle accounts waits; no session stops. The heading is now flex justify-between: "Usage" alone at the left like the other headings, and at the column's right end, over the reset times, "Background check rate limited · retries in 9:32" ("background check" is the page's own term). An open line's Usage read row keeps "Rate limited · next check in 9:32", since its label gives the subject. - RateLimitedLine takes `as` ('p' by default; the heading passes 'span', so no block <p> sits in the heading's span) and `lead` (its words). Its role="status" keeps the words; the countdown sits in a child with aria-live="off", so a screen reader no longer re-announces it every second for a wait of up to 4 hours. It also takes `value`, the row's own 12 px style, used by the next commit. - The heading's rule leaves out parked, off, pending and sign-in lines as well as lines in use. Spec 2.7 says only "not in use"; those lines never drew the countdown before #517 and no check of theirs waits, so this is a deliberate reading of the spec. It is now pinned. - "Most room now: Family, 0% of 5h and 18% of the week used." sat over Family's line reading "~0% used" and "~18% used". The summary now marks the figures too, through one rule shared with the line: figuresAreEstimate(row, inUse) in usage-parts. UsageCell's approx and AccountsPage's summary both use it; mostRoomDetail takes `approx`. - How readings work says what "~" means, in the tour's words: "A figure marked ~ is an estimate from an older reading." The note is one 20 px line taller, so READINGS_NOTE_ROOM_PX is 240 (was 220). Tests: the heading's words, layout, span, status and silent countdown; the open line's own words; a parked line and a sign-in line with a wait and nothing else waiting give "Usage" alone; two idle lines give the earlier wait; provider Codex gives none. The summary's "~", the mostRoomDetail mark, the sentence and 240 px. Mutants m11, m21, m27, m28 and n11 to n18, each red. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…solation list in view Three NITs from the planning #517 UX review. - UsageCell: with two lines open side by side, the Usage read row's main value changed size and colour between accounts. A routine source ("Updated 6 min ago") was 12 px in the secondary colour, but the estimate and waiting sentences came from Quiet at 11 px muted. Each note now draws itself (Note.draw(lead)). The first note of a row with no source line is the row's value, in the row's own style (a block truncate span; a rate limit there uses RateLimitedLine's `value`). A note after a source line stays quiet. - LedgerRow: the open part's region has tabIndex -1. A click on its plain text moved the focus to the page body, so Escape, which closes the line holding the focus, closed nothing (the tour says "Escape closes the line you are in"). The region now takes that focus. It is never a tab stop, and a mouse focus shows no ring. - AccountIsolationChanges: the list opens downward at the very end of the page, so with the page scrolled to its foot only its first entry showed. Opening it now calls scrollIntoView({ block: 'nearest' }) on the list (optional-called, since jsdom has none), and its sentences are capped at max-w-[720px]. Tests: the estimate and waiting notes as the row's value, and a rate limit with no source line in 12 px; Escape after the region takes the focus; scrollIntoView on opening only, on the list, and the 720 px cap. Mutants n19 to n22, each red. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…config-folder issue The user-facing surfaces, after the planning #516 and #517 review. - Feature Guide (app-knowledge, accounts): the Usage heading says "Background check rate limited", with a countdown to when it retries; an open line says "Rate limited", with the same countdown, on its Usage read row. This is the one sentence in app-knowledge that quoted the heading. The user guide has none; the README's "the page's Usage heading counts down to the next one" stays true. - Known issue (new): a Claude Code tab over SSH is matched by the email in the .claude.json file in the remote home folder. A CLAUDE_CONFIG_DIR the user set there, signed in as another account, files that tab's figures under the home folder's account and counts it In use. The workaround is to leave CLAUDE_CONFIG_DIR unset for the tabs the app opens. #516 made this visible: those reports used to be dropped. The shim is unchanged by decision, and a follow-up will make the gather prefer CLAUDE_CONFIG_DIR. - USER_GUIDE: "An account's open line names the tabs running on it, on its Running row." OpenPart lists the tab titles with no count, and the row is absent when none runs. - The tour's Providers and Accounts card said "a line in In use says how many tabs run on it", which has not been true since #517 took "N running" off the closed line. It now says "its open line names the tabs running on it, on its Running row". Tests: each sentence pinned, and the old wording refused. Mutants n23 to n26, each red. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nswered (#515) Save sessions on the update dialog marked the saved set for an update even when the last start's resume prompt was still unanswered. Every write then keeps the tabs that prompt offers (buildSessionState, P3.5), so the marked file held tabs nobody had answered for and that the update dialog did not count: the newer version reopened all of them at once, with no prompt and no account question. The mark is now written only when no restore offer is pending. The autosave is still cancelled for the update either way. A set saved with an offer pending carries no mark, and the newer version asks about it with the resume prompt, as after a quit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e's restore brings back (#515) The start after an update with Save sessions restores the tabs at the resume prompt's turn, after the release notes, and an update always shows them. Until the restore said which tabs came back (pty:tabsRestored), each session the helper kept was on its 5-minute take-over limit, so release notes left open that long ended the kept Claude Code and Codex sessions. For that start only (restoreOfferAtStart's atOnce), the renderer now sends the same signal at its startup load, with the offer's tabs (tellMainTabsComingBack). The limit is lifted at once while the tabs still restore behind the boot pages. A normal start is unchanged. The list is built by one function for both signals (restoredTabsSignal), so the restore's own signal later names the same tabs, and main reads it as a repeat: a session already waiting with no limit has no timer, and restoredTabs skips it. If the after-update restore does not land, each tab it did not bring back is closed in main (pty:kill, as a closed tab), so the session kept for it ends rather than waiting for a tab that never comes. A Not started tab is restored like any other, so it is in both lists, as it is today. No IPC channel, preload or main handler changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…elease notes stay open (#515) The Settings help for Claude Code and Codex sessions through the session helper, the update tip, the Machines tour step and the Machines card in the Feature Guide said the pages the new version opens with had to be closed within five minutes, or the kept sessions would end. Since the new version now tells the helper at its start which tabs come back, they say instead that each tab shows the same session however long those pages stay open. The Feature Guide's Closing or updating paragraph and the Machines card now also say that the start after an update made while the resume prompt was still unanswered asks with the prompt, and the Machines card keeps the five-minute limit for that case only, where it still holds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd the Feature Guide (#514) The close and update dialogs' last kind line ("1 sign-in or install tab closes and does not come back") and the Feature Guide sentence behind it covered more than is true. Only a transient tab is never saved: the sign-in tab the app opens on a machine you added (hostSignIn.ts) and a tab that installs or updates a program (commandTerminal.ts). The local sign-in tabs from Add account and Sign in again are saved, and the dialog already counts each as a terminal that restarts as a new one. The line now reads "1 tab the app opened to sign in on a machine you added, or to install or update a program, closes and does not come back." (and its many and all shapes), and the Feature Guide says "A tab the app opened to sign in on a machine you added, or to install or update a program, is never saved: it closes and does not come back." app-knowledge.test.ts pins the sentence and that the old wording is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s it A NIT from the planning #516 and #517 round 2 recheck. The account line's toggle is stretched over the whole line, and its title was set and removed only by mousemove (titleOfCutUnder). The pointer usually crosses the line's 12 px padding on the way out, where nothing is cut, so the title cleared. A fast exit straight off a cut element can skip that, because the browser coalesces mousemoves per frame. The toggle then kept that text (a cut email, a reset time, "Couldn't load usage (...)") as its title, and a title is also the button's accessible description, so a screen reader focusing the toggle by keyboard later read another cell's words. titleOfCutUnder now returns both handlers, onMouseMove and onMouseLeave, and LedgerRow spreads them onto the toggle: the function that sets the title is also the one that takes it away. No class name or test id moves. Test: the cut-text tooltip test sets a title through a move over the cut email, fires mouseout to outside the toggle, and expects no title. Red without the fix: with the onMouseLeave handler removed, and with LedgerRow wiring only onMouseMove as before, the assertion "expected 'w***@example.com · Primary · Reviewer' to be null" fails; each mutant restored byte for byte and sha-checked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A NIT from the planning #516 and #517 round 2 recheck. On the open line's Usage read row, Quiet and RateLimitedLine render block p elements, and usageMoreRows wrapped them in a span. A p is not phrasing content, so that broke the HTML content model. Chromium renders it fine and React does not warn, but it is the same class as the heading finding round 2 fixed, and it was older than this branch. FormRow's own value box is already a div, so the one container change covers every child. No class name or test id changes, and the layout is the same: a flex column in a flex item either way. Test: with the rate-limit paragraph on the Usage read row (after a source line, and as the row's own value), its parent is a div and no p in the open part has a span ancestor. Red without the fix: with the container back to a span, "expected 'SPAN' to be 'DIV'" fails; the mutant restored byte for byte and sha-checked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…urth #514 and #515 fix round The fix round's new case in session-persistence-restore.test.ts restores every kind of tab, a local and an SSH Codex tab among them: two new lines name Codex (three predicate matches, P07 and P13), so the file's line count moved from 45 to 48. The manifest's head and tree follow, and so does the ledger's manifestHead. The matched path set is unchanged (pathDigest c20e8d87...), no entry's predicates moved, and --check --phase candidate is complete. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A CONTEXT.d fragment for the branch, which closes two tickets and had none. The aggregate squash buries the commit bodies, so four things are recorded here: - #516: why the transcript-path gate was removed and replaced by usageIsThisComputers on the two helper delivery points, and the not-filed log line. - the CLAUDE_CONFIG_DIR follow-up for the statusline gather. - #517: each place the build departs from the spec on purpose, with the reason from the commit that made it. - the retired tests, and that the changelog lines go in with the beta.28 release commit, as for beta.27. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… they are cut A NIT from the planning #516 and #517 round 3 review. When the estimate or waiting sentence is the first thing on the open line's Usage read row, it is drawn as the row's value in a plain truncating span, with no tooltip. The same sentence drawn as a quiet line keeps titleWhenCut, and before #517 it always had a title, so this was the one place the tooltip change took away a tooltip from text that can be cut. The window-ages span beside it ("Sonnet as of 3 h ago", older than this branch) truncates with no tooltip either. The lead span takes onMouseEnter={titleWhenCut(meaning)} and the ages span onMouseEnter={titleWhenCut(ages.join(' · '))}: a title with the whole words while cut, none while they fit. No class name or test id moves. Test: the "in use and waiting" test (the lead note, with no source line) hovers the note while it is cut and expects its whole sentence as the title, then hovers it whole and expects none; the open-line test does the same for the window ages. Red without the fix: with the lead span's handler removed, "expected null to be 'Waiting for its session's first reading ...'" fails; with the ages span's handler removed, "expected null to be 'Sonnet as of 3 h ago'" fails; each mutant restored byte for byte and sha-checked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…517 The round-4 recheck's MINOR: the fragment claimed every new assertion was red under a mutant named in the commit bodies, which d40240b does not record. The reviewer's wording, applied as given. Independent review: the reviewer's own wording fix in a docs fragment, so it takes the trivial-edit exception. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…startup load (#515) The fourth fix round told main at the startup load after an update with Save sessions which tabs come back, on the restore's own channel (pty:tabsRestored). That lifted the 5-minute take-over limit as decided, but it also armed the unseen serving 3 s later, while the release notes were still up and no tab was in the renderer's store. The keeper then took the kept session's hook stream: a turn that ended, or a permission prompt, in that window was sent for a tab the store did not hold and dropped, and the hook route's last sequence kept the take-over from sending it again. The tab came back with no attention mark. The startup load now has its own entry, pty:tabsComingBack, carrying the tab ids alone (less than it sent before), strictly validated: an array of at most 1000 session ids, from the app's window only. In main, tabsComingBack takes the time limit off a session kept for a named tab and marks it as coming back; it serves nothing and takes no route. restoredTabs, at the restore's own pty:tabsRestored once the tabs are in the store, arms the serving for such an entry as for one still on its limit, once. The remote helper's notes of restored SSH tabs are made at the restore only again, as before the fourth round. Tests: session-helper-take-over pins that 20 minutes after the early word nothing is served and no hook route is taken (the queued event waits in its holder), that the restore's word then serves the session and delivers that event, and that the limit stays off throughout; a tab not named keeps its limit, and one closed is ended at once. The handler test pins the new channel's sender check and schema; the renderer test pins that pty:tabsRestored is told once, with every tab in the store. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….27 or earlier still asks once (#515) The mark that lets a start restore with nothing asked is written by the version updated from, and 2.1.3-beta.27 and earlier write none. So the first update onto this build still shows the resume prompt and, with Resuming sessions set to Ask each time, the account picker for each tab. The Feature Guide, and so Ask Conductor, now names that start among the ones that still ask: in the Sessions list, in Accounts, and in the Machines line on the five-minute limit that start keeps. Pinned in app-knowledge.test.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # docs/wp1/legacy-codex-manifest.json # tests/wp1/legacy-codex-ledger.json
…gate # Conflicts: # README.md # docs/wp1/legacy-codex-manifest.json # tests/wp1/legacy-codex-ledger.json
…g the three beta.28 branches The merge took one side of the manifest and the ledger. Regenerated the manifest and the skeleton from the merged tree, and carried over the two dispositions the update branch recorded for the new close dialog text and update-keep modules. The candidate phase check says the ledger is complete. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Set the version to 2.1.3-beta.28 in package.json and the root of package-lock.json, add the 2.1.3-beta.28 entry to the changelog (the close and update dialogs' lines, the restore after an update with nothing asked, the first tab's start-up checks side by side, a plain SSH tab's usage reaching its account, and the Accounts page's lines), and refresh CHANGELOG.md from it. Its warnings say the update onto this version still asks once, say what holds now for the two-minute Save sessions window, warn about a CLAUDE_CONFIG_DIR on an SSH host, carry beta.27's standing warnings forward and end with the go-back line for beta.27. beta28-release-copy.test.ts pins the entry and the surfaces beside it, as beta27-release-copy.test.ts did for beta.27, which now asserts that its entry is in the changelog once, just above beta.26, instead of being the top entry. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The sweep of the surfaces beside the changelog, checked for the merged whole (the update and restore texts from one branch beside the Accounts texts from another, and the README lines combined by hand): - tips-library.ts: the Accounts tip said one line is open at a time and Escape closes it, which the Accounts page no longer does; it now says several lines can be open at once and Escape closes the line you are in. The tip on Resuming sessions said the setting decides after a restart; it now says an app update with Save sessions asks nothing. - scripts/ci/pr-numbers.mjs: pty-manager.ts is 7475 lines after the three branches, one under the cap, so the cap is lowered to 7475. - beta28-release-copy.test.ts pins both tips beside the settings help text. Checked, nothing needed: app-knowledge.ts, training-steps.ts and the Feature Guide cards, the README (both hand-merged lines, and no screenshot shows the Accounts page or the update dialog), docs/USER_GUIDE.md, PRIVACY.md and the showcase pages. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…odex ledger The beta.28 pin test names Claude Code and Codex sessions in its assertions about the changelog entry, so the manifest gains one path. Regenerated the manifest and the skeleton and recorded its disposition. The candidate phase check says the ledger is complete. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…side them Review fixes for the beta.28 release copy: - The CLAUDE_CONFIG_DIR warning now says the tab's status line still names the account in the home folder's .claude.json, so "that account's line" can only mean that account, as the Feature Guide's known issue says. - The first warning adds the second five-minute limit: with Resuming sessions set to Ask each time, each tab's account question must be answered within five minutes of that tab first showing (manager.ts tabShown starts KEPT_TAKE_OVER_WAIT_MS again). The Feature Guide's machines section says the same. - The Feature Guide's known issue and its agent-sessions paragraph now say a Claude Code or Codex session the helper keeps through an update waits the same two minutes as a terminal (the helper's default away clock, 120 s), as the changelog warning and the Settings help do. - The README, the Multi-Account tip, the update tip and the Machines tour step now say an update from 2.1.3-beta.27 or earlier still asks once, as the Feature Guide does. - CHANGELOG.md regenerated. The beta.28 pin test covers each new sentence and the tabShown limit behind the warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…se copy review fixes The Feature Guide, the tips, the tour and the beta.28 pin test changed text that names Codex. The matched path set is unchanged (pathDigest a468efd3); only two line counts, the head and the tree move. The ledger check in the candidate phase says the ledger is complete. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 2.1.3-beta.28 aggregate. It brings three things together. After an update with Save sessions, your tabs come back by themselves, with nothing asked. The close and update dialogs now say what each choice does to each kind of tab, with counts. And a round of Accounts page follow-ups lands, including a plain SSH tab's usage reaching its account.
How it got here:
The tickets are in the planning repo.
Left on purpose (review NITs):
Not in this beta: planning #512 (drag-select past the edge in an SSH Persistent tmux tab). Its live check on a real Linux host is running now, and it moves to the next beta.
Checks at this head on the build PC:
This PR's CI covers what the build PC does not run: the full unit suite, e2e, the quarantined files, and macOS/Linux. A separate dispatch on this branch runs the remote-helper end-to-end check and the Snap e2e, which includes the Accounts page layout sweep and the first-tab evidence capture.
Not desktop-checked by an agent: no agent ran the app. The owner checks the released beta.
Security:
main's lockfile. This branch changes no dependency (only the version fields).npm audit --omit=devfinds one high: DOMPurify 3.4.17 (GHSA-qm7q-q8h9-jg8q, GHSA-hrxw-jjj6-2g2j). Both advisories are a SAFE_FOR_TEMPLATES bypass. Neither of the app's two sanitize calls sets SAFE_FOR_TEMPLATES, and mermaid's own code does not either, so the vulnerable path is not reached.ADR-009: two new IPC channels, and no credential crosses either one.
🤖 Generated with Claude Code