Skip to content

[cherry-pick] terminal: fix Linux sandbox wrapper env assignment#315924

Open
vs-code-engineering[bot] wants to merge 1 commit into
mainfrom
cherry-pick/315828
Open

[cherry-pick] terminal: fix Linux sandbox wrapper env assignment#315924
vs-code-engineering[bot] wants to merge 1 commit into
mainfrom
cherry-pick/315828

Conversation

@vs-code-engineering
Copy link
Copy Markdown
Contributor

Cherry-pick of #315828 from release/1.120.

Fixes #314695.

What changed

  • move ELECTRON_RUN_AS_NODE=1 onto the sandbox runtime invocation itself before the Linux temp-dir wrapper prepends cd <tmp>;
  • keep the remote-environment path unchanged while fixing the local Electron launch path
  • add a regression assertion covering the cd ...; ELECTRON_RUN_AS_NODE=1 PATH=... wrapper shape

Why

On Linux, the wrapper could be emitted as ELECTRON_RUN_AS_NODE=1 cd <tmp>; ..., which only applied the environment variable to cd. That caused code to open cli.js for editing instead of running the sandbox runtime with --settings and -c.

Copilot AI review requested due to automatic review settings May 12, 2026 01:13
@vs-code-engineering vs-code-engineering Bot added the cherry-pick-artifact Auto-generated cherry-pick PR label May 12, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-artifact Auto-generated cherry-pick PR

Projects

None yet

3 participants