fix: shell-launch copilot on windows

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Copilot CLI
2026-03-21 10:44:00 +01:00
co-authored by Copilot
parent 2fbb5dc5a5
commit 56c81fe053
4 changed files with 144 additions and 3 deletions
+6
View File
@@ -7,13 +7,17 @@ describe('createSidecarEnvironment', () => {
expect(
createSidecarEnvironment({
PATH: 'C:\\tools',
APPDATA: 'C:\\Users\\mail\\AppData\\Roaming',
COPILOT_CLI: '1',
COPILOT_LOADER_PID: '1234',
copilot_run_app: '1',
bun_install: 'C:\\Users\\mail\\.bun',
NODE_OPTIONS: '--no-warnings',
electron_run_as_node: '1',
npm_config_user_agent: 'bun/1.3.6',
}),
).toEqual({
APPDATA: 'C:\\Users\\mail\\AppData\\Roaming',
PATH: 'C:\\tools',
});
});
@@ -24,11 +28,13 @@ describe('createSidecarEnvironment', () => {
PATH: 'C:\\tools',
HOME: 'C:\\Users\\mail',
FORCE_COLOR: '1',
HTTPS_PROXY: 'http://proxy.local:8080',
}),
).toEqual({
PATH: 'C:\\tools',
HOME: 'C:\\Users\\mail',
FORCE_COLOR: '1',
HTTPS_PROXY: 'http://proxy.local:8080',
});
});
});