Repository navigation
Queue an unseen update for the agent in Leaf's italic; say "Still to do" - #4513
Merged
Merged
Conversation
An update the agent hasn't received read "Saving…" while the browser sent it
and "Saved" once the server logged it. Both describe storage, which the
message already drawn in the thread shows, and neither says where the agent
stands, which is what the user reads the label for. They were also the only
stage words not in the agent's voice, and named the machinery the glossary
rules out ("not that something was sent, logged, stored").
Both stages now read "Not seen yet", and the stale-delivery condition, which
read "Haven't seen it yet" after the two-minute pickup grace, reads "Still not
seen", so it escalates the same fact. A send that isn't getting through still
says so in the page's status ("Lost the connection — keep this page open and
this goes through", "Not through yet — trying again…"), and the message keeps
`aria-busy` while its POST is in flight.
Behavior change: the stage label on a message head, a Threads row, a margin
entry and the agent's list. Tests pinning "Saved", "Saving…" and "Haven't seen
it yet" now pin the new words; the smoke tests still prove the message draws
before its POST returns.
The user chose (2026-10-27) to have Leaf, not the agent, speak for an update the agent doesn't have yet: it reads "Queued for Claude", naming the page's agent, in the italic that sets Leaf's own words apart, and "Still queued for Claude" past the pickup grace. The agent can't be saying anything about an update it hasn't received, so the agent-voice "Not seen yet" put words in its mouth. `workflowVoice` says who speaks a workflow's word: Leaf at stages `sending` and `sent`, else the agent. The message head, the Threads row, the agent's list and a margin entry's label carry it as `data-voice` and set Leaf's in italic, as the panel's field already did; a contribution entry takes a `voice` for its label. The Page Map's group of such receipts reads "Queued". An open to-do the agent isn't running now reads "Still to do" rather than "To-do open", which named the record rather than what it means for the user's request. The answer head that leaves the to-do reads `todoLabel` too, instead of its own copy of the words. Behavior change: those words and their italic on each surface. Tests pinning "Not seen yet", "Still not seen" and "To-do open" pin the new words; a runtime test holds the voice and words of an unreceived update.
# Conflicts: # dist/kernel/kernel.json # dist/kernel/runtime/bundle-data.js
leaf-agent
reviewed
Oct 27, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The workflow model now reads application state, breaking its pure-model boundary and the dependency gate.
The workflow model imported `semantic-state.agentName` for "Queued for Claude", which gave `thread/workflow.js`, `margin-model.js` and `margin-map-model.js` the application state's initialization graph and broke their dependency closures (`.dependency-cruiser.mjs`; review on #4513). `workflowLabel`, `workflowTitle`, `workflowStep`, `threadAttention` and `threadMarks` now take `agent` as an argument, and their application-facing callers pass `agentName()`. No behavior changes; the words are the same. Also formats lines the earlier commits left unformatted.
leaf-agent
previously approved these changes
Oct 27, 2026
# Conflicts: # browser/runtime/floating-panel.js # dist/kernel/kernel.json # dist/kernel/leaf.js
Seven more browser and journey tests pinned "Saved" or "Haven't seen it yet" on a message head, a Threads row or a margin entry; they now pin "Queued for …" and "Still queued for …". The margin status test names the claim's agent, Claude. Two "Saved" pins elsewhere are widget notices, not stage words, and stay.
# Conflicts: # dist/kernel/kernel.json # dist/kernel/runtime/bundle-data.js
leaf-agent
previously approved these changes
Oct 27, 2026
leaf-agent
approved these changes
Oct 27, 2026
This was referenced Oct 28, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 28, 2026
The header truncation test assumed the short author “Me” would overflow. It passes at the parent of #4513 and fails immediately after that PR's queued-status wording change, even though its timestamp and news notice remain whole. Seed a long agent author so the fixture supplies the overflow it asserts, and address arriving replies to that agent's thread. The test still requires an ellipsis on the overflowing name, whole timestamps and a whole “2 new replies” notice. This preserves #4513's status wording and changes no product layout. The original test fails on current main; the repaired test passes there and on the commit preceding #4513. The file passes Ruff checks and formatting. Reviewed the test-only diff for correctness, removed coverage and fixture conventions; no findings. Closes #4527 — automated triage Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 28, 2026
The send-placement test assumed a reopened card must have the exact width of the card Send opened. #4513's longer italic “Queued for Claude” receipt exposes that assumption: a fresh card sizes to its contents, while a sent card retains the comment frame's width to keep the user's words in place. The test passes on #4513's parent and fails on that commit and current main with the same 48.9375px widening reported here. Check the guarantee #4124 repaired directly: the comment frame meets the card minimum and Send keeps its width. Reopening still must meet the minimum and retain the attachment and vertical bounds, while choosing its width afresh as `thread-preview.js` specifies. This changes test coverage only; the status wording and runtime layout stay as they are. Validation: the revised browser case passes on current main's runtime. A temporary 40px loss of editor width makes the new Send-width assertion fail (280px versus 320px), preserving coverage of the original regression. The original assertion failed locally with the reported rectangles; the preceding CI run's junit records a pass and the reported run records the same width mismatch. Closes #4529 — automated triage Co-authored-by: leaf-agent <[email protected]>
This was referenced Oct 28, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 28, 2026
Five browser cases still expected “Saved” after #4513 deliberately changed unreceived updates to “Queued for” the page's agent. Update those expectations while retaining their placement, suggestion lifecycle, Undo focus and pending-title assertions. This changes no product behavior. Move the lifecycle test's existing HTTP 400 consumption beside its deliberate transport refusal. The stale status assertion previously stopped the test before that consumption, producing a second teardown failure from the same injected response. All five cases pass locally (10.36 seconds). The preceding main CI run passed them; run 40600745001 records the obsolete-label failures and the lifecycle teardown error. Closes #4526 — automated triage Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 28, 2026
The held-news wrapping test now starts with an agent-authored message, so its first fact has room before a later fact arrives. It keeps the 390 px viewport and every assertion about fixed width, the whole first fact, the dropped second fact and the `+1` count, and adds an explicit check that the first fact fits initially. The original fixture passed at the preceding run's commit and fails at #4513: its longer *Queued for …* delivery receipt leaves only 39 px for the notice. The first fact is already clipped before the second arrives; this does not demonstrate broken whole-fact wrapping. Using an agent-authored opening removes that unrelated receipt from the fixture. No product behavior changes, and #4013's decision about a growing single count remains open. Validation: both focused held-news tests pass. The original test fails on current main and at #4513, and passes at its parent. The repository-pinned Ruff checks and formatting pass (run through `uvx` because Ruff is not installed in the local project environment). Closes #4530 — automated triage --------- Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 28, 2026
Main's #4513 has threadAttention say who speaks each word, and Threads sets Leaf's own, such as "Queued for Claude", in italic. The panel's turn lead joined the word into a plain string and dropped that voice, so an update the agent hadn't received read in the agent's face beside Reply. The lead now draws the word as Threads does, through one `spoken` helper both use.
max-sixty
added a commit
that referenced
this pull request
Oct 28, 2026
The turn line beside the leaf in the panel's field (#4510) said a thread's word upright, so a thread whose update the agent doesn't have yet read "Queued for Claude" there in the agent's type, while the message head, Threads row, On Claude list and margin entry set it in Leaf's italic (#4513). `turnLead` now wraps the word in a span carrying the thread attention's `voice`, and `floating-panel.css` sets Leaf's in italic, as on a Threads row. > _This was written by Claude Code on behalf of max-sixty_
This was referenced Oct 29, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 1, 2026
The cross-tab card journey still expected Page Map’s “Saved” label after #4513 deliberately changed unreceived updates to “Queued for Claude.” Update that expectation to the queued label, preserving the checks that a move carries its user origin across tabs, appears without a duplicate origin row, and loses its origin mark when a later version honors the move. No product behavior changes. The original journey reproduces the missing-label failure on main; the updated complete journey passes (7.80 s). Ruff and `git diff --check` pass. Closes #4943 — automated triage Co-authored-by: leaf-agent <[email protected]>
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.
An update the agent hadn't received read "Saving…" and then "Saved". Both said the update was stored, which the message drawn in the thread already shows, and neither said where the agent stood, which is what the user reads the label for. In the user's case a comment read "Saved" for 38 seconds while the agent's next turn opened; across the last week's pages a third of updates waited over 10 seconds before pickup, so this is the status word users read longest.
What changes for the user
sendingandsentread Queued for Claude, naming the page's agent, in the italic that sets Leaf's own words apart (the user's choice, 2026-10-27). Past the two-minute pickup grace it reads Still queued for Claude. From Got it on, the words are the agent's again and upright. The page's status line still says whether the agent is around ("Away", "Working on it") and when a send isn't getting through.todoLabelinstead of its own copy of the words.Where to look
browser/runtime/thread/workflow.js: the words, andworkflowVoice, which says who speaks a workflow's word.threadAttentioncarries it asvoice. The word functions (workflowLabel,workflowTitle,workflowStep,threadAttention, andthreadMarksinmargin-model.js) take the agent's name from their application-facing callers, which passsemantic-state.agentName(), so the models stay free of application state.thread/messages.js), the Threads row and the agent's list (floating-panel.js), and a margin entry's label (annotation-inventory.js→margin-projection.js→ a contribution entry's newvoice) setdata-voice;controls.css,floating-panel.cssandtheme.cssset Leaf's in italic.docs/how-it-works.htmlanddocs/threads.html, andskills/leaf/references/threads.mduse the new words.Tests that pinned "Saved", "Saving…", "Haven't seen it yet" and "To-do open" pin the new words, and a runtime test holds the words and voice of an unreceived update. The runtime suite and the 15 browser and smoke cases that read these words pass.