Skip to content

Continuous improvement, rounds 6 to 9: keys, undo, review, speed - #7

Merged
julienwuthrich-anthropic merged 180 commits into
mainfrom
pm/continuous-improvement
Nov 24, 2026
Merged

julienwuthrich-anthropic merged 180 commits into
mainfrom
pm/continuous-improvement

Conversation

@julienwuthrich-anthropic

Copy link
Copy Markdown
Collaborator

This pull request brings pm/continuous-improvement into main. main (4367dfc) already holds
the branch up to 31f9eed (rounds 1 to 5), merged by hand on 2026-11-23
(git log -1 --format=%P 4367dfc). So this is only what came after: round 6 (11 packages), five
side branches (approval cards, daily shortcuts, repository hygiene, docs refresh, macOS audit),
round 7 (12 packages), round 8 (12 packages) and round 9 (13 packages). main was merged back
into the branch at a2a322a, with one conflict line in src/home/Composer.svelte.

Numbers at f2daa41

  • Commits that are not merges: 119 (git log --oneline --no-merges origin/main..HEAD | wc -l).
  • Size: 813 files changed, 66927 insertions(+), 3775 deletions(-)
    (git diff --shortstat origin/main...HEAD).
    • Under docs/research/ (recordings, their scripts and notes): 394 files, 28853 insertions,
      289 deletions.
    • Everything else: 419 files, 38074 insertions, 3486 deletions.
  • Round 9 packages merged: 13 of 13.
  • Rust: 1636 passed, 0 failed, 1 ignored (cargo test --workspace --no-fail-fast, 47 test
    targets, at d680d7f; no Rust file changed after it); vitest: 1953 of 1953 (194 files);
    svelte-check 0 errors, at f2daa41. One run of each.

What the user gets

Commit subjects say what the user gets. git log --oneline --no-merges origin/main..HEAD,
grouped by the word before the colon, gives the areas below.

First to notice

  • Esc Esc, or /undo, in a 1:1 chat with an agent at rest: "Undo a turn" lists the agent's
    turns, and Enter puts the files back. Files only: the conversation stays (423c998, 6e28de7).
  • /new in a 1:1 agent's chat: a fresh conversation with the same agent, folder and model
    (97f76de, fdf1286).
  • A "while you were away" row after 10 minutes away: who waits for you, trouble, finished work,
    with a jump to each (9439f15, 019e997, beeb296).
  • Review comments on a finished plan go back to that plan as one more task, for the agent that
    wrote the file (6a04142, da81b9c).
  • The palette finds what was said in any conversation, open or closed (e1c4fcc, 4bf5674).
  • Text that starts with "/" and is not a known action is not sent (c1774bf, 423c998, 37dc4b9).
  • In a browser on codly serve: a bar says when the page lost Codly, keeps trying and catches
    up (7d31d2a, 3d3a611).

Safety and approvals

  • The approval keys (⌘↵, ⌘⌫, 1-9) act only on a card whose title, question and buttons are in
    view, not covered, and still for 600 ms. Before that a press only brings the card into view
    (c1774bf, 99d4483).
  • A key pressed less than 600 ms after a key answer does nothing (abf4cbc).
  • The same rest holds for clicks and for "Run plan". ⌘↵ runs a plan only while its
    button is in view. A digit picks only an option you can see. A press that does nothing says
    why at the card. Keycaps are drawn at full strength (c4360b1, 9b59821).
  • Request cards use words instead of JSON, fit a small window and answer from the keyboard
    (62c6dbe).
  • A file edit of a 1:1 Claude agent offers "Approve and accept edits" in one press (c1774bf).
  • What you said with an answer stays on record and on the closed card: a deny note, an answer,
    a changed plan. The closed row says who stopped a request and which rule you saved
    (1c71bc8, 0ccfb98, beeb296).
  • A deny note reaches Codex, Gemini and OpenCode agents too, as a message. A Codex question gets
    your answer in the form Codex reads (38d54a7, b30d547).
  • The rules read more command lines: package runners and their options, env -S, find -exec,
    more settings writers, and test runs of Java, dotnet, swift, mix, deno, zig and bazel
    (22f8e16, d054d3d, 26db051, 73ac54e, ed47589, 5090bd3).
  • A very long line gets its answer at once. Measured on the build box, debug build: 40 times
    uv run, no answer before and 10 ms after (8aa221e, d054d3d, f7a615b).
  • The check that protects work in your own project folder, which holds in Full access too, reads
    the same wrappers and runners as the risk check (ed47589, 5090bd3).
  • Cost budget: a Claude agent gets what is left of the budget as its own limit, so one long turn
    stops at it. A budget stop is not a worker failure. The words say that a turn can end a little
    above the limit (38d54a7, b30d547, 89706d0, 29ccf64).
  • Settings → Safety is six short pages: Approvals, Sandbox, Checks, Trust, Worktrees, Limits
    (d68c56c, 7c5aa1c).
  • Toasts: Esc dismisses one, equal toasts join with a count, "Dismiss all", and a stack folds
    rather than lie on a waiting card (a1aea16, 27a509f, b11dd34, ef49633, a301644, a036a92).
  • Confirmations are keyboard first; a Kill says so; closing a busy Lead asks (c80dd15).

Conversation and composer

  • "Undo a turn": one file can go back alone, the list keeps the keyboard, Enter acts on the row
    that has the focus, and the composer sends nothing while the list is open
    (423c998, 6e28de7, e019f49).
  • /new asks once, then stops the agent's process and forgets its session. Files, branch and
    checkpoints stay. In a request, /new is still a new request (97f76de, fdf1286).
  • The composer's "/" menu and the palette have the agent's controls: compact, context, mode,
    model, undo, terminal, MCP servers (8f1abef, c1774bf). ⇧⇥ switches a 1:1 Claude agent's mode
    (c1ac389). A 1:1 agent starts in one step (c8a0f49).
  • Drafts survive a reload and a restart. A paste over 8,000 characters or 150 lines becomes an
    attached file, with "Paste as text instead" (635602e, 2774075).
  • The agent's own to-do list shows where you read: "3/7" above the composer, "3 of 7" and the
    step on each running task (9813c7f, 9439f15).
  • A waiting card stays in view; rows that arrive are counted as "N new below" (9813c7f).
  • What you did to an agent stays in the thread as a quiet row: mode, model, effort, compact,
    context, a stop (9439f15).
  • A request tab shows a dot when it has news (9439f15, beeb296, 8ecd5cf).
  • A failed turn offers "Sign in…" when its CLI is signed out, and "Continue" after a turn you
    stopped (beeb296).
  • A hit of the conversation search opens the conversation at its row (635602e, 2774075).
  • Codly opens on the request you left (8f1abef).
  • Agent sheet: History reads as sentences, one row per act; an agent rests once its turn ended;
    helpers and MCP servers can be stopped and restarted (c3aedea, c3cb0f8, fb89f88, e0f4522).
  • Keyboard: every dialog keeps the keyboard, every button has a name, and "Skip to the
    conversation" is the first Tab stop (c7ed7bb, 406d192).
  • Retry shows your message once, with a "Sent again" line. PageDown, Space, Home and
    End scroll the thread. Sending does not move a waiting card (f1aa0cf).

Review, merge and checks

  • The Changes room shows a 1:1 agent's work as a diff, with comments and "Send to "
    (7379385, f8d138a).
  • Send back on a finished plan adds one task to that plan. It goes to the agent whose own commits
    wrote the file. A send-back that fails leaves nothing behind: its writes are one store
    transaction (6a04142, da81b9c, 8ac4103).
  • A plan with a pull request opens a new request, and the bar says so before the press (da81b9c).
  • On a running plan, comments on files of tasks still at work go to those tasks; comments on
    finished work wait on the diff until the plan is done (7379385, a382625).
  • After a refused merge the way out is the one main button, with one toast per plan. One merge
    per plan runs at a time. The merge is offered at the thread's end (beeb296, 8ecd5cf).
  • An open pull request is the main button until its checks are read. They are read again every
    30 s and on window focus, with one timer per pull request (9813c7f, 9439f15, beeb296).
  • A conflict resolution whose start was cut short by a quit is taken back at the next start. A
    restore note reaches only the run it is for (aafce24, 017682b, d0d264f).
  • After a restart, "Never" holds work also when everything was paused at launch, and a re-check
    of your required checks goes on where it stopped (d0d264f, 2fe326a, 6c64bc2).
  • A run that starts while Codly quits is told to stop (8be276f).

