Repository navigation
[release/1.148] agentHost: prepare Canvas data directory (cherry-pick #349930) - #350017
Merged
Dileep Yavanmandha (dileepyavan) merged 1 commit intoNov 24, 2026
Merged
Dileep Yavanmandha (dileepyavan) merged 1 commit into
Dileep Yavanmandha (dileepyavan) merged 1 commit into
Conversation
Backport #349930 to release/1.148. (cherry picked from commit 02b4308) Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The sandbox-boundary backport needs maintainer runtime validation because blocked restoration of the pinned SDK leaves launcher tests and live macOS sandbox verification unrun.
No open issues 🎉
What changed in this PR
Backports #349930 to release/1.148 to address Canvas first-save failures in sandboxed Agent Host sessions. The host prepares the Canvas data directory before SDK create or resume, without broadening sandbox permissions.
Changes:
- Create the directory only when extensions and sandboxing are enabled and the launch policy grants the exact path.
- Share directory-path construction between sandbox configuration and session launch.
- Add create/resume regression coverage and document directory preparation.
No actionable findings remain. Launcher tests and live sandbox verification remain pending because of the reported SDK dependency blocker.
| File | Description |
|---|---|
src/vs/workbench/contrib/sessions/providers/agentHost/AGENT_HOST_SESSIONS_PROVIDER.md |
Documents directory preparation before SDK create or resume. |
src/vs/platform/agentHost/test/node/copilotSessionLauncherTestHelpers.ts |
Allows tests to supply an isolated Copilot home. |
src/vs/platform/agentHost/test/node/copilotSessionLauncher.test.ts |
Covers granted and withheld directory preparation for create and resume. |
src/vs/platform/agentHost/node/copilot/sandboxConfigForSdk.ts |
Extracts the shared Canvas data-directory helper. |
src/vs/platform/agentHost/node/copilot/copilotSessionLauncher.ts |
Creates the explicitly granted directory before opening the SDK session. |
Review effort: Balanced
Dmitriy Vasyura (dmitrivMS)
approved these changes
Nov 24, 2026
roblourens
approved these changes
Nov 24, 2026
Dileep Yavanmandha (dileepyavan)
merged commit Nov 24, 2026
46796f4
into
release/1.148
52 checks passed
Dileep Yavanmandha (dileepyavan)
deleted the
DileepY/cherry-pick-349930-1.148
branch
November 24, 2026 02:12
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.
Backports #349930 to
release/1.148. Refs #348764.Creates the Canvas extension-data directory on the host before SDK create or resume, only when extensions and sandboxing are enabled and the launch policy grants that exact directory. This fixes first-save failures on a fresh Copilot home without broadening sandbox permissions. Includes launcher regression tests and the original documentation update.
Cherry-picked merged commit
02b430888f144baf673ed898f6457139cf0e7fdawithout code changes or conflicts. Independently based onrelease/1.148atdec73890cb0bc7fd437520dbc7e74c55df259cd3.Validation
git diff --cached --check: passed before commit.git patch-id --stableon the source commit and backport: identical.npm run -s precommit: passed; hygiene checked all 5 changed files and oxlint checked 4 TypeScript files. Commit signing remained enabled.npm run compile-client: blocked by missing@microsoft/copilot-sdk.pnpm install --frozen-lockfileon the identical release dependency manifests failed with HTTP 404 for@microsoft/[email protected]. Locked development/build tooling was restored separately so commit hooks could run.How to test
After dependencies and compilation are available, run:
With a fresh Copilot home, start or resume a sandboxed session with Canvas enabled and save Canvas state. Confirm the granted extension-data directory exists before the SDK opens, and withheld access does not create it.