Repository navigation
Hand an ask the user has commented on to the agent until it replies - #2677
Merged
Merged
Conversation
A comment on an open ask left the ask on Questions while the comment's reply stood on Tasks, so the item showed as owed by both sides. An open ask now has the agent as its next actor while the agent owes a reply about it, so it leaves Questions (into `held`) until the agent answers, still open and unanswered, its controls live: - a page ask, while a thread anchored inside its widget, or inside its framing x-question-context and no other ask, awaits the agent (`questions.sections_with_agent`, `questions.discussed`); - a widget frozen into a thread, while the user has written after the message that asked and the agent has not answered. This generalizes the seat-only rule (`seat_with_agent`, `seats_with_agent`, both deleted), which stopped reaching any shipped widget when 292de9c took x-thread-seat off lf-options. It reverses the recorded decision in events.md that an open structural ask keeps its thread awaiting the user after later prose; that paragraph, the x-awaits contract and the glossary now say the new rule. The browser reads the change from the server: a pending reply in a thread holding the ask moves both through `after`, which a publisher test now reads from a served reading rather than a hand-written one. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…agents # Conflicts: # build/browser/application.test.mjs # docs/registry.html # skills/leaf/scripts/leaf/questions.py
main's #2663 drops the served `after` readings, so the publisher test this branch rewrote to read a supposed reply goes with the others #2663 deleted, and so does the served reading it consumed. The model tests read the open asks whose next move is the agent's from the ask inventory, since `held` is no longer served. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 12, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 12, 2026
…mented ask to the agent (#2695) Seven browser and journey tests have failed on main since #2677 (bisected: 927abcf passes, 8d6898f fails). Main's push runs were each superseded and cancelled, so nothing reported it; a pull request that edits these test files selects them and fails its required `test` job (#2658). #2677 hands an open ask to the agent while a thread anchored on it awaits the agent's reply, so the ask leaves Questions and the `q` walk passes over it. These tests seeded a bare user comment on an ask only to give it a thread or a margin note, then walked to it with `q` or a Page Map hint, and timed out waiting for focus. Their subject is how an ask and its thread are held and navigated, so their fixtures now seed a comment the agent has answered (`answered_comment`), which leaves the ask on the user. What they assert is unchanged. `test_a_live_revision_reapplies_the_authored_thread_seat_predicate` is deleted: it held that a seat's thread stops taking the ask off the user's list once a revision removes the seat, and #2677 deliberately made any thread inside the ask do so, which `tests/model/test_questions.py` covers. The seated test widget's `seatAttribute` option existed only for it. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 13, 2026
The [main CI run](https://github.com/max-sixty/leaf/actions/runs/38317918344) found two annotation tests expecting an authored Ask marker to remain after its user comments. #2677 deliberately hands a commented Ask to the agent until it replies, so that marker leaves while the comment's thread remains. The pointed-row test now checks the handoff and keeps its check that an existing thread target stays put; the turn-colour test expects a thread-only marker while the Ask is with the agent. Both failing cases reproduced on current `main` before these changes. The pointed Ask and thread cases, plus both colour cases, pass afterward with focused `uv run pytest -q -n0` selections. No product code changes. --------- 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.
A comment on an open ask left the ask on Questions while the comment's reply stood on Tasks, so one item showed as owed by both sides. An open ask now has the agent as its next actor while the agent owes a reply about it: it leaves Questions until the agent answers, still open and unanswered, its controls live.
x-question-contextand no other ask (questions.sections_with_agent,questions.discussed). A note on one option leaves a framed sibling with the user; a note on the frame's heading covers all of them.This generalizes the seat-only rule (
seat_with_agentandseats_with_agent, both deleted), which stopped reaching any shipped widget when 292de9c tookx-thread-seatofflf-options. It reverses the decisionevents.mdrecorded, that an open widget ask keeps its thread awaiting the user after later prose. That paragraph, thex-awaitscontract and the glossary now state the new rule.The browser takes the change from the server's reading, as #2663 has it take every derived fact, so Questions moves when the reading of the comment or reply arrives.