Claude Code sessions

  • A tool call that hangs is noticed in minutes (4e5e122).
  • An MCP server of a running agent turns off and on, and restarts. The record says the switch is
    for the folder the agent works in (4e5e122, 5f45649, ccf22f6, a17edc9).
  • Helpers: stop any helper from the sheet; a failed helper says why; stopping an agent ends its
    helpers the recorded way; a background row keeps its timer after a reload
    (fbc4013, b8f9185, 212b46f).
  • The thinking effort can change while an agent works. Taking an effort away needs no restart
    (b8f9185, 89706d0).
  • A resumed conversation is not charged twice (89706d0).
  • Replays of the recordings (parts 4, 5 and 6) pin what the adapter does at a stop, at a budget
    limit and with helpers (b8f9185, ccf22f6, 89706d0).

Performance in long sessions

  • "Load earlier" reads by an index (migration m7). A check reads only its last decision. Lists in
    memory that only grew are cut back (08e68ec, 081d178).
  • The agent sheet does no work while it is closed, and follows only its own agent (c7ed7bb).
  • A long conversation stays fast: the event log is read once per thread and then
    only from where the last build stopped; the words of one streamed batch are joined once; a
    scroll counts rows at most once per frame; the history kept for "Load earlier" is capped at
    20,000 events per agent. ?long=N in the demo makes a long thread to measure (f1aa0cf).

Running in a browser with codly serve

  • The reconnect bar: "Codly is not reachable. Trying again…". It tries after 1, 2, 5 and 10 s,
    then every 10 s, and "Try now" tries at once. Back, it says "Connected again" and asks about
    work that waits for Resume (7d31d2a, 3d3a611).
  • A page that is signed out says so and names the link to open (7d31d2a).
  • A tab that stops reading has at most 8,192 messages waiting; then it takes a new snapshot. A
    browser terminal comes back after a burst (08e68ec, 081d178).
  • The browser opens on Linux too (ecf8a3b).

The demo

  • New rows in docs/DEMO.md since main: ?cards=3, ?turn=failed, ?pr=open,
    ?merge=checks, ?resume=ask, ?background=on, ?requests=two, ?search=fail.
  • The demo says what the app would say: an agent's own turns in "Undo a turn", a row after a
    restore, a deny note to another CLI, a saved rule on the closed row
    (bccbda9, d3d6ff3, b1fd961, 6e28de7, beeb296).

Research recordings

  • Parts 4 to 7 of the Claude Code 2.1.311 notes (docs/research/cli-claude-stream-json-2.1.311-part4.md
    to -part7.md), with 306 new recording files: 63 for part 4, 43 for part 5, 101 for part 6,
    99 for part 7 (24c13d3, 3c76a93, d48fd24, 4b8b2c6).
  • The sanitizer keeps the recording machine out of a fixture, and the early recordings were
    cleaned the same way (5f995cb, a53256d).

Tests

  • A test can no longer break its neighbour: every fake agent ends when it is told to stop, and a
    test that leaves a run alive fails by itself (1db6755, b73a1db, d50c9d3, 8be276f).
  • The macOS Keychain and keep-awake helper lines are tested on every build (f35a3fb).
  • Guard tests: every button has a name, and the shortcut sheet lists the keys the handler knows
    (c7ed7bb).
  • The secret scan no longer takes recorded message ids for keys (e8ef980).

What changes by default

No setting changes its default value: git diff origin/main...HEAD -- crates/codly-core/src/model.rs
adds one event kind (ApprovalSaid) and one optional field (BackgroundTask.started_at), and no
setting. What a user of main meets without asking:

  • The approval keys answer only a card in view, not covered and still for 600 ms. On main they
    went to the oldest waiting card, also out of view (c1774bf, 99d4483).
  • A key pressed less than 600 ms after a key answer does nothing (abf4cbc). The same
    rest holds for clicks and for "Run plan" (c4360b1).
  • Text that starts with "/" and is not a known action is held, not sent. "/ model" counts as a
    typo of /model. A path such as "/usr/bin/env" is sent as written (423c998, 37dc4b9, 635602e).
  • Free text and Enter in the palette no longer go to the Lead at once: "Ask the Lead" asks once
    (e1c4fcc).
  • Esc Esc in a 1:1 chat with an empty composer and an agent at rest opens "Undo a turn". While a
    turn runs, Esc Esc still stops it (423c998).
  • /new in a 1:1 agent's chat starts a new conversation. On main it opened a new request
    (97f76de, fdf1286).
  • Send back on a finished, unmerged plan adds a task to that plan. On main it opened a new
    request with a new Lead (6a04142).
  • With a cost budget set, a Claude run starts with what is left as its own limit, so a turn can
    stop in the middle. The budget's default stays off (38d54a7).
  • A Claude tool call that hangs is flagged after 10 minutes of silence, not 60, when its open
    calls are of a kind Claude Code reports every 30 s (4e5e122).
  • More command lines ask. A line that starts more than 24 commands asks as "runs dynamic code"
    and offers no rule (d054d3d). In Full access, in your own project folder, lines behind env -S,
    a package runner or find -exec are read too, so some ask that did not (ed47589).
  • An effort change while a Claude agent works is sent at once. main refused it with "stop its
    turn first" (89706d0).
  • The database gets a new index at the first start (m7), after a backup. An older Codly then
    refuses the database as newer (08e68ec; round 9 leftovers, core-long-sessions).
  • A copy of each draft is kept in the browser's storage, per office and thread: at most 100,000
    characters each and 50 drafts (635602e).
  • A paste over 8,000 characters or 150 lines becomes an attached file (635602e).
  • Backspace leaves a 1:1 chat only when the field was already empty, the press is not a repeat,
    and the field did not change for 600 ms (635602e, 2774075).
  • On codly serve, a tab more than 8,192 messages behind has its stream ended and takes a new
    snapshot (08e68ec).
  • Settings → Safety has new paths: six pages in place of one (d68c56c).

What was verified, and how

  • The suites: one run each of cargo test --workspace, vitest and svelte-check on the Linux
    build box. The final counts are in the Numbers block. Earlier full runs: at 6b5982b (round 7
    merged) Rust 1575 passed, vitest 1492 of 1492; at 855f25a (round 8 merged) Rust 1598 passed,
    0 failed, vitest 1755 of 1755 (.pm/round8-plan.md, .pm/tools/round9-extra.js).
  • Each round 9 package ran the tests its brief names before its merge; the commands and counts
    are in .pm/round9-leftovers.md under "Tests as reported".
  • Six browser reviews of the demo in a Chromium pane. The fourth (baa4a63), fifth (7e66ce1) and
    sixth (0a3e507) are of commits in this pull request.
  • The sixth review (.pm/ui-review-round8.md): 105 tries on the approval keys. 0 of 52 presses
    answered a card that was out of view, covered or in view for under 600 ms. 5 answers were
    recorded that the user did not mean. About 125 tries in the rest of the app gave 0 wrong
    answers. 0 console errors.
  • A second reviewer tried every blocker and major defect of the sixth review again: all 8 were
    seen again, and 3 were re-rated (two to minor, one to demo only).
  • Recordings of the real Claude Code CLI 2.1.311, parts 1 to 7. Adapter tests replay the
    recordings of parts 4, 5 and 6. Part 7 is built byte for byte from its 99 recordings by its
    notes builder.

