Skip to content

feat(site/pages/AgentsPage): move workspace actions to badge popover - #24308

Closed
kylecarbs wants to merge 1 commit into
mainfrom
agents-workspace-badge-popover
Closed

kylecarbs wants to merge 1 commit into
mainfrom
agents-workspace-badge-popover

Conversation

@kylecarbs

@kylecarbs kylecarbs commented Apr 13, 2026 •

Copy link
Copy Markdown
Member

Move workspace quick-actions (Open in Cursor, Open in VS Code, Open Terminal, Copy SSH Command, View Workspace) from the ChatTopBar ellipsis dropdown into a popover on the workspace badge in the chat input area.

The badge shows a chevron that rotates when the popover is open. When no action handlers are provided, the badge falls back to the previous tooltip + link behavior. The ChatTopBar dropdown is slimmed to agent-level actions only (generate title, archive/unarchive, delete workspace).

image
Review notes

Known tradeoffs

  • Two-click navigation: Clicking the workspace badge now opens the popover instead of navigating directly. "View Workspace" is one click deeper. This is intentional — the badge surface area is small and the popover makes all workspace actions discoverable in one place.
  • hasActions fallback: The fallback link path (when no action handlers are provided) is currently unreachable from AgentChatPageView since it always passes handlers. It exists as defensive coding for other potential consumers of ToolBadge.
  • Popover vs DropdownMenu: The popover uses plain buttons instead of Radix DropdownMenuItem. This matches the existing overflow popover pattern in the same file. Arrow-key menu navigation is not provided.

🤖 Generated by Coder Agents

Move Open in Cursor, Open in VS Code, Open Terminal, Copy SSH Command,
and View Workspace actions from the ChatTopBar ellipsis dropdown into
a popover on the workspace badge in the chat input area.

The badge shows a chevron indicator that rotates when the popover is
open. When no action handlers are provided, the badge falls back to
the previous tooltip + link behavior.

The ChatTopBar dropdown is slimmed to agent-level actions only:
Generate new title, Archive/Unarchive Agent, and Archive & Delete
Workspace.
@DanielleMaywood

Copy link
Copy Markdown
Collaborator

Guess I can close my PR addressing this 💀

@DanielleMaywood

Copy link
Copy Markdown
Collaborator

Closing in favor of #24295

Going to merge the styling from this with mine

@github-actions github-actions Bot locked and limited conversation to collaborators Apr 13, 2026
@github-actions
github-actions Bot deleted the agents-workspace-badge-popover branch October 14, 2026 00:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants