Commit Graph

19 Commits

Author SHA1 Message Date
Giuseppe Cianci c04d3b4d48 Fix Copilot sanity tests (#323721)
* Make Copilot sanity tests mint their own token instead of using static copilot-token

The Copilot sanity tests resolve their Copilot token via
getOrCreateTestingCopilotTokenManager, which prefers VSCODE_COPILOT_CHAT_TOKEN
(set here from the `copilot-token` Key Vault secret) over GITHUB_OAUTH_TOKEN.

`copilot-token` holds a pre-minted Copilot token that is refreshed out-of-band
by a separate scheduled pipeline. When that refresher broke (the GitHub OAuth
secret it reads was rotated/removed during a security incident), `copilot-token`
silently went stale and expired. The static token manager hands the expired
token to CAPI `/models`, which returns 401, leaving no resolved model and
surfacing the misleading "server did not mark a chat fallback model" error.

Drop the static `copilot-token` so the tests fall through to GITHUB_OAUTH_TOKEN
(`capi-oauth-pipeline-token`) and exchange it for a fresh Copilot token on
demand. This path self-refreshes and removes the dependency on the external
refresher.

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

* Re-enable sanity tests and surface model-fetch error

- Re-enable the three Copilot sanity tests that were temporarily skipped in
  #323684 now that token resolution is fixed.
- Surface the underlying model-fetch error (e.g. an expired-token 401) from
  ModelMetadataFetcher resolve methods instead of the misleading
  "server did not mark a chat fallback model" message.

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

* Omit reasoning summary instead of sending invalid 'off' value

#323639 disabled Responses API reasoning summaries by hard-coding
`reasoning.summary = 'off'`, but the Responses API only accepts
'concise', 'detailed', or 'auto' (or omitting the field to disable).
Models such as gpt-5.3-codex reject 'off' with HTTP 400
invalid_request_body, which surfaced as failing Copilot sanity tests
once they could reach the model.

Set summary to undefined so the field is omitted (summaries stay
disabled, as intended) and update the unit test accordingly.

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

* Decouple reasoning-preserve test from disabled summary

The "should preserve reasoning object when thinking is supported" test
relied on the reasoning summary always being present to keep
body.reasoning defined. Now that the summary is omitted, give the test
model reasoning_effort support so body.reasoning is populated via effort,
which is what the test actually means to verify.

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

* signing commit

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-30 17:48:12 +00:00
Bhavya U 47af1fb17e Rename capi-oauth secret (#323667)
Rename capi-oauth secret to capi-oauth-pipeline-token

The capi-oauth Key Vault secret value leaked. Rename the secret
reference to capi-oauth-pipeline-token so that revoking the old
capi-oauth secret cuts off access for any other harness still
pointing at the old name. The new name is also more descriptive of
its purpose (CAPI OAuth token used in the automation pipeline).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-30 06:13:58 +00:00
Alexandru Dima 3a2257beca copilot: log setup errors to stdout for Windows CI visibility (#321217)
The getEnv.mts error handler only used console.error (stderr), which gets
swallowed by the npm/PowerShell chain on Windows CI agents. Add a
console.log call so the error message appears in Azure DevOps logs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-12 22:46:25 +00:00
Martin Aeschlimann 904c914799 copilot: updateSources (#315005)
* copilot: updateSources

* update
2026-05-07 18:13:04 +02:00
Matt Bierner 371c4a0a73 Use root eslint for copilot 2026-04-28 15:20:59 -07:00
Matt Bierner 1a54933643 Revert "Use main eslint config for copilot extension too" 2026-04-23 15:17:22 -07:00
Matt Bierner 766e6a9698 More fixes
Co-authored-by: Copilot <copilot@github.com>
2026-04-20 23:14:43 -07:00
Logan Ramos 4c01ed2e76 Stop fetching GHCR pat (#309086)
* Stop fetching GHCR pat

* MAKE IT RED
2026-04-10 19:48:27 +00:00
Don Jayamanne 60b0d9ca1a Update sources to include date.ts (#3359) 2026-02-02 08:27:31 +00:00
Copilot 288fd20100 Replace localize with l10n.t and add ESLint rule to prevent nls imports (#2301)
* Initial plan

* Replace localize with l10n.t and add ESLint rule to prevent nls imports

Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>

* Use named import { l10n } from 'vscode' in nuget.ts

Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>

* replace errorMessage usage with a l10n.t based one

* apply

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>
Co-authored-by: Tyler Leonhardt <tyleonha@microsoft.com>
2025-12-03 04:16:52 +00:00
SteVen Batten c26394e68b remove dep on dev kv client (#2176) 2025-11-25 00:18:03 +00:00
Martin Aeschlimann f2bceb9945 add promptFileParser (#1477) 2025-10-21 21:24:00 +00:00
Martin Aeschlimann 3f4cb59fc5 copy vscode sources, add base/common/yaml (#1468)
* copy vscode sources, add base/common/yaml

* fix tests (due to change of toStringEdit)
2025-10-21 17:22:20 +00:00
Ross Wollman 8ab39ea0f1 simulator: use Copilot Chat Token (#1288) 2025-10-10 17:39:14 +00:00
Ulugbek Abdullaev 2a236a3a51 nes: remove XTAB_KEY secret pull (#1070) 2025-09-20 18:27:54 +00:00
Alexandru Dima 8956a62b06 Reuse more code from vscode (#836) 2025-08-29 16:30:23 +00:00
Alexandru Dima 6ddc031f00 Reduce code in /shims/ and rely on code coming in from vscode (#784)
* Reduce code in /shims/ and rely on code coming in from vscode

* update snapshots as a consequence of using MarkdownString from vscode
2025-08-29 14:10:37 +00:00
Henning Dieterichs 5a50ffb962 Copies sources from vscode (#688)
* Copy sources from vscode

* NodeJS.Timeout -> TimeoutHandle

* Fixes copy sources fallout

* Fixes snapshots
2025-08-20 09:46:00 +00:00
kieferrm 333d9a4053 Hello Copilot
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-06-27 11:35:20 +02:00