Repository navigation
feat: point thread create and reply help at a choice for questions with listable answers - #5407
Merged
Merged
Conversation
…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
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.
This is the smallest part of #5404.
leaf thread create --helptold the agent to "Use --obligation when the next move is the user's" and never mentioned a widget.leaf thread reply --helplisted "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 anlf-optionschoice in--markup, asthreads.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:
choicesOf(browser/runtime/obligations/view.js) returns null andanswerWords(obligations/answer.js) has no element to format the pick from.ANSWER,_putand_askinclerk.py, plusturn-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