Repository navigation
Open On me when m reaches a to-do; the clerk asks in threads and to-dos - #4866
Merged
Merged
Conversation
Leaf's clerk wrote each ask it found in the agent's chat as a to-do on the user on the page as a whole. A to-do carries only a title, so the user got a bare "?" beside the page's heading and a panel line that cut the ask in half, and its Done could not say yes or no to "Land it?". The user asked for the routes a question asked well takes: a widget that asks, or a thread. The clerk now opens one thread per ask on the page as a whole, the agent's message carrying an obligation, with a title and a self-contained message the fork writes from the conversation in three or four sentences. It opens the thread through `thread.open_thread`, the function `leaf thread create` now uses too, so the clerk activates a saved source as the command does. It skips an ask whose title a thread the agent opened to ask already has, and shows the fork answered and withdrawn questions as settled. The agent's next step quotes the message and names `leaf task end <page> message:<id> dropped`. conversation-loop.md's table no longer tells agents to title a to-do on the user as a question or offers `page` as its subject: an action goes on the thread that explains it or the element it concerns. A new eval case, closeout-asks-take-their-route, scores asks left at a closeout. Replayed on 12 recorded turn ends: the fork named all 21 labelled asks in the 8 that left some and nothing in the 4 that left none.
#4850 described the clerk's to-do on the page, which this branch replaced with a thread per ask.
`m` reaching a to-do on the user now also opens On me, its card ringed with the whole title and Done, leaving the user on the to-do's place, where `x` still ends it. A thread opens and a widget answers where it stands, but a to-do's place held nothing that answers it, so a long title read as half a line in the panel's field. The user chose this on 2026-10-31 and kept the page as a to-do's subject, so the On lists table offers it again. Leaf's clerk now names, per ask, the page's words the ask concerns; Leaf opens the thread there, and on the page as a whole when the fork names none or the words don't resolve, since the fork has no next attempt. The user declined to mandate one placement. Replayed on four recorded turn ends: 12 asks, 5 with a passage, each found once in its page. Behavior changes in tests: the m-on-a-to-do browser tests expect On me open on the walked card; closeout-asks-take-their-route no longer fails a page to-do titled as the action (main and the branch both pass 3/3). Co-Authored-By: Claude <[email protected]>
# Conflicts: # dist/kernel/kernel.json
The clerk's fork now marks each ask a question or a step. A question still opens a thread with the agent's message and an obligation; a step the user takes and confirms with Done, such as running /reload-plugins, goes On me as the agent's to-do on the user, titled as the action, on the element holding the passage it names or else on the page. The user chose this on 2026-10-31 once `m` opened On me on a to-do: a step asked as a thread question is answered by a clarifying reply, so the agent had to ask again. Asks are deduplicated against the agent's to-dos on the user as well as its question threads. `todos.open_todo` is now the one place a to-do event is built, called by `leaf task create` and the clerk. Replayed on four recorded turn ends: P2's /reload-plugins came back as a step in 3 of 3 runs and every permission as a question; all 13 labelled asks were named. Co-Authored-By: Claude <[email protected]>
# Conflicts: # dist/kernel/kernel.json
leaf-agent
previously approved these changes
Oct 31, 2026
# Conflicts: # dist/kernel/kernel.json
# Conflicts: # dist/kernel/kernel.json
leaf-agent
approved these changes
Oct 31, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 3, 2026
… `m` (#5113) Since #4786, an On me marker whose target the user stood on showed its label as though hovered. After `m` reached an `lf-ask`, a tooltip repeating the ask's heading sat beside it, over the first option's `1` badge, with no pointer or focus on the marker. It reproduced in Firefox and Chromium on main, every time `m` arrived at an ask or a to-do. | Before | After | | --- | --- | |  |  | #4786 was written for a to-do on the user, whose subject doesn't say its title (#4785). #4866 had already covered that case a day earlier: `m` on a to-do opens On me on its card, which shows the whole title over its Done. So this removes the selected-marker reveal entirely: its CSS, its term in `revealsLabel`, and the label placement that selection scheduled. A margin label again shows only on hover, keyboard focus on the entry, or a held press. The user chose to keep a to-do's title in On me only, and to leave the browser's own hover alone when a scroll brings a marker under a resting pointer. Tests: the `m`-arrival test on two asks now asserts the label stays hidden after the walk paints its selection, and that hovering the marker still shows it; it fails on main. The to-do tests no longer expect the label after `m` or Show. The `on-me-todo-dark` still goes, since it existed for the label in dark; `on-me-todo` stays for On me opened on a to-do's card. The focused browser tests, `pnpm run test:runtime` and `pnpm run check:browser` pass. > _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.
Asks that no widget holds now reach On me whole. Before this change, Leaf's clerk wrote every ask it found in a chat closeout as a to-do on the user on the page as a whole. When
mreached one, the panel's field showed half its title, and a bare "?" sat beside the page's heading. Agents wrote the same to-dos themselves. Across 238 real pages there were 15 to-dos on the user on the page as a whole, and 12 of them were a decision or a permission.mopens On me on a to-do (browser/runtime/queue-walk.js,floating-panel.jsshowOnMe). A thread opens and a widget's controls are already wheremlands, but a to-do's place holds nothing that answers it. So the walk now also opens On me with the to-do's card ringed, showing its whole title and its Done. The user stays on the to-do's place, wherexstill ends it.The clerk writes what the agent would write (
src/leaf/clerk.py). Its fork marks each ask a question or a step./reload-plugins, goes On me as the agent's to-do on the user, titled as the action.thread.open_threadandtodos.open_todoare now the only places those events are built, called byleaf thread create,leaf task createand the clerk.Instructions (
conversation-loop.md, "The On lists"). A to-do on the user is titled as the action rather than "a direct question", and stands on its thread, its element or the page. The clerk paragraph anddocs/how-it-works.htmldescribe the new writes.Evidence
/reload-pluginsstep a step in 3 of 3 runs, and called every permission a question. It named 6 passages. The 5 whose pages still exist each appear once in their page's text as it stood that turn.closeout-asks-take-their-routepasses 3/3 on both main and the branch, so it stands as a guard rather than a measured gain.m-on-a-to-do browser tests now expect On me open on the walked card.