Files
vscode/scripts
b5e1c2c740 test: add managed settings compatibility mock responses (#330320)
* chat: negotiate managed settings client compatibility

Report the VS Code managed-settings client version, securely transport the User-Agent, parse compatibility responses, and preserve fail-closed state across refreshes.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chat: simplify managed settings client identity

Use the existing browser-safe Editor-Version convention from productService and remove the dedicated User-Agent IPC transport.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chat: report bundled Copilot runtime version

Send the runtime version from product metadata alongside the VS Code editor identity and include both values in policy diagnostics.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test: align peer chat sandbox expectation

Use the shared sandbox config builder introduced on main so the peer-chat assertion follows the current sandbox semantics.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chat: use standard AI feature gate for compatibility

Route managed-settings compatibility failures through the existing entitlement hidden state instead of bespoke chat and Agents-window blocking.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chat: apply compatibility to policy gate context

Drive both the standard policy-gate context and entitlement hidden state when managed-settings compatibility is rejected, and cover their combined transitions.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chat: show minimum compatible client version

Include the server-provided minimum client version in the managed-settings update notification, with a fallback for malformed responses.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chat: show compatibility warning as modal

Use the built-in VS Code modal dialog for managed-settings compatibility lockout while preserving update, learn-more, close, and keyboard-dismiss actions.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test: add managed settings compatibility mock responses

Add 404 and client_update_required presets plus configurable response status support to the local policy server.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test: fix managed settings mock controls

Reset schema-generated examples to a successful response and document that selected presets must be applied.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test: allow managed settings client identity header

Permit Editor-Version in mock endpoint CORS preflights so local testing matches the simplified client contract.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test: allow Copilot runtime identity header

Permit Copilot-Runtime-Version in mock endpoint CORS preflights alongside Editor-Version.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test: expose mock response status

Show and edit each mock endpoint's HTTP response status in the GUI, validate the supported range, and autosave it with the response body.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Dmitriy Vasyura <dmitriv@microsoft.com>
2026-08-13 07:28:41 -07:00
..
2026-06-09 23:48:23 +02:00