feat(tui): agent selector in new session form#334
Merged
Conversation
Adds an opt-in agents.agent_selector config option that surfaces an inline agent picker at the top of the new session form. The configured default is pre-selected so the normal flow is unchanged; users can tab to the picker to switch agents before submitting. Also removes the SelectField paginator dots and fixes list height to hug its content instead of padding to a fixed 8 lines.
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.
Purpose
Adds an opt-in
agents.agent_selector: trueconfig option that surfaces a compact inline agent picker at the top of the new session form, letting users choose which agent profile to use per session.Proposed Changes
agents.agent_selectorconfig field — when true and multiple profiles are configured, the new session form shows the pickerAgent / claude · opencode · piwith left/right to cycle; default profile is pre-selected so the normal flow is unaffectedCreateOptions.AgentKey→SessionService→ spawn, which builds a per-sessiontmpl.Renderervariant viaRenderer.WithAgentSelectFieldpaginator dots removed and list height now hugs content instead of padding to a fixed 8 linesChecklist