Files
vscode/cli
Connor Peet 8d1fba12d9 cli: support pinning initial agent host version for upgrade testing (#319671)
* 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.
2026-06-03 14:41:05 +10:00
..