Repository navigation
Speak the panel's lines in the agent's voice, with Leaf's own words in italic - #4325
Merged
Merged
Conversation
The empty comment field is the panel's one line of words. A survey of what it says found one notice that repeated the status, and wording that broke the line's own grammar. Behavior changes: - No notice when an agent becomes available. "Claude active on this page" stood for four seconds in front of the status naming the same work, and page-status.js already announces a change of status, so screen readers heard it twice. The availability episode counter goes with it. - A new message holding something the user owes reads "Claude asked" rather than "Claude replied; Input needed". - New On me items read "New on me" / "2 new on me". "2 waiting on me" counted only the new ones but read as the total beside the On me mark. - News clauses join with " · ", as every other fact on the line does. - All pages rows name the agent's silences as the status does: "Turn ended 5m ago" and "Last checked in 20m ago", not "Left (5m ago)" and "Quiet (20m ago)". - "Reply…" is "Reply", as the thread's line says elsewhere, and the annotations notice uses the line's dash: "Annotations hidden — o shows them". How it works gains "What the panel's line says" in the Progress tab: the readings in order, an open thread's line, and the dot-and-dash grammar. Notices moves beside Status readings, drops the availability row and adds gesture acknowledgements. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # dist/kernel/kernel.json
# Conflicts: # dist/kernel/kernel.json # dist/kernel/runtime/bundle-context.js # dist/kernel/runtime/bundle-page-layout.js
The maintainer asked that Leaf's words feel personal rather than like a machine sending things to a server. The glossary's reader-facing words now say so: visible copy speaks of the user, the agent and the page, and names the machinery only where the user must act on it. Behavior changes, all in visible or announced words: - A widget gesture's acknowledgement drops "— sent": "Moved to Done", "Undid: Moved to Done". - Each message announces "Message added", not "Message sent"; a reply that pauses the goal says "Replied — goal paused". - A reply waiting on its comment: "Reply kept — it comes back once its comment is saved". - Loading reads "Loading comments and choices…", and its explanation no longer mentions the server responding. - Leaf updating under a page: "Waiting for Leaf to finish updating." - A page with no check-in: "Claude hasn't checked in". - lf-draft mid-save: "Wait for the current edit to finish saving". Left as they are: the delivery stages (Sending, Sent, Queued, Delivered) and the failure and stall words, which come from Leaf's own concepts and are put to the maintainer separately, and the lines that ask the user to act on the machinery (server offline, key refused). Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # dist/kernel/kernel.json
…t travels The maintainer chose two of the survey's wording questions: - A wait in the agent's own window reads "Claude waiting for approval in the terminal" (likewise for input and for the user), on the status and its All pages row, since nothing on the page answers it. The explanation's "It waits in its own session, not on this page." goes, as the line now says it. "Nudge Claude in terminal" gains its "the". - A listening agent always reads "Claude awaits — select text to comment", and its row "Awaits". "Claude listening", shown while an update was still on its way, went: the update's own label says so, and the explanation and the row still count it. The `listening` fact goes with it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The maintainer turned down "Waiting for Claude" as a label: the agent
should be speaking, not a narrator describing it. The glossary's
reader-facing words now say so: a label that speaks for the agent's side,
such as where the agent stands with the user's update, says what the
agent would say ("Got it"), not what an onlooker reports.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The maintainer asked that words not in the agent's voice take a different presentation, and that the distinction be written down. The glossary's reader-facing words now name three speakers: the user (their own acts and turn), the agent (what it says), and Leaf (what Leaf observes or needs about the connection, the page or the agent's session). Leaf's words never take the agent's presentation; a line that can't be put in the agent's voice is Leaf's. Which presentation Leaf's words take is still open. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The maintainer asked for every line about the agent's side to be the
agent speaking rather than a narrator describing it, and picked new
progress labels. The glossary's reader-facing words now give every line
one speaker: the user, the agent (under its name, as a chat line), or
Leaf. Behavior changes, in visible and announced words:
- An update's progress labels: Sending, Sent, Queued, Delivered,
Working become Saving…, Saved, Up next, Got it, On it.
- A thread waiting on the user: "My turn to answer" becomes "Your
turn", and an update to send again "Send it again" / "Try it again".
"Me" and "my" now always mean the user.
- The status while the agent works: "Claude working — running the
suite" becomes "Claude: running the suite"; with no sentence yet,
"Claude: Got your comment", or "Claude: Thinking". A wait in the
terminal leads the sentence it interrupts: "Claude: Need your input in
the terminal — Writing the page". Taking comments: "Claude: Ready —
select text to comment".
- One new agent message's notice is its opening words under the agent's
name ("Claude: I changed the route."), not "Claude replied".
- On <agent>: "Up next" replaces "Queued", and the summary reads
"Claude: Working on 1; 1 up next."
- All pages rows give the agent's sentence alone, and "Ready" for
"Awaits"; the Claude Code band follows them.
- A finished update in a Done list reads "Answered", not "Sent".
Leaf's own lines (away, turn ended, failures, the connection) are
unchanged until the maintainer picks how they look apart from the
agent's.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # dist/kernel/kernel.json
The maintainer asked that every line read as the agent speaking, with no "Claude:" prefix, including the lines Leaf composes from what it observes, which are its best guess at what the agent would say. The glossary's reader-facing words now name one voice, the agent's, and drop the separate presentation for Leaf's own words. Behavior changes: - The status drops the name: "running the suite", "5m ago · running the suite", "Got your comment", "Ready — select text to comment", "Need your input in the terminal — Writing the page". - Leaf's former lines speak as the agent: "Away", "Stopped 3m ago", "Last checked in 20m ago", "Haven't checked in yet", "Not answering — nudge the terminal", "Not on this page right now", "Done with this page", "Lost the connection — reconnecting", "This tab lost access — open the link again", "Hit a problem — trying again", "Couldn't show the latest — reload". - Stall labels: "Stopped", "Gone quiet", "Haven't seen it yet", "Couldn't answer"; the failure reply's mark now reads its label from workflow.js rather than keeping its own "Not answered". - A new message's notice is its opening words alone, "Edited: …" for an edit; failures read "Couldn't answer" and "Interrupted mid-answer". - Delivery retries read "Not through yet — trying again…", and a refusal "Couldn't take this — …". - On <agent>'s summary drops the name: "Working on 1; 1 up next." Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # .claude/skills/developing-leaf/references/glossary.md # browser/runtime/undo.js # dist/kernel/kernel.json
The maintainer asked that a line not from the agent, such as "Not answering — nudge the terminal", take a different face, so it reads as not the agent speaking. The page status now carries a `voice`: `leaf` for Leaf's own state (lost connection, lost access, a server error, a state it can't show, loading, connecting) and for the nudge, `agent` for every other wording. The floating panel marks the first with `data-voice` and sets that status in italic, as a script sets a stage direction apart from the lines. The glossary's reader-facing words say so. Co-Authored-By: Claude Opus 5.5 <[email protected]>
leaf-agent
reviewed
Oct 27, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
Two regressions remain in the status surfaces: All pages hides terminal waits when a progress sentence exists, and access/state errors miss the new Leaf voice styling.
Review of #4325 found two places the voice change missed. An All pages row for a working page with a progress sentence dropped a terminal wait, so a blocked neighbour read as busy; the row now leads with the wait as the status does ("Need your approval in the terminal — Writing the page"). And a refused key or unappliable state shows in the field's error seat, which the italic rule didn't reach. The field's reading now carries its own voice, `leaf` for an error and for a status Leaf speaks, and the field (not the panel) is marked with it, so the face follows whichever reading the field is showing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # dist/kernel/kernel.json
leaf-agent
previously approved these changes
Oct 27, 2026
# Conflicts: # browser/runtime/application.js # browser/runtime/notifications.js # browser/runtime/undo.js # dist/kernel/kernel.json # dist/kernel/runtime/bundle-page-layout.js # tests/browser/projection/test_current_location.py # tests/browser/test_render_pages.py # tests/browser/test_render_semantic_news.py # tests/browser/threads/test_panel_list.py # tests/journeys/test_render_controls.py # tests/journeys/test_render_projection.py
leaf-agent
approved these changes
Oct 27, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 27, 2026
The panel's status and the All pages list show an agent's working line
(the `--text` of `leaf task start` or of an ephemeral reply), and the
user reads it at a glance. Of 1,413 such lines on the maintainer's pages
over the last two weeks (rough regex counts), 29% ran past 80
characters, about 7% carried commit hashes or CI mechanics ("Waiting for
current-head CI and review on #17 ddc2cc5c"), and about 5% were to-do
titles in the imperative ("Delete the width eval case"), which read as
asking the user to do it.
`skills/leaf/references/conversation-loop.md`, "When to write", now says
who reads the line and where, and asks for a few of the user's words:
not a to-do's title, and no commit hashes, ids or CI mechanics. Both
references also drop "under your name", since the panel no longer puts
the agent's name in front of its line (#4325).
## Score
`evals/work-names-its-item` gains a to-do with an imperative title, a CI
wait on a named commit and run, and a `line-reads-at-a-glance` metric.
| | before | after |
|---|---|---|
| `line-reads-at-a-glance`, Claude Code | 0/3 | 3/3 |
| `line-reads-at-a-glance`, Codex | 0/3 | 3/3 |
| `judgment` (existing), both harnesses | 6/6 | 6/6 |
Before the rule, every run named the CI run number or the commit hash
while waiting ("Waiting on CI run 18233 for PR #812 (head 9c41d2ab)"),
and Codex's lines ran to about 80 characters. After it, they read
"waiting for the rollout fix to pass its checks". Neither arm copied the
to-do's imperative title, so the eval doesn't measure that clause; the
evidence for it is the page survey.
> _This was written by Claude Code on behalf of max-sixty_
Co-authored-by: Claude Opus 5.5 <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 27, 2026
The panel tests still expected the narrator-style working and offline wording replaced by #4325, and a draft-edit notice in the field even though #4323 moved widget acknowledgements to the live region. Match the working detail and connection message, and check the draft's named live announcement at its current surface. No product behavior changes. The three affected browser cases pass locally (3 passed in 9.85s). They retain the checks for saving exactly one edit, discarding, focus transitions, working sheen and reduced motion, and commenting from the panel before the first log arrives. The reported CI run fails at the replaced assertions; the preceding run 40444131163 passed them. Closes #4342 — automated triage Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 28, 2026
Remove the runtime exports left behind when their callers moved: `submitLabel` after #4270 gave each field its own send label, `agentLabel` after #4325 removed the named-agent notice, and the external `liftReach` API after #4379 moved shadow measurement inside box motion. Keep the shadow helper private and delete the two unused label helpers, preserving those changes' behavior. The same audit on current main also finds `quietWord`, `ICONS`, and the `icons.js` re-export of `showAction`. Keep the first two private and remove the redundant re-export; `showAction` remains exported by its owning module for its real caller. Rebuilt the kernel: only its source hashes change; the compiled JavaScript is byte-for-byte unchanged. Validation: the existing export audit failed before the change with all six names. After the change the audit and the shipped-page browser render gate both pass (2 tests). The browser build and all 695 runtime tests also pass. Closes #4461 — automated triage Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 31, 2026
… state fails (#4807) Fifteen `leaf-dev stills` catalogue states failed to capture on every run, base and head alike, so no stills comparison covered them, and nothing said so: the command printed a `failed` line per state and exited 0. They surfaced while comparing a cascade change across the full catalogue (#4805). ### The command now fails when a state does `leaf-dev stills` writes its whole report as before, `faces.txt` included, then exits 1 if any state failed. Its module header states the rule, and `test_stills.py`'s failed-driver and failed-analysis tests expect it. ### Thirteen drivers followed a UI that has since moved - **plan-option-picked, plan-option-card-picked:** an admitted pick is announced as "Chose “…”" since #4325, without the "— sent" the driver waited for. - **share-link, share-link-dark:** since #4291 a refused copy of the page's link opens About this page, where the link is read-only text, rather than a field under the menu's About group. The driver waits for the dialog's source reading, as page-about does, and the state frames the dialog's Page details. - **diff-filter, diff-filter-phone-dark:** #4323 dropped the file filter from a one-file diff, which `#pr-key-hunk` is; the states filter the walkthrough's 46-file `#pr-exact-patch`. - **worktree-summaries (three variants):** since #4724 `lf-worktree` slots its authored evidence into a shadow disclosure, and the evidence's own `<details>` also matched the driver's selector. It presses the widget's `.lf-worktree-summary`. - **plan-capture (four variants):** area capture opens with no rectangle until a drag draws one (#3814); `capture_menu` waits for the Capture area region, as the suite's `open_capture_area` does. ### The contents map has a page again #4724 moved the feature gallery's contents out of its sidebar into the reading flow, where it is a folded "On this page" disclosure, so no example drew the margin map: contents-over-reading failed, and contents-spine and four more states captured the disclosure instead. `tests/fixtures/pages/sidebar-contents.html` is a runbook laid out as the site's docs pages are (`.layout-sidebar` with the contents in `aside > .layout-track` beside a `.layout-column`), and all eight contents states read it. As a fixture page it also joins the corpus, which had no page drawing the map. The gallery's sentence about the map's rings goes, since its folded disclosure draws none. ### Checks - The 13 repaired states, the eight contents states and topic-contents captured on two consecutive runs; each new capture was read by eye (the filter at "0 of 46", the capture area mid-drag, the closed worktree row, the picked option, the focused link, the map at rest and revealed over the column). - `dev/tests/model/test_stills.py` passes, and fails with the new exit removed. The fixture passes `leaf page check --render` with no findings. The gallery's topic-contents sample still says its Full view draws the map, which it doesn't since #4724; that is left for its own change. > _This was written by Claude Code on behalf of max-sixty_
max-sixty
added a commit
that referenced
this pull request
Nov 18, 2026
…e tools and ten tests they caught (#6412) Nothing in CI ran `dev/tests`, so main commits broke those tests without anyone seeing (#6374 fixed ten of them). This adds every developer-tool test, the Python and the Node ones, to the daily scheduled run, after the product suite, where a failure reaches Tend like any other failure on main. Pull requests, pushes to main and landing gates still don't run them. On the Ubuntu runner they took 8 minutes 43 seconds (235 passed, and the one macOS-only test skipped). Three of the 13 other failures were tools that had stopped working: - `leaf-dev preview` kept serving the runtime and layer its process first read, so an edit to `browser/leaf.js`, `browser/base.css` or a bundled package reached neither an open tab nor a fresh one. It also decided when to restart from its own copy of the runtime's identity, which had lost the kernel's stylesheets and the bundled packages, so editing those never restarted even a `--user` preview's server. The preview now reads the runtime's own identity, and replacing its in-process server first drops what the process holds of the tree (`runtime_selection.forget_tree`, which is new). - `leaf-dev site demo` stopped getting a title for its thread after #5835, because its own session has no hooks module to answer the request. It now answers with a staged title through the suite's stand-in for that module, which moves to `leaf_dev.claude_code_module`. - `leaf-dev trace-server` called a Playwright export that 1.65 removed. The other ten had stale expectations: #5964's stdout refusals, #4325's recovery words, #6154's recovery reload, the layer record's dropped `fingerprint`, and a preview identity that moved to About this page. Two more tests started a second Playwright driver on a worker thread that already held one. To weigh: the demo's thread title is now the same every run, rather than worded fresh by a model each time. Asked for by max-sixty, as a follow-up to #6374. Tests: all of `dev/tests` locally and, through a commit since reverted, on this PR's runner; the product modules the stand-in move and the layer change touch (225 passed). > _This was written by Claude Code on behalf of max-sixty_
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.
A survey of the lines the floating panel shows found three speakers mixed together: a narrator describing the agent ("Claude is active on this page", "Waiting for Claude"), machinery talking about itself ("— sent", "Not answered", "Retrying"), and the agent. This makes every visible status, notice and stage label read as something the agent would say to the user, with no name in front, and sets the few lines the agent can't be saying in italic, the way a script sets apart a stage direction.
What changes for the user
pageStatusandstatusModelcarry avoice(leaforagent). The field's reading carries it too,leaffor every error, and the field is markeddata-voice="leaf", whichfloating-panel.csssets in italic. That covers the nudge ("Not answering — nudge the terminal"), lost connection or access, a server error, a state the page can't show, loading, connecting and errors.Where to look
browser/runtime/activity-words.js: status sentences, All pages rows, andvoice.browser/runtime/semantic-news.js: notices, in the agent's voice.browser/runtime/thread/workflow.js: stage, condition and attention labels;NOT_ANSWEREDis now shared withthread/messages.js..claude/skills/developing-leaf/references/glossary.md: the voice, italic and personal-copy rules that future copy follows.docs/how-it-works.html: a new "What the panel's line says" section in the Progress tab, and the stage, status and notice tables updated.Tests that pinned the old words are updated to the new ones; notices are told apart from the status by
data-says.hooks/claude-code.tsreports "Working on it" when a working turn has no detail.