What was NOT verified

  • WebKit and the real macOS app. The build box is Linux: code under cfg(target_os = "macos")
    was not compiled there, and no CI run of this branch is recorded in this text.
  • Live runs of Codex, Gemini CLI and OpenCode: none. The Codex shapes come from the protocol
    types the Codex CLI generates (38d54a7: "not verified on a live run").
  • The real core under the browser reviews. They ran on the demo's mock: no git, no gh, no
    shell.
  • Flaky tests: each suite ran once, with no repeat.
  • Round 9 in a browser as a whole. The sixth review was of 0a3e507, before round 9. The
    reconnect bar was checked by reading the code only (.pm/round9-leftovers.md, serve-reconnect).
  • The speed of a long thread: the numbers of long-thread-speed are not in this text.
  • Part 7 of the recordings: no test replays its fixtures. Not recorded: the plugin forms with a
    real login, a machine with no network at all.
  • The sixth review did not check: a held key, the dark theme beyond Settings → Safety and one
    card, "Push", "Merge anyway", "Undo merge" and sending "Create pull request".

Known defects that remain

From the sixth browser review (.pm/ui-review-round8.md, of 0a3e507). Numbers are that file's.
Round 9 claims the others. Apart from the answer-by-mistake defects below, those claims are checked by tests and by a short smoke run in the browser, not by a full review.

The two blocker-class defects (1, 2) and three majors (3, 4, 5) are fixed by
question-keys-in-view, and a short browser re-check of f2daa41 saw them closed: 71 tries, 0
wrong answers (6 second clicks at 105 to 586 ms and 3 second ⌘↵ at 175 to 500 ms answered
nothing; 3 of 3 presses with "Run plan" out of view only brought it into view; 12 presses on
hidden options picked and sent nothing; one ⌘↵ keycap on screen at a time). Left from that
re-check, none of them a wrong answer:

  • After you pick an option with the mouse, ⌘↵ and ⌘⌫ do nothing and the card still shows both
    keycaps. The card should take the keys, or hide the keycaps.
  • The rest ends at 600 ms: a second click at 751 ms and a second ⌘↵ at 700 ms act. That is the
    rule, with a thin margin.
  • A click that the rest swallows shows no line; the buttons only look dimmed.
  • In the agent sheet, bringing a card into view can move other controls under the pointer.

A smoke run of the new screens on f2daa41 (about 45 tries, 0 wrong actions, 0 console errors) left
these, all minor:

  • A toast can still lie on a waiting card's title at 1024x640 in a 1:1 chat.
  • In a long conversation "Load earlier" shows a false "N new below" pill. The thread is not
    virtualized: 4,333 rows are 50,980 nodes (a keystroke stays at 26 ms median).
  • "Undo a turn": two Enter presses 3 ms apart confirm at once; the restore row has no "Undo" of
    its own after the toast is gone.
  • A review comment that was sent back leaves no mark in the diff.
  • A refused merge adds an equal row at each press.
  • The shortcuts sheet does not list /new, /undo and the undo list's keys.
  • The development build logs one Svelte warning at a press of a toast's button.

No round 9 package claims these:

# Defect What should be made safe or right
7 In a small window a toast can lie on a waiting card's title; the card then takes no keys A toast should never be placed on a waiting card. The toast placement code did not change in round 9. A press that does nothing says why
10 Toasts lie on header controls in small windows The same placement rule
16 Tight layouts at 1024x640: "Why?" cut by the button row, "Deny and say why…" on three lines in the sheet, one option of two in view on a question card Layout
17 In a 1:1 chat the composer has the focus, so 1-9 are typed Left as it is by decision (round 9 brief of question-keys-in-view, item G)
18 The step row above a waiting command reads "Ran …" while the command still waits Words
19 The plan card is taller than the thread at 1024x640 Layout
41 Demo: review and resolve tasks show "+0 −0 in 0 files"; the pull request dialog lists a denied command as passed; ?trust=ask shows the Lead "Thinking" behind the open dialog Demo only
gap 9 An MCP server that needs a sign-in has no button Needs a real sign-in; the sentence now names the steps (c7ed7bb)

Claimed in part; the rest is "status not checked":

# Claimed Status not checked
12 A card comes whole into view with its "Always allow" line (9b59821) The card with the rule choices open at 1024x640
25 Rows of what you did fold only with neighbours of the same kind (f1aa0cf) One model switch that makes two sentences
26 One word, "Kill"; "Stopped" is since the stop (c7ed7bb) "Briefing a helper" for the whole time the helper works
29 Each review task is titled by its first comment; its brief starts with your comments (da81b9c) The state of a comment in the diff after Send back
30 Quiet rows of the thread show code and bold as text (f1aa0cf) A History row that shows "t1"
32 One main button, one toast per plan, the toast goes when the task is over (beeb296) The "N new below" pill over a button; an equal row for each more press
33 No toast counts down or fades while the page is out of view (6e28de7) The fold to "+N more" while the page is out of view
37 Every button has a name, fields have labels, a skip link (c7ed7bb) A file card's very long button name; comment buttons in a diff that show only under the pointer

On hold: "a user's own MCP servers in a folder you have not trusted". With the folder's local
settings file loaded (--setting-sources user,local, which Codly passes when that file is your
own), a file of the folder switched on a plugin the user had turned off, and its server
(part 6: 4 of 4 runs) and its hooks (part 7: 2 of 2 runs) ran, and the plugin forms with a real
login are not recorded. The finding is written where the code decides
(crates/codly-core/src/orchestrator/trust.rs), and a test pins today's rule (89706d0).

How to try it

  • In a browser, with no CLI: pnpm dev, then open http://localhost:1420 with the parameters
    of docs/DEMO.md:
    • ?cards=3&autoplay=1: three cards wait at once. Scroll, then press ⌘↵: the keys act only on
      the card in view.
    • ?approval=question-long: a question card with long options.
    • ?approval=file: a 1:1 agent asks before an edit. Approve it; once the agent is at rest,
      Esc Esc in its chat opens "Undo a turn".
    • ?turn=failed: a failed turn with "Retry".
    • ?merge=checks&autoplay=1&skip=180: a merge refused for a check, then "Have an agent fix it".
    • ?pr=open&autoplay=1&skip=180: an open pull request whose checks are read.
    • ?resume=ask: the Resume question after a restart.
    • ?background=on: a helper and a command in the background, each with Stop.
    • ?requests=two: two requests; reload to see Codly open on the one you left.
    • ?approval=questions-two: two questions with six options each. ?long=2000: a long conversation.
  • On the Linux box: scripts/deploy-devbox.sh builds this checkout fast and restarts
    codly serve (--no-restart builds only, --yes restarts while agents are alive, --release
    makes the real release build). Stop the server with the page open to see the reconnect bar.
  • In the app on macOS 14: pnpm install, then pnpm tauri dev, or scripts/install-app.sh for
    Codly.app. You need at least one signed-in CLI.

🤖 Generated with Claude Code

…earch says so, a stopped call reads "stopped"

Review comments: the rows of comments whose line or file left the diff were
keyed by position (DiffView) or by joined text (DiffsLens). After "Remove",
the same row, with the focus on its button, became the next comment's. One
helper (commentKeys) now gives each comment a key of its own, so the row goes
with its comment.

Code search (Knowledge): a search that failed showed the empty "Ask the
index." state. It now shows the failure with "Try again", and a search still
on its way no longer answers after the box was cleared.

Traces: a call with no result whose turn ended, whose process is gone, or
whose helper is over read "running" for ever and counted as running. It is
"stopped" now: no duration, not running, not failed. A helper's call stays
running while the helper works on after the turn.

Notices: when a long turn's start had left the event log, each notice was a
row of its own until the turn ended. Until the log says that a turn started
or ended, they are one row now.

Check the work: every focus of the window asked the core, which starts git.
A focus now asks once in 10 seconds for an agent; a focus inside that time is
asked when the time is over. A click on the button always reads.

Also: the empty line of the Messages tab, and the doc comment of itemId.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A helper (a subagent of a Claude agent) shows in the sheet's helper section,
in "In the background" and in History, and the three did not agree.

- Stop: a running helper of the background list has "Stop" too. Claude Code's
  stop_task is recorded for it (cli-claude-stream-json-2.1.311-part3, section
  1). The button says that the agent is told and takes a turn of its own, and
  reads "Stopping..." until the list drops the work (10 s at most).
