Repository navigation
Show the agent in the composer by default - #105
Merged
Merged
Conversation
Agent Selection leaves Experimental: it is on by default, with a switch under Return Key Sends in Settings › Sessions (SharedKeys.agentSelection). The old experiment's stored value is cleared with the other retired ones. To keep the composer row uncrowded, the model chip drops its effort level while the agent chip is beside it, and the agent's name is capped at 96 dp so the model's name isn't the first to truncate. Also fixes the agent chip not updating after a pick in an existing session: the pick only changes the shared sessionAgents, which the store's states don't follow, so the chip now follows that value too. Verified: scripts/check.sh on the VM (all modules) passes. On the emulator against session-lab: the chip shows by default, a pick in an existing session updates it at once, and the switch off hides the chip and brings the effort level back.
Beside the agent chip, the model chip is now just its name and a chevron (no provider logo), and the agent's name uses the text colour, so the two read as the same kind of control. They sit 8 dp further apart so the agent's chevron doesn't read as belonging to the model. Verified: scripts/check.sh on the VM (all modules) passes; on the emulator against session-lab the row shows "Build ⌄ model ⌄" and a pick updates the agent chip.
The model chip is a name and a chevron whether or not the agent chip is beside it (CHIP_SHOWS_LOGO off, CHIP_SHOWS_CHEVRON on); beside the agent chip it still leaves its effort level off. Verified: scripts/check.sh on the VM (all modules) passes; on the emulator against session-lab, with Agent Selection on the row shows "Build ⌄ model ⌄" and with it off "model Default ⌄".
Merged
This branch was previously deployed
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.
Agent Selection was an experiment, off by default, so most people never found how to switch between Build and Plan.
iOS still has this behind Experimental; the parity rows say where Android differs.
Not done: the switch reuses the already translated string
core_experiment_agent_selection_titlerather than renaming it across every locale, and there's no What's New entry.Checked:
scripts/check.shpasses for all modules. On the emulator against session-lab: the chip shows by default, a pick in an existing session updates it at once, and turning the switch off hides the chip and brings the effort level back. A long model name wasn't checked on the emulator, because the lab's only model is called "model".