Skip to content

feat(leftnav): replace agent dropdown with gateway selector#38

Merged
samzong merged 1 commit intomainfrom
feat/leftnav-gateway-selector
Mar 14, 2026
Merged

feat(leftnav): replace agent dropdown with gateway selector#38
samzong merged 1 commit intomainfrom
feat/leftnav-gateway-selector

Conversation

@samzong
Copy link
Collaborator

@samzong samzong commented Mar 14, 2026

Summary

  • Replace the agent dropdown next to the New Task button with a gateway selector, since different gateways have different agents — gateway is the correct abstraction level
  • Show split button when multiple gateways are connected; dropdown lists connected gateways with color dot or Server icon
  • Selecting a gateway creates a task using its default agent automatically
  • Agent-level selection remains available on the WelcomeScreen

Changes

packages/desktop/src/renderer/layouts/LeftNav/index.tsx (1 file, +11/-10)

  • Import: BotServer
  • Store: agentCatalog/hasMultipleAgentsgatewayInfoMap + gatewayStatusMapconnectedGateways/hasMultipleGateways
  • Dropdown: iterate connected gateways instead of agents, call createTask(gw.id) without explicit agentId

…asks

Different gateways have different agents, so selecting a gateway is the
correct abstraction level for the LeftNav split button. The selected
gateway's default agent is used automatically. Agent-level selection
remains available on the WelcomeScreen.
@github-actions
Copy link

Hi @samzong,
Thanks for your pull request!
If the PR is ready, use the /auto-cc command to assign Reviewer to Review.
We will review it shortly.

Details

Instructions for interacting with me using comments are available here.
If you have questions or suggestions related to my behavior, please file an issue against the gh-ci-bot repository.

@samzong samzong merged commit 58f4f0d into main Mar 14, 2026
4 checks passed
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