Skip to content

feat(tui): agent selector in new session form#334

Merged
hay-kot merged 2 commits into
mainfrom
feat/agent-selector
May 14, 2026
Merged

feat(tui): agent selector in new session form#334
hay-kot merged 2 commits into
mainfrom
feat/agent-selector

Conversation

@hay-kot

@hay-kot hay-kot commented May 14, 2026

Copy link
Copy Markdown
Collaborator

Purpose

Adds an opt-in agents.agent_selector: true config 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_selector config field — when true and multiple profiles are configured, the new session form shows the picker
  • Compact inline picker renders Agent / claude · opencode · pi with left/right to cycle; default profile is pre-selected so the normal flow is unaffected
  • Selected agent key flows through CreateOptions.AgentKeySessionService → spawn, which builds a per-session tmpl.Renderer variant via Renderer.WithAgent
  • SelectField paginator dots removed and list height now hugs content instead of padding to a fixed 8 lines

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

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.
@hay-kot hay-kot marked this pull request as ready for review May 14, 2026 15:13
@hay-kot hay-kot merged commit 2d49637 into main May 14, 2026
2 checks passed
@hay-kot hay-kot deleted the feat/agent-selector branch May 14, 2026 15:24
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