- A stopped helper is not "finished": the section's line counts the helpers by
  how they ended ("2 finished · 1 stopped"), the button over the ended ones
  reads "3 ended", and each ended row shows its own word.
- A background helper of a Claude agent no longer reads "stopped" after an
  interrupted or failed turn. The adapter says which helpers ended with the
  turn; the store follows its rows. Other CLIs keep the old rule, and the end
  of the process still stops every helper.
- One word, "helper": the section is "Helpers", History says "Helper
  completed: ...". The end of a background helper is one History row: the
  list's row names only the commands that ended, and a list that only drops a
  helper is no row.
- History says "Compaction started" for a Claude row with no token numbers and
  "Compacted context 180k → 40k" for one with numbers. A row with no numbers
  from another CLI can be the start or the end, so it says neither.
- After the window is loaded again, background work that the first list at
  hand names shows "running" with no timer: when it started is not known, and
  the timer was too short before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…the request you left

What a Claude Code or Codex user does with a slash command or a mode switch
was only in the agent sheet. The composer now has it where you type.

- The / menu lists compact, context, undo, terminal and mcp for the agent of
  the conversation (the Lead of a request, the agent of a 1:1 chat). In a 1:1
  chat with a Claude agent, ask, plan and the new name edits set how it works
  with edits. Every name is in every conversation; one that cannot run says
  why in full (a long reason takes a second line), and the list scrolls in a
  low window. The names that were there before keep their place, so "/c" and
  Enter still clears the draft. The list is built in composerActions.ts.
- The chip under a 1:1 Claude agent's composer has a second group, "How it
  works", and says the way the agent is in (agentPicker.ts).
- The request you were last on in each office is also kept in localStorage,
  one key per office: after a restart you land on it, in the room you were
  in. A request that is gone lands on the first one, as before.
- An open sheet that shows a Lead now shows the Lead of the request you
  switch to, whatever took you there; with no Lead yet it closes. The sheet
  of a worker, a 1:1 agent, a task or a file stays.
- Send back: a comment written or changed while the call to the worker is on
  its way stays on the diff. A handed review message that you edit before
  sending takes the comments it still names off the diff; one you took out
  of the message stays.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… desk

The office view keeps its own list of an agent's helpers (the companion, the
"+1" badge, the "briefing a helper" line). It still dropped every helper at a
turn that was interrupted or that failed, for every CLI, while the sheet and
the home rows now say that a Claude agent's background helper works on. The
two disagreed, and no later event brought the helper back to the office.

The office now follows the store's rule. For a Claude agent the adapter's
"stopped" rows decide which helpers end with the turn; another CLI, or an
agent whose CLI the office does not know, keeps the old rule. The end of the
process ends every helper, as in the store: before, a helper stayed at the
desk after its process was gone, until the agent was done or let go.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…nd the Plan room's request chips move you as a tab does

Two rows of the / menu ("Undo … last turn", "Continue in your terminal")
are off until the core answers, and every off row went last. So "/u" and
Enter, or "/te" and Enter, typed before the answer came, ran the next
action that holds the same letters (a new request, a compact) and not
the one you named.

A row that only waits is now marked (`wait`) and keeps its place in the
list: Enter on it runs nothing until the answer is there. A real refusal
still goes last, as before.

The Plan room's request chips set the request directly. They now go
through `ui.openPlan`, as every other way to a request: an open Lead's
sheet follows to that request's Lead, and the request is kept for the
next start.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…osed card

A request you denied with a note, a plan you changed before you accepted it
and a question you answered all closed as "Denied by you" or "Approved by
you". The note was kept nowhere, and the answer only in the window's memory,
so it was gone after a restart.

- The core writes a new row, `approval_said` (note, answer, plan_changed),
  just before the answer's own row. Only for an answer that reached the
  agent, and only when it carried words. The note is recorded where the CLI
  hands it to the agent (Claude Code); the answers to a question are one
  line in the order asked, without the answer to a question Codex marks as
  secret. A thread's "Load earlier" page has the row too.
- The app reads the row live, from a snapshot and from an older page. The
  closed row and the agent's History end with your note, and a plan reads
  "Plan accepted with your changes" or "Plan sent back".
- A plan card has one way to say no: "Send it back with a note…". The plain
  reject is gone (without a note Claude Code shows the same plan again), ⌘⌫
  opens the note field on a plan, the note form has a Cancel button, and a
  plan cannot go back with an empty note.
- The closed row of a question gives a short question the room of its text
  and the answer the rest.
- The network card, Settings and the README say what the 2.1.311 recordings
  show: after "Approve once" Claude Code does not ask again for the host
  while the agent keeps running, and asks again when the agent starts again.
- The office says "Skipped its question", "Denied: more permissions" and
  "Plan sent back" for a request you said no to, and the ticker reads
  "Waiting for you: its question".
- The browser demo writes the same row.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…its own, "Start an agent" stays in view

Three toasts in a small window still lay on buttons (on "Deny" at 1024x640),
and the place went stale when the page changed under a toast that stayed.

Toasts
- When the whole stack finds no free place, it folds: one toast shows (the
  newest, or the newest error) with "+2 more" under it, and that smaller
  stack looks for a place the same way. A press on "+2 more" shows the whole
  stack while the pointer or the keyboard focus is on it.
- A toast's text shows six lines; "Show all" opens a longer one in place.
  The place counts the short height.
- The stack looks again when what is in the page's main column gets higher
  or lower (at most once in 250 ms), when a menu or a dialog comes or goes,
  when the first-run quest shows another level and when the closed requests
  are read again. Scroll is still no trigger.
- A control wider than twice the stack counts by what it shows (its text
  and pictures), not by its whole row, so the stack stays at the top over a
  whole-width row. A field counts whole.
- The look when the page has come to rest is no longer put off by each new
  toast: it comes at the end of the first wait. A change of the page's
  layout still starts the wait over.

Resume bar
- The bar is there until you answer, so it gets room of its own: while it
  shows, the stage and the toast stack start below it, and it starts right
  of the rail. It covered the request tabs and the plan header before.
- It is drawn above the first-run quest, so the question can be answered
  there. Its comment said it was under the sheet in the order of layers,
  which was not true.
- The Ask me panel's width is one token (--ask-w) for the panel and the bar.

Crew strip
- "Start an agent" stands after the strip, outside what scrolls: at 900x600
  with the sheet open it was out of view.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… names what it stops

The browser demo could not show several screens, and showed some wrong.

- `?resume=ask`: the first plan was running when Codly "closed". Two tasks
  wait with the core's reason, the bar gets its offer, "Resume work" starts
  them, and the count goes down when you cancel a waiting task. No task
  starts while the hold is on, as in the core's scheduler.
- `?intake=`: "Run plans at once" is on, and the plan of a request from
  GitHub waits with the core's record, which the card shows above Run plan.
- `?background=on`: a 1:1 Claude agent leaves a command and a helper in the
  background. Stop ends the one whose id is sent. After a helper's end the
  agent takes a short turn of its own, as Claude Code does (recordings
  r5-stop-subagent-1 and -2); after a command's stop none follows.
- A helper whose call waits for it gets its "stopped" row from the story
  when you stop the turn, after the turn's end, as the adapter says it. A
  background helper works on.
- One wallet for both offices: the balance no longer jumps on a switch.
- `?hour=23.995` is 23:59 today, not midnight tomorrow.
- An agent started only for a resolve task has no worktree of its own
  afterwards. A task with no worker never goes to a 1:1 agent you hired or
  to an agent in a turn. A worker you stop as its task lands stays stopped.
- `docs-site`, a tab that opened nothing, is gone: the demo has two offices.
- Your re-run of a task's checks is recorded in the core's words.

docs/DEMO.md lists the two new parameters.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…t was shown

In a small window the stack folds and shows one toast. With an error at
the front (it stays until you close it), every later toast was put away
from its first frame while its time ran on: it went without ever being
seen, and only "+1 more" came and went.

- The toast store learns which toasts are put away (putAway). Such a
  toast does not count down. When it shows again (the stack unfolds,
  finds a free place, or the toast becomes the one at the front) it goes
  on with the time it had left, 1.2 s at least.
- The pointer leaving a toast does not start the time of one that is put
  away, and starts none for a toast that went.
- A toast that turns into an error no longer gets back the time it had
  left before: it stays.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s sheet is empty

Review fixes for the browser demo.

- `?resume=ask`: the plan's coordinator read its tasks once and then waited
  for your Resume, so a task you cancelled meanwhile was started from the old
  copy. It now reads each task again in every pass and after every wait, and
  starts only one that is still ready. The mock tests cancel after the
  coordinator has begun to wait, as a user does, and check that no cancelled
  task gets a worker.
- Stop an agent with work in the background: the sheet kept the rows as
  running. As in the core, the agent's run now ends with its process
  (`run_id` is cleared), so the sheet lists nothing of it; the next turn
  starts a new run, and the CLI says its MCP servers again. The demo's
  background lists follow the run, so the separate "gone" call is removed.
- A worker that Codly starts for a task gets a free name ("Eli 2", ...), as
  a hire does, so two agents never share a name. Names read the same way in
  every worktree path ("a4-eli-2").

docs/DEMO.md says what a stop of the agent does to the two sheet sections.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ore settings writers, and Java test runs

The approval rules decide which command lines ask you. This change reads
more of them as they run. Every change errs toward asking.

- Behind `uv run`, `poetry run`, `bundle exec` (and pipenv, pdm, hatch, rye,
  conda, mise): a word after `run` or `exec` that names a package manager, a
  program that publishes, git, gh or docker is read as the command the
  runner may start, with all its risks. The runners' own options are not
  read, so a word that only looks like a program asks once too often.
  `uv run pytest -q` and `poetry run python x.py` are read as before.
- "Always allow in this repo" treats a command that changes your own account
  or settings the same behind a package runner or one of the runners above
  as it treats the plain command: `pnpm exec git config …` offers no rule,
  as `git config …` offers none.
- More writes to a package manager's settings ask as "changes package
  manager settings": `bundle config set …`, `bundle config <name> <value>`,
  `composer config <key> <value>`, `composer global …`. Reads
  (`bundle config get`, `composer config --list`) do not.
- `yarn workspaces foreach [options] add|remove|up <pkg>` is read as that
  subcommand.
- `pnpm exec <tool> -c <file>` and `yarn exec <tool> -c <file>`: the tool's
  own `-c` is no longer read as "runs dynamic code". npm is unchanged: it
  reads the options of the whole line as its own, up to a `--`.
- `make test -j 8` offers the prefix `make test`. Beside the one target,
  `-j` with its count, `-k`, `-s` and their long names keep the prefix;
  `-C dir`, `-f file`, a variable and every other option give the exact
  command only.
- Gradle and Maven: `gradle test`, `gradle check`, `mvn test` and
  `mvn verify` alone, or with a short list of options that change nothing
  about what runs, are a test run in Balanced. Any other task or option
  asks, and so does a wrapper script (`./gradlew`), which is a file of the
  repo.
- Two comments name their recording: the same commands ask with and without
  the sandbox when auto-allow is off, and on a name clash the MCP server
  Codly gave the run is the one that runs.

Tests: a table for each form above. Three tests of the last round were run
20 times in a row and were seen to fail with their fix taken out: the hold
after an outside message through a restart, the broker with MCP tool
requests of two CLIs, and the link named like a CLI's folder.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ons that code still waited for

Eleven fixes waited for a fact about Claude Code that no recording showed.
Part 4 (docs/research/cli-claude-stream-json-2.1.311-part4.md) records them,
with 60 sanitized fixtures (r6-*) and the scripts that made them (r6_*.py).

What the recordings say, in short:
- An interrupt ends every helper, background ones too, with or without a
  turn running, and starts no turn. A foreground Bash call that had become
  a task gets a task_notification of its own.
- At shutdown an interrupt is enough for helpers. stop_task on a helper
  with no interrupt starts a turn that runs to its end after stdin close.
  stop_task works on a foreground helper and the turn goes on.
- A helper that fails says "failed"; so does a command whose shell is
  killed. An empty list does not mean that no process is left.
- effortLevel null as the first request gives "medium" on a process
  started with --effort high.
- set_model during an answer leaves that answer on the old model.
- A denied network host is asked about again; only an allow is kept.
- mcp_reconnect restarts a connected server. A killed stdio server is not
  shown anywhere; the next call starts it again.
- With --setting-sources user a repo's .mcp.json is not loaded, and the
  user's own servers are.
- A resume from another folder and a resume of a damaged transcript both
  start; the damaged one loses its tail without a word.
- A budget works mid-turn on a resumed process; after it every turn fails
  at once.
- A --mcp-config server wins over a user server of the same name.

Part 3, section 4, reported the driver's 0.2 s poll interval as a latency
of the CLI. Its builder now takes the time from the stream's own stamps
and the text says so. The helpers that the builders of parts 3 and 4
share moved to notes_lib.py; part 3 is otherwise byte for byte the same.

The sanitizer keeps the new test server name and replaces the name of the
user's output style (four recordings read the user's own settings, with
hooks off). It still reproduces the 53 part 3 fixtures byte for byte.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…d each fix round waits again

After a restart with "Never" (or an unanswered question), a hold that held no
task ended as soon as you paused the office: when you took the pause off, the
work started with no press on Resume work. And the 5 minutes that Codly waits
for a worker's background work were one budget for the whole run, so a test
run that the worker left open after a failed check was stopped at once.

Resume (orchestrator/resume.rs)
- A hold that is on ends by itself only when nothing could start: no held task
  is left, no running plan would go on and no task of no plan is ready, counted
  as if nothing were paused and no budget were reached. A hold that Codly
  closed on is kept the same way at the next start.
- Your Resume writes each task first and takes the hold out of the store last.
  When a write fails, the hold stays on (here and in the store), Resume work
  says so, and the next press ends it. A task you cancelled meanwhile is not a
  failed write.

Background work (orchestrator/background.rs, gate.rs, prompts.rs)
- The wait is one budget per round: it is whole again each time the gate sends
  the work back to the worker. Inside a round it is still one budget across
  turns. The worker's rule and docs/ARCHITECTURE.md say "each time you hand in
  your work".
- The record of a stop names the step that comes next: "asks the worker for
  its report" when the run gave none and was not asked before, else the checks.
- The comment about stop_task on a subagent follows the recording (part 3 §1).

Tests
- orchestrator_background: the budget test asserts the order of the records and
  the totals, with no tight time window; new tests for a second round, and for
  a stop after the report question.
- orchestrator_restart: a pause does not end the hold (also across a quit); the
  scheduler's own look ends a hold whose tasks you cancelled.
- orchestrator_resume: the worker's trust case is removed (it passed with and
  without the change it was written for: both starts are refused by the same
  trust check); a Lead keeps its conversation while your folder is not trusted.
- Unit tests: a round that starts, a hold whose end cannot be written, the
  activity look.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… need, and records the local settings case for project MCP servers

Two rows of "Can the waiting code be built now?" in part 4 said more than
the recordings and the code allow.

Row 1 (helpers and an interrupted turn) said the code must change. It does
not: the stream ends each helper itself with a task_notification that names
the helper's Agent call, before the turn's result (6 of 6 recordings with a
turn), and the adapter already ends a helper at that line. A
task_notification of a foreground Bash call names the Bash call and ends
nothing. The row now says so, the builder checks whose call each such line
names, and the open point is a turn that fails by itself.

Row 8 (your own MCP servers in an untrusted folder) said "yes" from one
logged-in run with --setting-sources user. The other form of that start,
user,local, was recorded only with no local settings file. Three new
recordings (r6_e8: user-local-file with the real login, user-local-file-home
twice with a throw-away HOME) add a .claude/settings.local.json that turns
the project's servers on. The project's server was not loaded in any of
them; in the two runs without a login the file's hooks ran, so the CLI did
read the file. The row is now "partly": it names what is recorded for each
form, that one logged-in run per form is thin for a safety switch, and what
is still not recorded (an approval kept in ~/.claude.json, a local-scope
server).

