Skip to content

automations: add context menu actions for automation cards - #333226

Merged
Ben Villalobos (benvillalobos) merged 5 commits into
mainfrom
agents/automation-card-duplicate-option
Aug 28, 2026
Merged

automations: add context menu actions for automation cards#333226
Ben Villalobos (benvillalobos) merged 5 commits into
mainfrom
agents/automation-card-duplicate-option

Conversation

@benvillalobos

Copy link
Copy Markdown
Member

Adds Duplicate, Disable, and Delete actions to the automation card context menu.

  • Duplicate opens a prefilled Create Automation dialog with the original card's values.
  • Disable allows users to disable an enabled automation.
  • Delete prompts for confirmation before removing an automation.

All actions respect provider capabilities and handle concurrent changes. Accessibility guidance has been updated, and focused regression tests cover all new functionalities.

Copilot AI balanced review requested due to automatic review settings August 28, 2026 18:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

Review tier: Balanced
Findings: 1 High severity · 1 Medium severity

New issues introduced by this change (2)
Severity Finding
High severity src/​vs/​sessions/​contrib/​sessions/​browser/​views/​automationsView.ts — Deletion is still keyed only by id, so it does not handle concurrent edits as described. If…
Medium severity src/​vs/​sessions/​contrib/​sessions/​browser/​views/​automationsView.ts — The dialog is awaited before the try, so a failure while opening or initializing it rejects the…
What changed in this PR

Adds context-menu management actions to automation cards.

Changes:

  • Adds Duplicate, Disable, and Delete actions with capability guards.
  • Supports prefilled creation dialogs and accessibility guidance.
  • Adds regression tests for action behavior and failures.
File Description
automationDialogService.ts (common) Adds mutually exclusive edit and initial-value options.
automationsView.test.ts Tests the new context-menu workflows.
automationsView.ts Implements menu actions and deletion reuse.
automationsAccessibility.ts Documents keyboard access to the actions.
automationDialogService.ts (sessions) Initializes creation dialogs from supplied values.
menus.ts Registers the automation-card context menu.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/vs/sessions/contrib/sessions/browser/views/automationsView.ts
Comment thread src/vs/sessions/contrib/sessions/browser/views/automationsView.ts Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a713c12c-1a43-4f7f-9337-fca7f8dfe89f
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a713c12c-1a43-4f7f-9337-fca7f8dfe89f
@benvillalobos Ben Villalobos (benvillalobos) changed the title sessions: add context menu actions for automation cards automations: add context menu actions for automation cards Aug 28, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a713c12c-1a43-4f7f-9337-fca7f8dfe89f
@benvillalobos
Ben Villalobos (benvillalobos) marked this pull request as ready for review August 28, 2026 22:36
@github-actions

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: d9b5c14f Current: b85ca986

Changed (1)

chat/aiCustomizations/aiCustomizationManagementEditor/McpServersSearch/Light
Before After
before after

@benvillalobos
Ben Villalobos (benvillalobos) merged commit 8bd6fec into main Aug 28, 2026
37 checks passed
@benvillalobos
Ben Villalobos (benvillalobos) deleted the agents/automation-card-duplicate-option branch August 28, 2026 23:00
@vs-code-engineering vs-code-engineering Bot added this to the 1.136.0 milestone Aug 28, 2026
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.

3 participants