Commit Graph

5171 Commits

Author SHA1 Message Date
Justin Chen
f170fd1f23 GA vision in vs code (#323965)
* GA vision in vs code

* address settings changes
2026-07-01 23:49:35 +00:00
dileepyavan
c63b0bab6b Add Responses API cache control markers (#321850)
* Add Responses API cache control markers

* Refactoring code

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Gate Responses API cache breakpoints by model support

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-01 22:30:36 +00:00
Anthony Kim
d892b5773d Agent Host: Use SDK shell exit metadata for command decorations (#323922)
* use sdk shell_exit for command deocrations

* address copilot feedback

* comment
2026-07-01 15:18:00 -07:00
Osvaldo Ortega
93e8c6cef9 Task API auth fix (#323951) 2026-07-01 22:09:32 +00:00
Logan Ramos
cefb2508c4 Support server side powered model warnings (#323926)
* Support server side powered model warnings

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix comnments

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-01 20:51:34 +00:00
Raymond Zhao
444aca6149 chore: run npm audit fix (#323923) 2026-07-01 20:49:54 +00:00
dileepyavan
2daffe1ba0 Refactoring and prompts update (#323827)
* Add Responses API cache control markers

* Refactoring code

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Gate Responses API cache breakpoints by model support

* Disable Responses API reasoning summaries

* reverting cache commits

* Remove Responses API cache breakpoint handling

* gpt updates

* gpt updates

* gpt updates

* updating code for review comments

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-01 18:34:27 +00:00
Vritant Bhardwaj
346c6caf10 Merge pull request #323907 from microsoft/agents/byok-model-default-setting
Disable GitHub Copilot utility models by default for BYOK models
2026-07-01 11:09:27 -07:00
Logan Ramos
e0b6f9fabd Support rednering auto hover in model picker (#323896)
* Support rednering auto hover in model picker

* Update comments
2026-07-01 16:53:44 +00:00
Dirk Bäumer
132a773459 Enhance telemetry for findTextInFilesTool with requested max results (#323892)
* Enhance telemetry for findTextInFilesTool with requested max results

* Fix telemetry maxResults parameter handling in FindTextInFilesTool

* Fix GDPR comment
2026-07-01 16:44:27 +00:00
vritant24
33b9f3a78b feat: add configuration for using Copilot models in BYOK scenarios and update utility model handling 2026-07-01 09:30:45 -07:00
Vritant Bhardwaj
d13a45f205 Merge pull request #323764 from microsoft/agents/investigate-unit-test-failure-root-cause-898cd05d
fix: add unit test for copilotChatEndpoint failure scenario
2026-07-01 08:27:42 -07:00
Don Jayamanne
bce3ff255b Update @github/copilot and @github/copilot-sdk to version 1.0.67 and 1.0.5-preview.1 respectively (#323862)
* Update @github/copilot and @github/copilot-sdk to version 1.0.67 and 1.0.5-preview.1 respectively

- Updated package.json and package-lock.json in both root and remote directories to reflect the new versions of @github/copilot and @github/copilot-sdk.
- Modified copilotSessionLauncher.ts to include new hooks in the Copilot session configuration.

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-01 14:07:14 +00:00
Ulugbek Abdullaev
6bd7400f1c nes-datagen: generate training data from continuous recordings (#323855)
* utils: document binarySearch

* nes-datagen: generate training data from continuous recordings

Continuous enhanced telemetry now ships sliding-window recordings that, unlike per-request alternative-action recordings, carry no requestTime. The datagen pipeline needs a point to split each recording into edit history before/after, so this adds a pluggable pivot strategy (starting with Random, selectable via --pivot-strategy) and a new continuous/ pipeline module that replays a recording at the chosen pivot to produce a processed row.

Along the way this consolidates the pipeline's error and index handling: a shared WithRowIndex<T> replaces the ad-hoc { originalRowIndex, ... } pairs, per-record processing returns Result<IProcessedRow, Error> instead of field-presence unions, and failures surface as original Error objects (no string round-tripping). The telemetry sender's continuous payload is now the documented IContinuousRecording type.

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

* nes-datagen: label alt-action replay errors by originalRowIndex

Address PR review: the alternative-action path mislabeled diagnostics when
earlier records failed to parse.

- processAllRows: push replay errors with the row's true `originalRowIndex`
  instead of its position in the filtered `rows` array (parse failures make
  `rows` sparse, so the two diverge).
- loadAndProduceProcessedRows: resolve `languageForRow` via an
  `originalRowIndex`-keyed Map rather than positional `rows[i]`, matching how
  callers pass `e.originalRowIndex`.
- Clarify the `recordCount` doc: it counts successfully-parsed records (parse
  failures are counted separately in `parseErrors`).
- Add a regression spec asserting replay errors carry the row index, not the
  array position.

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

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-07-01 18:41:11 +05:00
Vritant Bhardwaj
e9b536b001 Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-30 15:24:13 -07:00
Logan Ramos
04b756ba9f Implement explainability for Auto (#323759)
* Implement explainability for Auto

* Revert responses api change

* Fix responses api change

* Fix comments

* fix test
2026-06-30 20:03:00 +00:00
vritant24
e45ed3dfd5 Agent Host changes for agents/investigate-unit-test-failure-root-cause-898cd05d 2026-06-30 12:00:32 -07:00
Don Jayamanne
2bdc0be5a2 Update @github/copilot and related dependencies to version 1.0.66-2 (#323657)
* Update @github/copilot and related dependencies to version 1.0.66-2

- Bumped @github/copilot to version 1.0.66-2 in package.json and package-lock.json.
- Updated optional dependencies for various platforms to match the new version.
- Adjusted @github/copilot-sdk to version 1.0.5-preview.0.
- Enhanced filtering logic in copilotCLITools.ts to include additional attachment types.

* Enhance attachment rendering in CopilotCLISession with additional GitHub attachment types

* Remove optional suppressResumeEvent property from ICopilotResumeSessionLaunchPlan interface

---------

Co-authored-by: Anthony Kim <62267334+anthonykim1@users.noreply.github.com>
2026-06-30 17:49:47 +00:00
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
Dirk Bäumer
2a8040d14f Enhance telemetry for FindTextInFilesTool (#323737)
Enhance telemetry for FindTextInFilesTool: include default max results and cap
2026-06-30 17:28:02 +00:00
Dirk Bäumer
33dec983b5 Make max results configurable (#323729)
* Make max results configurable

* Define settings in package.json

* Sanitize config values
2026-06-30 15:19:33 +00:00
vs-code-engineering[bot]
2ad1a5209e [cherry-pick] Skip for now the sanity checks 2026-06-30 08:53:51 +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
dileepyavan
77a5f2e4a8 Disable Responses API reasoning summaries (#323639)
* Add Responses API cache control markers

* Refactoring code

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Gate Responses API cache breakpoints by model support

* Disable Responses API reasoning summaries

* reverting cache commits

* Remove Responses API cache breakpoint handling

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-30 00:30:58 +00:00
dependabot[bot]
e0f1be7098 build(deps): bump protobufjs, @opentelemetry/exporter-logs-otlp-grpc, @opentelemetry/exporter-logs-otlp-http, @opentelemetry/exporter-logs-otlp-proto, @opentelemetry/exporter-metrics-otlp-grpc, @opentelemetry/exporter-metrics-otlp-http, @opentelemetry/exporter-metrics-otlp-proto, @opentelemetry/exporter-trace-otlp-grpc, @opentelemetry/exporter-trace-otlp-http and @opentelemetry/exporter-trace-otlp-proto in /extensions/copilot (#323447)
build(deps): bump protobufjs, @opentelemetry/exporter-logs-otlp-grpc, @opentelemetry/exporter-logs-otlp-http, @opentelemetry/exporter-logs-otlp-proto, @opentelemetry/exporter-metrics-otlp-grpc, @opentelemetry/exporter-metrics-otlp-http, @opentelemetry/exporter-metrics-otlp-proto, @opentelemetry/exporter-trace-otlp-grpc, @opentelemetry/exporter-trace-otlp-http and @opentelemetry/exporter-trace-otlp-proto

Bumps [protobufjs](https://github.com/protobufjs/protobuf.js) to 7.6.4 and updates ancestor dependencies [protobufjs](https://github.com/protobufjs/protobuf.js), [@opentelemetry/exporter-logs-otlp-grpc](https://github.com/open-telemetry/opentelemetry-js), [@opentelemetry/exporter-logs-otlp-http](https://github.com/open-telemetry/opentelemetry-js), [@opentelemetry/exporter-logs-otlp-proto](https://github.com/open-telemetry/opentelemetry-js), [@opentelemetry/exporter-metrics-otlp-grpc](https://github.com/open-telemetry/opentelemetry-js), [@opentelemetry/exporter-metrics-otlp-http](https://github.com/open-telemetry/opentelemetry-js), [@opentelemetry/exporter-metrics-otlp-proto](https://github.com/open-telemetry/opentelemetry-js), [@opentelemetry/exporter-trace-otlp-grpc](https://github.com/open-telemetry/opentelemetry-js), [@opentelemetry/exporter-trace-otlp-http](https://github.com/open-telemetry/opentelemetry-js) and [@opentelemetry/exporter-trace-otlp-proto](https://github.com/open-telemetry/opentelemetry-js). These dependencies need to be updated together.


Updates `protobufjs` from 7.5.8 to 7.6.4
- [Release notes](https://github.com/protobufjs/protobuf.js/releases)
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/protobufjs-v7.6.4/CHANGELOG.md)
- [Commits](https://github.com/protobufjs/protobuf.js/compare/protobufjs-v7.5.8...protobufjs-v7.6.4)

Updates `@opentelemetry/exporter-logs-otlp-grpc` from 0.214.0 to 0.219.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.214.0...experimental/v0.219.0)

Updates `@opentelemetry/exporter-logs-otlp-http` from 0.214.0 to 0.219.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.214.0...experimental/v0.219.0)

Updates `@opentelemetry/exporter-logs-otlp-proto` from 0.214.0 to 0.219.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.214.0...experimental/v0.219.0)

Updates `@opentelemetry/exporter-metrics-otlp-grpc` from 0.214.0 to 0.219.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.214.0...experimental/v0.219.0)

Updates `@opentelemetry/exporter-metrics-otlp-http` from 0.214.0 to 0.219.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.214.0...experimental/v0.219.0)

Updates `@opentelemetry/exporter-metrics-otlp-proto` from 0.214.0 to 0.219.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.214.0...experimental/v0.219.0)

Updates `@opentelemetry/exporter-trace-otlp-grpc` from 0.214.0 to 0.219.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.214.0...experimental/v0.219.0)

Updates `@opentelemetry/exporter-trace-otlp-http` from 0.214.0 to 0.219.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.214.0...experimental/v0.219.0)

Updates `@opentelemetry/exporter-trace-otlp-proto` from 0.214.0 to 0.219.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.214.0...experimental/v0.219.0)

---
updated-dependencies:
- dependency-name: "@opentelemetry/exporter-logs-otlp-grpc"
  dependency-version: 0.219.0
  dependency-type: direct:production
- dependency-name: "@opentelemetry/exporter-logs-otlp-http"
  dependency-version: 0.219.0
  dependency-type: direct:production
- dependency-name: "@opentelemetry/exporter-logs-otlp-proto"
  dependency-version: 0.219.0
  dependency-type: direct:production
- dependency-name: "@opentelemetry/exporter-metrics-otlp-grpc"
  dependency-version: 0.219.0
  dependency-type: direct:production
- dependency-name: "@opentelemetry/exporter-metrics-otlp-http"
  dependency-version: 0.219.0
  dependency-type: direct:production
- dependency-name: "@opentelemetry/exporter-metrics-otlp-proto"
  dependency-version: 0.219.0
  dependency-type: direct:production
- dependency-name: "@opentelemetry/exporter-trace-otlp-grpc"
  dependency-version: 0.219.0
  dependency-type: direct:production
- dependency-name: "@opentelemetry/exporter-trace-otlp-http"
  dependency-version: 0.219.0
  dependency-type: direct:production
- dependency-name: "@opentelemetry/exporter-trace-otlp-proto"
  dependency-version: 0.219.0
  dependency-type: direct:production
- dependency-name: protobufjs
  dependency-version: 7.6.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-29 14:03:04 -07:00
Bhavya U
700f92779f Disable semantic_search on BYOK/custom endpoints (#323605)
chat: disable semantic_search on BYOK/custom endpoints

The semantic_search (codebase) tool relies on embeddings that require a
Copilot token source. On BYOK / custom (non-CAPI) endpoints those embeddings
are unavailable, and when the GitHub authentication provider is disabled the
embeddings lookup times out waiting for the provider and aborts the entire
chat turn instead of degrading gracefully.

Gate semantic_search off for non-CAPI endpoints alongside the specialized
subagents so it is never offered (even if manually enabled via the tool
picker) when it cannot work. Add tests covering the CAPI and BYOK cases.

Fixes #322525

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-29 20:25:30 +00:00
dependabot[bot]
56573d6930 build(deps): bump markdown-it from 14.1.1 to 14.2.0 in /extensions/copilot (#321789)
build(deps): bump markdown-it in /extensions/copilot

Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 14.1.1 to 14.2.0.
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/14.1.1...14.2.0)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-version: 14.2.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-29 11:45:31 -07:00
Christof Marti
3cc09c02ef Record proxy type (#323585) 2026-06-29 18:45:15 +00:00
dependabot[bot]
1ae64cf31d build(deps): bump js-yaml and @secretlint/formatter in /extensions/copilot (#323529)
build(deps): bump js-yaml and @secretlint/formatter

Bumps [js-yaml](https://github.com/nodeca/js-yaml) to 4.3.0 and updates ancestor dependency [@secretlint/formatter](https://github.com/secretlint/secretlint). These dependencies need to be updated together.


Updates `js-yaml` from 4.1.1 to 4.3.0
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.1.1...4.3.0)

Updates `@secretlint/formatter` from 10.1.1 to 10.2.2
- [Release notes](https://github.com/secretlint/secretlint/releases)
- [Commits](https://github.com/secretlint/secretlint/compare/v10.1.1...v10.2.2)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.3.0
  dependency-type: direct:development
- dependency-name: "@secretlint/formatter"
  dependency-version: 10.2.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-29 11:43:49 -07:00
Vritant Bhardwaj
398cd5b425 Merge pull request #323532 from microsoft/agents/investigate-unit-test-failure-root-cause
BYOK: support custom endpoint model options
2026-06-29 10:41:38 -07:00
Martin Aeschlimann
ac174e660b customization UI: polish source folder pickers (#323527)
* customization UI: polish source folder pickers

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* update

* update

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-29 17:28:25 +00:00
vritant24
e3f25e9524 chat: test custom endpoint model options
- Prevents regressions where model-configured sampling values are lost before endpoint request construction.
- Verifies omission and precedence behavior because providers may reject generated defaults even when they accept explicit request values.
- Covers Chat Completions, Responses, and Messages so every supported custom endpoint API remains compatible.

(Commit message generated by Copilot)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-29 10:27:42 -07:00
vritant24
4034ee46ad chat: support custom endpoint model options
- Allows custom endpoint models to replace Copilot sampling defaults so providers with fixed parameter requirements can accept requests.
- Supports explicit parameter omission, which lets model servers apply required defaults instead of receiving incompatible generated values.
- Preserves explicit per-request options and applies the same behavior across Chat Completions, Responses, and Messages APIs.

Fixes #321514

(Commit message generated by Copilot)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-29 10:27:38 -07:00
Giuseppe Cianci
2deeac48d6 Merge pull request #323169 from microsoft/kimi-prompt
Add Kimi Prompt
2026-06-29 16:20:22 +02:00
Robo
4b6f5e55bb chore: bump electron@42.5.0 (#321629)
* chore: bump electron@42.4.0

* chore: apply temp dir workaround for short paths

* chore: use 24.15.x for CI node

* chore: update nodejs build

* chore: bump electron@42.5.0

* fix: unblock playwright install on node 24.17

Node 24.16+ made Readable pause()/resume() a no-op on destroyed streams
which makes yauzl 2.x / extract-zip 2.x and older playwright extraction
hang forever.

- extensions/copilot: add "yauzl": "^3.3.1" override (was missed by #318682)
  so electron and @vscode/vsce no longer resolve the broken yauzl 2.10, fixing the
  hung `npm ci` in the Copilot and Extract chat-lib pipelines.
- extensions/copilot: bump electron ^39.8.5 -> ^42.5.0 so its install
  script uses the native @electron-internal/extract-zip instead of extract-zip.
- bump @playwright/test ^1.56.1 -> ^1.61.1 so `playwright install`
  uses the fixed extractor, unblocking the "Download Electron and
  Playwright" step in all electron test pipelines.

* chore: update build

* agentHost: fix macOS sandbox smoke sentinel parsing

On macOS CI, the AgentHost sandbox smoke test resolves the shell to
/bin/sh, which uses the sentinel-based completion path. In that path, the
parser could consume the echoed sentinel command text
(`<<<COPILOT_SENTINEL_..._EXIT_$?>>>`) before the real numeric marker
arrived, causing a false `Exit code: -1` failure even though the command
later completed successfully.

Harden the sentinel parser to ignore echoed/non-numeric sentinel text
and use the latest complete numeric marker instead. Also force the
macOS AgentHost sandbox smoke test to use /bin/sh and assert that in the
suite log so local runs exercise the same path as CI.

Adds a regression test for echoed sentinel command text.

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

* chore: update screenshot baseline after playwright bump

* chore: bump distro

* chore: fix typecheck

* chore: bump distro

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-29 13:53:48 +00:00
vs-code-engineering[bot]
6387b615a0 Bump version to 1.128.0 (#323406)
* Bump version to 1.128.0

* signing commit

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Giuseppe Cianci <gcianci@microsoft.com>
2026-06-29 09:45:37 +00:00
Vijay Upadya
e13c4c953d Update gemini3 prompt and tool call flags (#323364)
* Update gemini3 flags

* update package json default values
2026-06-28 21:07:45 +00:00
Ulugbek Abdullaev
4fc2b3348b NES: cache cross-file suggestions under the active document (#323150)
* NES: cache cross-file suggestions under the active document

When the model returns a Next Edit Suggestion for a document other than
the one being edited (cross-file NES), it was only cached under the target
document, so it could not be re-served until the user navigated there.
Also cache an `activeDoc (content + edit window) -> edit-in-target`
association so the suggestion can be re-served from cache while the cursor
is still in the active document.

A cross-file entry is served only while its target document is open and
byte-identical to the snapshot the edit's offsets index into; otherwise the
read path treats it as a cache miss and refetches, rather than serving a
misplaced edit or getting stuck re-serving a dead entry until the active
document changes. At stream end the active document is no longer cached as
"no edit" when a cross-file entry was just stored under the same key, which
would otherwise clobber it.

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

* Dispose provider and documents in runCrossFileScenario

Tear down the NextEditProvider (which registers autoruns/watchers on
openDocuments) and both documents at the end of each cross-file scenario
run so the tests are self-contained and do not accumulate observers.

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-27 17:02:55 +05:00
Zhichao Li
e5ec5abcc6 fix: register otel protocol/serviceName/resourceAttributes/headers config keys to match package.json 2026-06-26 21:38:28 -07:00
Zhichao Li
7b0180b3c3 docs: update OTel user + agent-host docs for managed-settings precedence and new settings 2026-06-26 21:38:27 -07:00
Zhichao Li
e9a25536d6 refactor: address PR review — policy precedence docs, grpc transport inference, prototype-pollution hardening 2026-06-26 21:38:26 -07:00
Zhichao Li
649467ab6d fix: align agentOTelEnv test config with widened otlpProtocol type 2026-06-26 21:38:25 -07:00
Zhichao Li
597760e9ba Merge remote-tracking branch 'origin/main' into zhichli/otelpolicy2 2026-06-26 21:38:24 -07:00
Zhichao Li
65bcc23a6d docs: remove internal OTel managed-settings planning notes 2026-06-26 16:58:47 -07:00
Zhichao Li
6410d9e8f5 docs: record serviceName/resourceAttributes/headers delivery in sprint 2026-06-26 16:04:32 -07:00
Zhichao Li
bb524011b6 feat: deliver managed OTel headers to the Copilot Chat extension 2026-06-26 16:02:53 -07:00
Zhichao Li
fce8c4fea1 feat: deliver managed OTel resourceAttributes to both surfaces 2026-06-26 15:54:59 -07:00
Zhichao Li
ee15deed1c feat: deliver managed OTel serviceName to both surfaces 2026-06-26 15:44:01 -07:00
Zhichao Li
0fdb82fd27 docs: revise OTel managed-settings sprint plan for headers/resourceAttributes/serviceName
Records the runtime spike: the headless agent host resolves OTel from env only and
doesn't self-fetch managed telemetry, but build_resource reads OTEL_SERVICE_NAME /
OTEL_RESOURCE_ATTRIBUTES env. Revised plan delivers serviceName + resourceAttributes
to both surfaces (env for the host, programmatic for the extension) and headers to the
extension only; agent-host headers stay deferred (env would leak the token to tool
subprocesses).
2026-06-26 15:27:46 -07:00
Zhichao Li
4be6140abd docs: update OTel managed-settings plan/sprint for protocol parity 2026-06-26 13:39:17 -07:00