Repository navigation
feat: a chat offers the agent's own modes - #167
Merged
Merged
Conversation
2 tasks done
…n names it A mode the answer listed in `modes` changes through `session/set_mode`, which ACP serves only for the modes the agent advertised; every option from `configOptions`, a mode among them, goes through `session/set_config_option`. The options now remember which ids the answer gave in `configOptions`, so an agent that never advertised modes (opencode) is never sent the mode call. Start again writes an info notice naming the mode it restores, because the agent's own first mode is not the person's choice. The fake agent answers a config call with the options it changed, so the new test can tell the two calls apart.
opencode offers 82 models, so the chip's menu scrolls inside a bounded height instead of running off the window. A refusal says which option did not change; it said "the mode" for every one. The box's notice keeps its accessibility label, which the menu tests read.
Member
Author
|
Merged into #166. |
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
3315
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.
What
A chat's box starts with one chip naming the agent's mode in the agent's own words. Its menu lists every mode, model and option the agent offers, a risky mode draws the warning mark, a refusal names the option chosen, and Start again says
Mode restored: <name>.Why
Every agent offers a different set of modes and options, so a chat either left them out or needed a table per agent.
How
A mode the answer lists in
modeschanges throughsession/set_mode; one offered only inconfigOptionsgoes throughsession/set_config_option.Test plan
sh scripts/smoke.sh; CI on all three systems.proof/pr-a/).