The new logged-in run cost 0.013 USD at list price; part 4 is now 63
recordings and 0.13 USD.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…alette has no bare "no" for a plan

The closed row gave what was asked up to 60 % of the row and your words
the rest. In a narrow column with a long command the rest was nothing:
the note or the answer was on record but only its tooltip showed it.
Your words now keep at least a quarter of the row.

The command palette still listed "Deny <agent>" for a Claude agent's
plan. That is the answer without a note that the card and the keyboard
no longer offer, because Claude Code then shows the same plan again.
For a plan the row now reads "Send <agent>'s plan back with a note…":
it goes to the request's card and opens its note field. Every other
request is denied from the palette as before, after its confirmation.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…erver turns off and on

Part 3 of the Claude Code 2.1.311 recordings answered questions this code waited for.

Watchdog. A Claude run with a tool call open had 60 minutes of silence before it was
flagged, although Claude Code says every 30 s that a call still runs. That heartbeat is
recorded for a command, a tool of an MCP server and the call that waits for a helper. A
Claude run whose own open calls are all of these kinds now keeps the plain limit
(10 minutes). Any other open tool, a helper that works alone in the background and every
other CLI keep the long limit. The Settings text says so.

MCP servers. "Turn off" on a connected server and "Turn on" on a switched-off one, in
the agent sheet (new command set_agent_mcp_enabled, Claude Code's mcp_toggle). It is for
this run of the agent, on record as your act, and refused for Codly's own server. The
adapter asks where the servers stand after the answer, as after a reconnect.

Folder trust. A Claude run that starts without the folder's own Claude Code configuration
because you have not trusted the files now says so, once per run. Settings says that a
choice counts from an agent's next run on.

Adapters.
- A second answer with the id of `initialize` no longer starts a run while the sandbox
  check still waits for its own answer.
- A start refused because Claude Code's sandbox is not on blocks the task at once, with
  the reason, in place of two waits first.
- Codex: a server that takes no more lines is asked nothing after the first request of a
  stop that fails. One error row, and the run ends at once.
- A subagent that was stopped no longer shows its description as its report.
- "Stop" in the agent sheet is on record with what it stopped.
- Tests replay the r5 recordings: the stop as one run, the stop of a background helper,
  a background command that fails, a model switch during a turn, an undated model name,
  the heartbeat of an MCP tool and of an Agent call, reconnect and toggle. The comments
  name the recordings they rest on.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… pages are

DEMO.md checked against src/lib/mock.ts and src/lib/demo: every parameter it lists is read, and
the demo reads none it leaves out. Cy's saved-rule command, Bo's delete, Ada's question before
she stops her type check and `?skip=0` are now said as the script does them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…uild

The lines Codly hands to `security -i` (inbound secrets, connection keys)
and the `caffeinate` arguments are now small pure functions, so the Linux
CI tests what only ran on a Mac before. No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The README grew in small pieces over five rounds. It now goes in order: what Codly is, install,
first run, the main flow (ask, plan, run, approve, review, merge, undo), long runs, safety, each
CLI and what was really checked with it, the settings with their real defaults, shortcuts,
`codly serve`, troubleshooting and the known gaps.

Fixed on the way: Settings paths (Accounts and API keys are in Team, Storage in General,
webhooks in Automation), the install button ("Install for me"), the Gemini and Cursor commands,
the Codex sandbox (a command can ask to leave it; with network on a push needs no request),
Full access also asks for a plan an agent shows you, the exact `.env` files copied into a
worktree, and `--host` needs `--allow-remote`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ort's skills and the machine's own hooks out of a fixture

sanitize.py now replaces the machine's network name, empties the skill and
plugin-agent lists of a get_context_usage answer, and drops the output of
SessionStart hooks (the scenarios configure none, so those are the
recording machine's). test_sanitize.py covers these rules and the init-line
lists; run it with `python3 -m unittest test_sanitize`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
These were ignored only by one machine's own exclude files, so a fresh
clone could commit them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… again

The wait for what a worker leaves running is one budget per round, and a
round began only where the gate sends the work back (a failed check, a
file outside the scope, a reviewer's request, a merge conflict). Comments
you send back from the diff reach the worker the same way and even hand
out new fix rounds, but they kept the old round's budget: after a first
round that used the 5 minutes, a test run the worker left open after your
comments was stopped at once, and the worker never saw its result. The
worker's rules say "each time you hand in your work, it waits up to 5
minutes".

send_back_task now starts a round before it sends your comments to a
worker that still runs the task, as the gate does. The docs name this
caller too.

Test: a_round_that_your_send_back_starts_waits_again_for_background_work
(the second wait is the whole budget, not what the first one left).
Without the call it fails with "stops them after 28 s" in place of 30 s.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…approval flow

Section 9 said the repo has no CI; it now names the Linux and macOS jobs and the release
workflow, and says what was recorded without a live run (Claude Code 2.1.311, Codex parts from
the 0.166.0 protocol types). Section 3 gains the approval flow as the code runs it. Fixed: the
broker bullet said Full access approves changes to an agent's own CLI settings (it asks), the
Full access floors and the saved-rule limits now name a plan shown to you and a command that
loses work in your checkout, slots are per account, the research count, the store migrations
(m2…m6) and the adapter files the code map left out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s only the run it is for

Have an agent resolve it / fix it (the last merge, into your branch):
- Codly now writes a start down before it brings your branch into the plan's
  branch. If Codly is closed in the middle, the plan's next pass, merge or
  resolution finds that record and puts the plan's branch back first, so the
  next Merge runs the plan's checks on the result. A task that never started is
  cancelled. The record says what happened.
- When a start fails, the error now says one of three things as it is: the
  merge could not be taken back (with the git command), it was taken back but
  that could not be written down, or both worked. Before, a store error after
  the branch was already back was reported as a merge that may still be there.
- A cancelled plan gets the plain refusal ("resolve the conflict yourself" or
  "fix the checks yourself") also when what is left to do cannot be read (git
  or the store fails): then it is called a conflict, and the error goes to the
  log.
- A new file that was in the plan's worktree before a resolve or fix-checks
  task started (a check's output, what setup left) is on no branch. The gate's
  commit of that task now leaves it out, with what is under such a folder, and
  the task's record names it. The task's own new files are committed as
  before. Both briefs say so. `Git::commit_work_without` is the commit with
  that list.

Checkpoints:
- The note about restored files also says what it was written for: a task, or
  the agent's 1:1 conversation. Only a prompt for the same reads it. A note
  for a task that ended without reading it is dropped, not shown to a later
  task that works in the same path. A note under the key of before notes were
  kept by worktree is dropped at the agent's next prompt.

Checks:
- The record says "re-ran the checks" only when the pass began. When the
  task's team member is on other work in the same worktree, it says who wanted
  the re-run ("you asked to re-run ..." / "Codly wanted to re-run ...") and
  that the task goes back to the member first.
- The reason of a task that waits for your required checks always ends with
  what you can do: a long cause is the part that is cut.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…for keys

gitleaks' generic-api-key rule matched every "api_message_id":"msg_…" in the
recorded CLI output (66 of the 69 hits over the full history). The repo config
keeps the default rules and allows only that field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…machine or its owner's tools

The recordings made before sanitize.py existed (docs/research/fixtures/*.jsonl
and the two adapter testdata files) kept a home folder, the machine's network
name, a private repository path, the full lists of skills, plugins and plugin
agents of the recording machine, and the text of one of its SessionStart
hooks. They now use /tmp/scratch and /Users/me, the lists are shortened as
sanitize.py does (only clear/compact/context and general-purpose stay; opencode
keeps init and review), and the hook text is a placeholder. claude-tool.jsonl's
API message ids are msg-N, as sanitize.py writes them. Session, tool and
request ids and timings are unchanged.

The research notes and the Rust tests that quote those paths use the same
placeholders; the keychain-name test hashes a placeholder config folder. The
BYOK examples name a generic `get-token` command, and the voice relay says
"a remote host".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Start an agent with <CLI>" in the palette, and "Quick start" on the
wizard's first step, start an agent with the CLI's defaults and a free
name, and put the caret in its composer. The wizard's own Start agent
also leaves the keyboard in the composer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In a 1:1 with a Claude agent, shift+Tab cycles ask for edits, accept
edits and plan first with the sheet's own call (accept edits is skipped
under Ask first, where the core refuses it). The mode chip shows
accept edits too. Listed in the shortcuts sheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The agent pill, the 1:1 header, the agent sheet and the thread's task
row show a Retry button beside "Retry to resume"; it does what the
task sheet's Retry does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/model opens with every model in view, the current one marked and the
field empty and focused; arrows move, Enter switches to the highlighted
one. A refused or empty answer shows "Could not switch: <reason>" in
the dialog. The demo answers set_agent_model as the core does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a file

Drafts lived only in memory, so a reload or a restart lost them. A long
paste filled the field. Esc Esc read only the text, so it could open "Undo
a turn" over a draft made only of files. Backspace could leave a 1:1 chat
while you were still clearing it.

- Drafts: a copy is kept in the browser's storage per office and thread
  (text, and the files whose upload ended; at most 100,000 characters and
  50 drafts, the oldest goes first). It is removed when the message is
  sent, when the text is emptied, and when the request is closed.
- A paste over 8,000 characters or 150 lines is attached as pasted-<n>.txt.
  Its chip says "Pasted text · N lines" and offers "Paste as text instead".
- Esc Esc treats attached files as a draft. Over a draft, the composer now
  says "Undo a turn opens when the message field is empty".
- Backspace leaves a 1:1 chat only when the field was already empty, the
  press is not a repeat, and the field has not changed for 600 ms.
- "/ model" is treated as a typo of /model: it is not sent, and the menu
  offers only that action. A path like "/usr/bin/env" is sent as written.
- The "@" menu says "The file list is still being read" while the list is
  empty or still loading.
- Palette: the hint mentions conversations and names the Lead only on a
  request. Found messages stay when the closed requests' names cannot be
  read. Agents in closed requests are named from the transcript. The
  question of "Ask the Lead" stays while it waits for the second Enter.
- Find bar: a message picked in the palette is now the current match, and
  it is brought back into view after the conversation settles. A changed
  search text stops the bar from seeking, so the thread no longer jumps.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ys out of memory

A browser tab of `codly serve` whose terminal fell 8,192 chunks behind the
output had its stream ended by Codly, and the page never attached again: the
terminal showed nothing more until a reload. The page now attaches again a
second later, from a clean screen, and the terminal's scrollback brings it
back; a terminal that is gone answers 404, and that ends it.

The names and task keys for the knowledge graph were taken out of memory when
an agent was let go or a task ended, but the next event that named them (the
run's last events come after the end) read them back in. Only rows still at
work are kept now: a let-go agent, a done or cancelled task and a task of a
closed plan are read from the store each time. The tests send such an event
after the end and check that nothing is left.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… dialog keeps the keyboard, every button has a name

The agent sheet walked the whole event log on every event of any agent (History) or of its
agent (facts, MCP line, compaction line), also while the part that shows it was closed. That
work now runs only while its part is open, and again only when an event of that agent came
(src/sheet/agentLog.ts, keyed on the store's per-agent version).

The sheet also says more of what it means:
- "Needs you" says when the keys answer another agent's older request first.
- "Needs you" comes back into view after a layout change, as the thread's card does.
- A helper row without Stop says why in text, also for a helper its agent waits for.
- "Give it back" shows whenever the agent is in your terminal, not only with a live run.
- One word for ending the process ("Kill"); "Stopped" is since the stop.
- History drops "Status -> waiting approval" rows; durations read "1 s", never "1.0 s".
- MCP sign-in steps name /mcp; the Stop hints follow part 6 section 5 (a helper may be told
  in a turn of its own right after the running one; a stopped command starts no turn); the
  cost budget sentence says a request on its way is finished first (part 6 section 6).

Keyboard and names: the onboarding and the IDE overlay use the shared modal action (Tab stays
inside, focus comes back); a menu closed by a press outside gives the focus back to its
button; a "Skip to the conversation" link is the window's first Tab stop; the shortcuts sheet
lists G S, the arrows and Enter of lists, pinned by a test that reads the key handler; the
named fields get labels, and a guard test checks every button of the app has a name.

Demo: under ?trust=ask the Lead's run started before your answer said nothing; like the core,
a run in a folder you have not trusted now says it started without the folder's configuration.
The neighbourhood's walkers stand with Reduce Motion. First run: the crew and mission levels
say what Continue and "Open a repository" do with no agent ready.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
What was wrong: after a merge refused for its checks, "Merge into" stayed a main
button and each press added one more equal toast; "An agent is fixing the checks"
stayed after the task was done. A turn that failed before it answered read
"Thought it through". A failed start because a CLI was not signed in offered no
way to sign in, and a turn you stopped had no way to go on. A request tab's dot
ignored finished tasks and troubles, and a closed request could be stamped back
into the last-seen map. Pull request checks were read by a timer in every
mounted row. The away summary said "ready to merge" for every unmerged plan,
said nothing of a plan waiting for your go, and sat above the view. A stop made
with Esc Esc and a request a rule of yours answered were put down to the CLI and
to Codly's rules. In the demo a Codex deny note and a saved rule were lost.

What changes:
- mergeBlock: while a conflict or checks stand in the way, the way out is the
  one main button; one refusal toast per plan, its body a sentence; the
  "an agent is on it" toast goes when its task is over; NextRow offers the merge
  at the thread's end while nothing stands in its way.
- WorkRow: "Was thinking when the turn ended" for a cut turn (turnEnd.ts).
- TroubleRow: "Sign in…" opens the first-run sign-in terminal with a command
  Codly knows for that CLI; "Continue" after a turn you stopped (actions.ts).
- RequestTabs: finished tasks and Lead troubles light the dot; lastSeen refuses
  a request that is no longer a tab.
- Pull requests: one timer per pull request, only while a row is in view, none
  after a merge made here (readsByItself, readWhileShown).
- Away: words by plan state, a waiting plan first, a chip to the summary when it
  is out of view (awayShown.svelte.ts).
- Outcomes: Esc stops count as yours (stops.ts yourStops); "Approved by your
  rule: …"; the unused plan-changed branch of settledWord goes.
- Demo: the deny note of another CLI becomes a message and is on record; rule
  decisions carry the core's details. The rule toast is an attention toast.
- Closed requests: no "No closed requests." while a close waits for Undo.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
What was wrong: in "Undo a turn" Tab left the list for the composer, where
Esc no longer closed it and Enter sent a message under it. After Tab onto
another row, Enter acted on the row the arrows had chosen, not the one with
the focus. A click could not confirm. The list did not say when its turns
were of a task's worktree, nor which files were too big to keep. Three fast
Esc presses closed the list and opened it again.

What changes:
- The list is a modal layer: Tab stays inside, Esc closes one level from
  anywhere in it, and the focus goes back to the composer.
- The keys and the focus are on one row: Tab, a press or the arrows move
  both, and Enter acts on the row that has the focus.
- The confirm line has "Put back" and "Cancel" buttons.
- The head says "Turns of task <key>, in its worktree" for a 1:1 agent on
  a task, and a line names the files too big to keep.
- The composer sends nothing while the list is open.
- The Esc right after the one that closed the list only leaves the
  composer: it begins no new pair.
- Last turn and Checkpoints show why a button is off (aria-disabled with
  its tip), and the whole Git tab reads again after a put-back.
- Demo: the checkpoints are the agent's own turns from the log, the counts
  of the other points follow a restore, and a restore leaves a row in the
  agent's conversation and in History, as the core does.
- Toasts: while the page is out of view no toast counts down, and a toast
  that goes leaves at once instead of waiting on a fade.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… failed send leaves nothing behind

When Send back on a finished plan failed after its task was added, the task
was cancelled but the record of where the plan stood stayed. A later merge or
send back then took back "the review changes": it removed new files from the
plan's worktree and said that changes which never ran were not finished. The
task is now cancelled and its record removed in one store write.

The task went to the agent of a task whose diff named the file, and a task
that had a conflict round has the other tasks' files in its diff through the
merge. Codly now counts only each task's own commits.

The words about the review task say "review", not "conflict": Cancel plan,
the gate's no-review line, and the Changes bar, which now says before the
press when a plan with a pull request opens a new request, and names the
writer only while it is on the team. Each review task is titled by its first
comment's file and words, and its brief starts with your comments. The demo
follows the core: its done-task refusal, an offline author, the title.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…t is handled right

- Find bar: a reply of the conversation's own agent is found by the
  message it shows (say:<item id>), not only by its chat id, so a hit
  picked in the palette is the current match for agents' replies too.
  A second hit picked with the same text in the same conversation now
  searches at once, instead of moving the thread later by itself.
- Drafts: a closed request's draft is forgotten for good, so the
  composer leaving that thread cannot write it back. A new request that
  was never sent is a tab again after a restart, with its text.
- Backspace in a 1:1 chat counts each key press as activity: taps at a
  hand's pace past the end of a draft no longer leave the chat.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…after a snapshot, the keys line points at the right buttons

- The dialog Tab trap moved the focus out of the IDE editor when the editor was the last Tab
  stop, after the editor had already used the key to indent. A key that a field inside the
  dialog used (defaultPrevented) is now left alone (modal.ts `tabWrap`, tested).
- The sheet's log work was keyed on the agent's per-agent count, which a snapshot starts at 0
  again: after a snapshot that brought missed events, History, its facts, the MCP line and the
  compaction line kept their old value. The key now holds the store's snapshot count too.
- "Use the buttons here" was also shown when the sheet shows no card, only where it is: it now
  says "Use the buttons on its card in the conversation." there.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The list now puts the focus on a row button. A repeated Enter keydown
from the key that opened the list was let through unprevented, so the
browser clicked the focused row (or "Put back") on its own. Repeated
Enter keydowns inside the list are now prevented and stopped.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ne merge at a time

- The summary of your time away registered again on every new row, so the
  chip to it blinked. It now registers once per row; a new time away only
  updates the minutes.
- The away row read where a plan stands without tracking, so a conflict or
  failed checks that the core reported after the row was built still read
  "ready to merge". It is now tracked (one line in Conversation.svelte) and
  planEnd has its own test.
- A plan's merge can take minutes: a second press (card, chip at the
  thread's end, palette) started a second merge. mergePlan now runs one
  merge per plan at a time, the card is busy while it runs, and the chip
  hides. The chip is a plain button, so the card keeps the main button.
- The rule for which Lead trouble lights a request tab's dot moved into a
  pure, tested function (leadTroubles). It follows the thread's trouble
  rows over the whole log, and a turn you stopped (by button or Esc) or
  killed is not news.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…twice

What was wrong: a number key could pick an option scrolled out of a
question card's body (or of a later question you had not seen), and the
send key then sent it. A second click on the same spot right after an
answer reached the next card, which had slid into place under the
pointer. A second Cmd+Enter right after an answer could start a plan, and
Cmd+Enter ran a plan whose "Run plan" button was off screen.

What changes:
- On a question card, "what it asks" is the question the digits belong
  to. A digit acts only while that question's text and the option it
  picks are in view inside the card's body, uncovered and still; the send
  key only while every question and every picked option are (when the
  body scrolls or there are several questions). A press before scrolls
  the body to them. Their keycaps show only then.
- The rest after an answer (600 ms) now covers every key, the plan key
  included, and clicks: after any answer, by key or by click, and while a
  card's buttons have just come to their place, a click does nothing and
  the buttons look at rest.
- Cmd+Enter runs a plan only while its "Run plan" button is in view,
  uncovered and still; before, the press brings the button into view. Its
  keycap shows only then, and never while a request card holds the keys.
- A key press that does nothing says why at the card for a moment.
- Bringing a card into view shows it from its title to its buttons inside
  the thread's view, and does not move it again when it is there.
- The keycaps are drawn at full strength (4.5:1 or more in both themes).
- Demo: ?approval=questions-two, two questions of six options each.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The send-back wrote its record of where the plan stood, the new task, the
task's base commit, the decision, Codly's line and the plan's Running status
as separate store writes, and only cleaned up after a failure of the line.
A failure at another step, or a store that also refused the cleanup, left
the record behind for a later pass to act on.

All these writes are now one store transaction, published after the
commit, so a failed send-back leaves no task, no record and a plan that is
done as it was. The separate cancel step is gone. Tests refuse the line
and the task's own event. A frontend test covers Send back on a finished
plan with an open, merged or closed pull request on record.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A long thread paid for its whole history on each event: the three readers
of the event log (troubles, CLI notices, what you did) walked the full log
on every build, every streamed word marked each row of the thread for a
check, the text of a stream was rebuilt per word, a long unfinished list
was parsed again on each word, and each scroll event read the top of every
row.

Now the log is read once per thread and then only from where the last
build stopped (a full read when it is trimmed, replaced or has another
agent); a new word no longer reaches the list of rows (openRevBy); the
words of one batch are joined once; a tail over 4,000 characters renders
at most every 100 ms and its last state always renders; a scroll counts
the rows below at most once per frame from kept row tops; the waiting
messages follow the clock only while one waits; the agent's history held
for "Load earlier" is capped at 20,000 events; decisions are pushed in
place and task marks are inserted without a sort.

Also in the thread: Retry's copy of your message is one "Sent again" line,
and a 1:1 thread whose last turn failed has Retry in its head; quiet lines
show code, bold and curly quotes as text; rows of what you did fold only
with neighbours of the same kind; PageDown, Space, Home and End scroll the
thread with the focus on the page; sending no longer moves a waiting card
in view; the wheel at the end of a card body that keeps the wheel moves
the thread; the away summary sees a plan you merged.

`?long=N` in the demo makes a 1:1 agent with N turns behind it stream a
long answer, and times each batch the page takes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
# Conflicts:
#	crates/codly-core/tests/orchestrator_review_back.rs
# Conflicts:
#	src/lib/__tests__/mockTransport.test.ts
…ment

# Conflicts:
#	src/home/Composer.svelte
…y what is true

Four fixes after review of the previous commit:
- A card brought into view shows whole when it fits its scroller's view
  (its padding and the "Always allow" line under its buttons), else from
  its title to its buttons as before.
- Cmd+Enter on a question card with nothing to send no longer rests the
  cards' buttons and keys: the card notes an answer only when one goes.
- A new watch of the "Run plan" button starts with its keycap hidden, so
  the keycap of a plan shown before cannot stay on screen.
- A question's text clipped by the card's own body is reported as out of
  view ("Scroll to see the whole request"), not as covered; the send key
  shows no hint while there is no answer yet. What the keys do is unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A message you send while the agent works shows as queued at once again:
the list of waiting messages now follows the rows you sent. A live model
switch in a 1:1 showed two sentences (Codly's line and a quiet row for the
same change): the quiet row is left out when Codly's line says it. The page
keys no longer scroll the thread behind an open dialog, and a held key
moves at once. The wheel listener of the thread is passive, so the browser
never waits for the page before it scrolls; its choice is a pure function
with tests. The kept reads of the event log drop a log that was trimmed or
replaced, so no thread keeps an old log alive. The cost test says it counts
log rows, and builds a cheaper office.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
# Conflicts:
#	src/home/cards/ApprovalCard.svelte
…oth facts

The test read the task's status and then looked for the file the check
writes. On a slow machine the status could be the one from before the
check began, and the test failed (the last CI run on main). It now waits
until one snapshot shows the check running and the status Verifying.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@julienwuthrich-anthropic
julienwuthrich-anthropic merged commit bc291b3 into main Nov 24, 2026
2 checks passed
jwuthri-cloud added a commit that referenced this pull request Nov 29, 2026
Continuous improvement, rounds 6 to 9: keys, undo, review, speed
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.

1 participant