Skip to content

feat: click on agent in sidebar to switch to it#2356

Merged
dgageot merged 1 commit intodocker:mainfrom
dgageot:board/keyboard-shortcut-to-cycle-sidebar-agent-40e801d4
Apr 10, 2026
Merged

feat: click on agent in sidebar to switch to it#2356
dgageot merged 1 commit intodocker:mainfrom
dgageot:board/keyboard-shortcut-to-cycle-sidebar-agent-40e801d4

Conversation

@dgageot
Copy link
Copy Markdown
Member

@dgageot dgageot commented Apr 9, 2026

Add click-to-select support for agents in the sidebar. Clicking anywhere on an agent's block (name, description, provider, or model line) switches to that agent.

Changes

  • Added ClickAgent click result type to sidebar hit testing
  • HandleClickType returns agent name as second value (no side-effect state)
  • Agent click zones are built by scanning rendered lines, avoiding fragile line-count duplication
  • Added TargetSidebarAgent mouse target in chat page hit testing
  • Left-click on any line of an agent block sends SwitchAgentMsg

@dgageot dgageot requested a review from a team as a code owner April 9, 2026 12:20
Add click-to-select support for agents in the sidebar. Clicking anywhere
on an agent's block (name, description, provider, or model line) switches
to that agent.

Assisted-By: docker-agent
@dgageot dgageot force-pushed the board/keyboard-shortcut-to-cycle-sidebar-agent-40e801d4 branch from 1bee3dc to 08405d2 Compare April 9, 2026 12:26
@dgageot dgageot merged commit 131e93d into docker:main Apr 10, 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.

2 participants