automations: apply Assisted permissions for Autopilot - #333949
Merged
Ulugbek Abdullaev (ulugbekna) merged 1 commit intoSep 2, 2026
Conversation
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>
Christof Marti (chrmarti)
requested review from
Ulugbek Abdullaev (ulugbekna)
and
a balanced review from Copilot
September 2, 2026 07:59
Copilot started reviewing on behalf of
Christof Marti (chrmarti)
September 2, 2026 07:59
View session
Contributor
There was a problem hiding this comment.
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
autopilottoassistedwhen 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.
Ulugbek Abdullaev (ulugbekna)
approved these changes
Sep 2, 2026
Ulugbek Abdullaev (ulugbekna)
marked this pull request as ready for review
September 2, 2026 14:22
Ulugbek Abdullaev (ulugbekna)
enabled auto-merge (squash)
September 2, 2026 14:22
Ulugbek Abdullaev (ulugbekna)
deleted the
chrmarti/agents/bugfix-general-issue
branch
September 2, 2026 14:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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"