mirror of
https://github.com/microsoft/vscode.git
synced 2026-06-21 23:00:46 -05:00
* cli: support pinning initial agent host version for upgrade testing - There was no way to exercise the agent host upgrade flow locally, since the CLI always starts the latest server version and has nothing older to upgrade from. - Adds a VSCODE_CLI_INITIAL_AH_VERSION env var that pins the commit the agent host is first downloaded and started at, while leaving subsequent upgrades to resolve the real latest version, so the full download + restart upgrade path can be driven on demand. (Commit message generated by Copilot) * cli: restrict initial agent host version override to hex digits Addresses PR review: the env var value flows into URL and filesystem paths, so restrict it to hex digits (and trim whitespace) to prevent path separators or traversal sequences.