Skip to content

automations: apply Assisted permissions for Autopilot - #333949

Merged
Ulugbek Abdullaev (ulugbekna) merged 1 commit into
mainfrom
chrmarti/agents/bugfix-general-issue
Sep 2, 2026
Merged

automations: apply Assisted permissions for Autopilot#333949
Ulugbek Abdullaev (ulugbekna) merged 1 commit into
mainfrom
chrmarti/agents/bugfix-general-issue

Conversation

@chrmarti

Copy link
Copy Markdown
Collaborator

Fixes #333723

Automations still persist the legacy Autopilot permission value, while Agent Host now expects Assisted permissions on the approval axis. Translate that value when creating the native AHP automation definition.

This regressed when automation execution moved to Agent Host Protocol in #331796.

Validation

  • npm run compile-client
  • ./scripts/test.sh --run src/vs/sessions/contrib/providers/agentHost/test/browser/agentHostAutomationStore.test.ts --grep "uses the exact catalogue channel and projects authoritative creates"

Translate the legacy Automations Autopilot permission value at the Agent Host protocol boundary so native automation sessions use Assisted permissions.\n\nFixes #333723\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

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

🟢 Approval recommended

The focused mapping matches the Agent Host schema and is covered by a regression assertion.

Review tier: Balanced
Findings: None

What changed in this PR

Maps legacy Autopilot automation permissions to Agent Host’s Assisted permission level.

Changes:

  • Translates autopilot to assisted when creating AHP definitions.
  • Adds regression coverage for the generated session configuration.
File Description
agentHostAutomationStore.ts Adds permission translation.
agentHostAutomationStore.test.ts Verifies the translated configuration.

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

@ulugbekna
Ulugbek Abdullaev (ulugbekna) marked this pull request as ready for review September 2, 2026 14:22
@ulugbekna
Ulugbek Abdullaev (ulugbekna) merged commit 3a01d74 into main Sep 2, 2026
41 checks passed
@ulugbekna
Ulugbek Abdullaev (ulugbekna) deleted the chrmarti/agents/bugfix-general-issue branch September 2, 2026 14:23
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Sep 2, 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.

Automations with Autopilot no longer get Assisted Permissions

3 participants