Skip to content

feat: point thread create and reply help at a choice for questions with listable answers - #5407

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5404
Nov 5, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5404

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

This is the smallest part of #5404. leaf thread create --help told the agent to "Use --obligation when the next move is the user's" and never mentioned a widget. leaf thread reply --help listed "a widget in --markup that asks" as an option but didn't say when to use it. Each now adds a clause: a question whose answers you can list takes an lf-options choice in --markup, as threads.md ("Ask for a pick") already says. The agent sees that alternative at the moment it reaches for --obligation. The help snapshot (test_agent_interaction_command_help) is regenerated to match, and it passes.

The issue's two larger parts are left for later:

  • On me answering a thread's choice. For a choice in a thread message that isn't drawn yet, choicesOf (browser/runtime/obligations/view.js) returns null and answerWords (obligations/answer.js) has no element to format the pick from.
  • The turn-end check asking with options. This means changes to ANSWER, _put and _ask in clerk.py, plus turn-end-check.md.

The second one would mostly create asks that the first one can't answer from On me yet, so On me's part comes first.

Refs #5404 — automated triage

…wers

`leaf thread create --help` told the agent to use --obligation when the next
move is the user's, and `leaf thread reply --help` named a widget that asks
without saying when. Both now say that a question whose answers can be listed
takes an lf-options choice in --markup, as threads.md's "Ask for a pick" does.
The help snapshot changes accordingly.

Refs #5404
@leaf-agent
leaf-agent merged commit 5157c06 into main Nov 5, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5404 branch November 5, 2026 04:50
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