Commit Graph
1107 Commits
Author SHA1 Message Date
vs-code-engineering[bot]andgithub-actions[bot] 64a666e787 Bump version to 1.135.0 (#331156)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-17 08:34:56 +00:00
Bhavya UandCopilot 79c2382913 Revert to showing all context size options (#330737)
* Revert to showing all context size options

Removes the `github.copilot.chat.preferLongContext.enabled` setting and
reverts to always showing both the default and long-context options in the
model picker. Also removes the now-dead `freeLongContext` plumbing that the
setting gated.

Reverts:
- https://github.com/microsoft/vscode/pull/322950
- https://github.com/microsoft/vscode/pull/323116
- https://github.com/microsoft/vscode/pull/324650
- https://github.com/microsoft/vscode/pull/328628

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

* Add context-size picker coverage for both surfaces

Addresses PR review: cover the reverted "always show both context options"
behavior for each independently implemented picker surface.

- languageModelAccess.test.ts: a free/no-surcharge endpoint publishes both
  the default and full windows, with the smaller window as the default.
- copilotCliModels.spec.ts: a CLI model with defaultContextMax < maxInputTokens
  and no long-context surcharge exposes both sizes, smaller as default.

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

* Default to the longer window for free long-context models

Keeps both context-size options in every picker, but when the long-context
tier has no surcharge (free long context) the default selection — and the
no-selection behavioral fallback — is the full window rather than the smaller
default tier. Models with a long-context surcharge still default to the
smaller tier so users opt into the extra cost.

Applied consistently across all four surfaces:
- Main chat picker: getContextSizeOptions default + applyContextSizeOverride fallback
- Copilot CLI picker: buildConfigurationSchema default + resolveContextTier fallback
- Agent host: _createContextSizeConfigSchemaProperty default + getCopilotContextTier
  via the restored freeLongContext flag (and hasLongContextSurcharge helper)

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

* Shorten context-size comments

Condense the free-long-context comments added across the picker surfaces to
concise one-liners; no behavior change.

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-14 11:00:17 -07:00
Logan Ramos fe7e476752 Delete Auto V1 (#330771)
* Delete Auto V1

* Missed a few
2026-08-14 00:15:47 +00:00
vritant24andCopilot 0d4262ebcd chat: support custom endpoint thinking modes
Forward adaptive and budget-based thinking capabilities from custom model
configuration into endpoint metadata. Preserve the per-request thinking flag
across the extension-contributed language model boundary so Messages requests
can activate the configured mode.

Refs #330712

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-13 15:42:27 -07:00
Vijay Upadya 8bed878286 Re enablenew TAS assignments endpoint with proxy-aware transport fix (#330389)
* Revert "Revert new TAS endpoint changes (#330175)"

This reverts commit f30e3f3600.

* Re-land new TAS assignments endpoint with proxy-aware transport + tas-call telemetry

* bump remote + remote/web to tas-client 0.4.3

* Add tests and feedback update
2026-08-13 05:37:11 +00:00
Vijay Upadya f30e3f3600 Revert new TAS endpoint changes (#330175)
* Revert "New TAS assignments endpoint updates (lifecycle, readiness, disposal) (#329736)"

This reverts commit c780ea9613.

* Revert "Add new exp TAS assignments endpoint (/api/v1/assignments) alongside legacy TAS (#329653)"

This reverts commit 58dc612992.

* Fix lockfile: add MIT license fields to reverted tas-client entries
2026-08-11 06:42:09 +00:00
Osvaldo OrtegaandCopilot cd5814553e Remove all backend v1 code for Copilot cloud sessions provider (#330007)
* Agent Host changes for osortega/agents/remove-all-the-code-for-backend-v1-of

* Preserve pending cloud tasks until workspace opens

Only consume cross-window task deep links after Git reports the matching repository, preventing the source window from clearing shared pending state.

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

* Migrate cloud session state from pull request URIs

PR-backed cloud tasks are listed under a stable /task/<id> resource and report the /<prNumber> URI they were previously listed under, so archived, pinned and read state migrates forward instead of being orphaned.

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-10 18:36:38 -07:00
Logan Ramos b30dc6c77e Remove fake prompt discount probe (#330058)
* Remove fake prompt discount probe

* fix package lock
2026-08-10 20:24:44 +00:00
vs-code-engineering[bot]andgithub-actions[bot] cdb5c6f121 Bump version to 1.134.0 (#329898)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-10 08:47:12 +00:00
roblourens 78a7b6c291 agentHost: remove extension-host Claude implementation (#329697)
* Remove extension-host Claude implementation

Make Agent Host the sole Claude sessions implementation and remove the obsolete provider preference settings, extension runtime, SDK dependency, commands, tests, and integration glue.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Remove extension-host Claude smoke tests

Delete smoke cases and commands that target the removed extension-host Claude implementation.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix Agent Host Claude permissions link

Keep the Claude-specific permission documentation link for Agent Host Claude after removing the extension-host implementation.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-08 03:55:37 +00:00
Vijay Upadya 58dc612992 Add new exp TAS assignments endpoint (/api/v1/assignments) alongside legacy TAS (#329653)
* Add new exp TAS assignments endpoint (/api/v1/assignments) alongside legacy TAS

* feedback updates

* Add dispose old client
2026-08-07 21:19:23 +00:00
Logan Ramos 1ccea8977b Support Auto Tiers (#329463)
* Support Auto tiers

* Make auto tiers an exp driven thing

* Resolve comments
2026-08-07 00:29:20 +00:00
Logan Ramos d49227af15 Adopt latest models in Auto (#329021)
* Start auto v2 exploration

* Auto V2

* Update based on comments
2026-08-05 00:59:45 +00:00
Bhavya UandCopilot cc2c348481 Add Sonnet 5 prompt setting (#328884)
* Add Sonnet 5 prompt setting

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

* Remove Sonnet 5 prompt tests

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-04 05:50:32 +00:00
Vritant Bhardwaj 2a6f4bd5c7 Merge pull request #328865 from microsoft/copilot/gemini-byok-reasoning-effort
copilot: support reasoning effort for Gemini BYOK
2026-08-03 16:51:23 -07:00
vritant24 65dd022112 copilot: pin Google GenAI dependency
Keep the SDK at the first version that supports thinking levels and avoid the unapproved install script introduced by newer releases.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-03 16:07:54 -07:00
vritant24 834fe42049 Agent Host changes for main 2026-08-03 15:41:22 -07:00
vs-code-engineering[bot]andgithub-actions[bot] 365903f368 Bump version to 1.133.0 (#328671)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-03 13:43:30 +00:00
Bhavya UandCopilot 849be60ee8 Prefer semantic search in agent mode (#328663)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-03 05:06:51 +00:00
Bhavya UandCopilot 1992d7c712 Enable tool search and prefer-long-context by default (#328628)
Flip the defaults for two settings that have been validated behind an
opt-in flag:

- `chat.agentHost.copilot.toolSearch.enabled`
- `github.copilot.chat.preferLongContext.enabled`

Both settings are defined in more than one place, so each pair is
updated together:

- Tool search: the workbench setting registration in
  `chat.shared.contribution.ts` and the agent-host schema default in
  `copilotCliConfig.ts` that the renderer forwards into.
- Prefer long context: the contributed default in the Copilot extension's
  `package.json` and `ConfigKey.PreferLongContext`, which throws a
  `BugIndicatingError` at load if the two drift, plus the forwarded
  `preferLongContextEnabled` root-config default in `agentHostSchema.ts`.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-02 19:52:30 +00:00
Osvaldo Ortega 9dc513a697 Fix checkout contribution for cloud sessions in backend v2 (#328258)
* Agent Host changes for osortega/agents/checkout-contribution-check-v2-backend

* Address review feedback and fix chat input fixtures

Require non-empty owner/name before building a pull request URI, so
metadata with empty strings no longer yields `https://github.com///pull/42`
and is no longer reported as an available pull request. Cover the case in
the unit test.

Implement `getSession` on the fixture `IAgentSessionsService` stub. The
chat input session toolbar reads it when a session has file changes, which
broke the chatInput FileChanges fixtures.

Condense the context key and chat input comments, and correct the cloud
sessions comment: the guard is reachable whenever `chatSessionPullRequest`
is unknown, not just on older clients.
2026-07-30 16:02:31 -07:00
Rob LourensandCopilot 2c549ee083 Enable Agent Host migration settings by default (#328127)
* chat: enable agent host defaults

Flip the Agent Host migration settings to their rolled-out defaults and enable remote Agent Host support for web clients attached to a remote extension host. Serverless web retains extension-host fallbacks. (Written by Copilot)

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

* test: cover web agent host disablement

Add web-remote coverage for configuration and AI disablement, and clarify the serverless web requirement in the setting description. (Written by Copilot)

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

* test: pin smoke session providers

Pre-seed extension-host smoke profiles before startup and update Agent Host picker labels so the suites exercise their intended providers after the default flip. (Written by Copilot)

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

* chat: restore agent host setting description

Keep the existing concise setting and policy description while retaining the runtime availability behavior. (Written by Copilot)

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-30 02:56:36 +00:00
vs-code-engineering[bot]andgithub-actions[bot] 6fdbfab6f7 Bump version to 1.132.0 (#327594)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 09:18:05 +00:00
Bhavya UandCopilot 6447f849c9 Revert custom trajectory compaction model, fix compaction bugs (#327548)
Reverts the effects of #316114, which routed conversation-history compaction
to a dedicated `trajectory-compaction` CAPI model behind
`chat.conversationCompaction.usePrismCompaction`. A plain `git revert`
conflicted and would have clobbered fixes that landed on top (#322255,
#321980, #325905), so the prism branches are removed surgically and the
production paths are left as they were.

`backgroundSummarizer.ts` and the `endpointProviderImpl` family resolution
are intentionally kept: both were extracted by #316114 but are now used by
the production path and by later commits.

Also fixes three compaction bugs:

- Foreground `/compact` stored the model's raw response, including the
  `<analysis>` scratchpad the summarization prompt asks for, as the summary.
  It now unwraps via `extractSummary` like the background path, falling back
  to the raw text when the model omits the tags. Fixes #321200.

- Compaction requests left `ignoreStatefulMarker` unset, which resolves to
  true on `ChatEndpoint` but false on `OpenAIEndpoint`, so BYOK Responses
  endpoints sent `previous_response_id` and had history sliced against a
  continuation the compaction prompt is not part of. Now set explicitly.
  Fixes #323554.

- "Compact Conversation" discarded the user's unsent draft and attachments.
  Adds an opt-in `preserveInput` submit option meaning "the input box is not
  the source of this request": the draft is kept and its attachments are
  omitted from the request. Applied to both the agent-host action and the
  non-agent-host `github.copilot.chat.compact` path, which went through
  `chat.open` and overwrote the draft via `setInput` before submitting.
  Fixes #314664.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-26 21:28:07 +00:00
Bhavya U 05c208e9e2 Add experimental setting to disable the semantic_search tool (#327245)
* Add experimental setting to disable semantic_search tool

Adds github.copilot.chat.semanticSearchTool.disabled (experiment-based,
default false) to gate the semantic_search (codebase) agent tool out of
getEnabledTools, so we can experiment with whether the tool is worth keeping.

* Also hide #codebase chat variable when semantic search is disabled

Adds a when clause to the copilot_searchCodebase tool so the #codebase
chat variable is hidden when github.copilot.chat.semanticSearchTool.disabled
is set, and updates the setting description to match. Addresses PR review
feedback about the description/behavior mismatch.
2026-07-25 05:43:51 +00:00
Bhavya U a7fa33e78a Add Claude Opus 5 system prompt (#327410)
* Add Claude Opus 5 system prompt

Adds a minimal Opus 5 prompt behind `chat.claudeOpus5Prompt.enabled`,
following Anthropic's guidance for the Claude 5 generation: describe the
environment as facts rather than rules, put the behavioral weight into
scope and correction guidance, and drop the rule lists the model now
handles with its own judgement. Off by default, falling back to the
Claude 4.6 Opus prompt.

Also:
- Remove the Opus 4.8 and Sonnet 5 prompts and their settings. Both
  models now use the Claude 4.6 prompts.
- Add comment-etiquette guidance to the shared optimized reminder, so it
  reaches every Claude 4.6+ family rather than a single prompt.
- Enable tool search for claude-opus-5.

* Reword Opus 5 prompt to remove borrowed phrasing

The prompt had picked up wording from a reference system prompt during
drafting. Rewrites every affected passage in original wording, keeping
the guidance intact. Verified no shared word sequence of five or more
remains between the branch's added lines and that reference.
2026-07-24 23:09:33 +00:00
Anthony KimandCopilot f9aad8156e Bump Copilot SDK to 1.0.8 and Copilot to 1.0.73 (#327165)
Bump Copilot SDK to 1.0.8

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

Copilot-Session: 5083fb1f-34d7-44bf-82a1-c4582e57683b
2026-07-24 02:29:26 +00:00
Anthony KimandDon Jayamanne 648d169d92 Bump github/copilot 1.0.72 (#326704)
* Bump github/copilot 1.0.72

* need to exclude webview

* Try skipping notification/tools/list_changed

* Capture tool list changes in agent host e2e snapshot

* Filter machine-dependent tools/list_changed notification from AHP snapshots

* Add glob patterns for Copilot Win32 built-in plugins in gulpfile tasks

* Update glob patterns for Copilot Win32 built-in plugins in gulpfile tasks

---------

Co-authored-by: Don Jayamanne <don.jayamanne@outlook.com>
2026-07-21 17:36:26 +10:00
Dileep Yavanmandha 0c926e1fbe Add low verbosity for GPT-5.6 responses (#326733) 2026-07-20 23:44:18 +00:00
Dirk Bäumer 085b6a1465 Merge pull request #326648 from microsoft/dbaeumer/compact-wildebeest-plum
Change the default max result to 100
2026-07-20 22:00:26 +02:00
Vijay Upadya 42a4c3c771 Revert "Forward CAPI assignment context to VS Code core telemetry" (#326675)
Revert "Forward CAPI assignment context to VS Code core telemetry (#326273)"

This reverts commit edcd2a2524.
2026-07-20 17:19:28 +00:00
Dirk Baeumer 0282a9fe84 Change the default max result to 100 2026-07-20 17:47:25 +02:00
vs-code-engineering[bot]andgithub-actions[bot] f8e9f993cc Bump version to 1.131.0 (#326568)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-20 10:04:21 +00:00
edcd2a2524 Forward CAPI assignment context to VS Code core telemetry (#326273)
* Forward CAPI assignment context to VS Code core telemetry

Add a proposed API scode.env.setTelemetryExperimentProperty that
allows trusted built-in extensions to set experiment properties on
VS Code's core telemetry pipeline.

The Copilot extension uses this to forward capi.assignmentcontext
(received via X-Copilot-Experiment and x-copilot-api-exp-assignment-context
response headers from CAPI) so that it appears on all VS Code telemetry
events, not just the Copilot extension's own events.

Flow:
1. CAPI responds with experiment headers
2. Copilot extension extracts them into serverExperiments
3. TelemetryService.setSharedProperty('capi.assignmentcontext', value)
4. Override forwards to vscode.env.setTelemetryExperimentProperty()
5. MainThreadTelemetry calls ITelemetryService.setExperimentProperty()
6. Property appears on all subsequent VS Code telemetry events

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

* fix: resolve CI failures - eslint and Copilot typecheck

- Remove 'VS Code' from proposed API JSDoc (eslint vscode-dts-vscode-in-comments rule)
- Use type assertion for proposed API call in Copilot extension to avoid
  TS2339 since the extension's tsconfig doesn't include proposed .d.ts files

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

* fix: replace 'as any' with typed Record cast for eslint compliance

- Use Record<string, unknown> instead of 'as any' to satisfy no-explicit-any
- Narrow API JSDoc to per-window scope (matching existing TAS pattern)

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

* Few updates

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Vijay Upadya <41652029+vijayupadya@users.noreply.github.com>
2026-07-18 07:46:03 +00:00
Dirk Bäumer 7e4e91cab4 Adapt to TypeScript 7 (#325757)
* Adapt TypeScript 7

* Ensure that we always call TS7 from spawnTsgo

* Fix package lock file

* tsc - tsc6

* More tsc -> tsc6

* More TSGO conversion

* More moves from tsgo -> tsc

* Fix tsgo resolving in extension folder

* Call TS7 compiler directly

* Update package-lock.json

* Remove tsc:version again
2026-07-14 12:34:04 +02:00
vs-code-engineering[bot]andgithub-actions[bot] a4ca0a5e14 Bump version to 1.130.0 (#325543)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-13 10:04:15 +00:00
Robo dc7db07400 chore: update electron@42.6.0 (#325428)
* chore: update electron@42.6.0

* chore: update node.js build

* temp: bump distro

* chore: update deb dependencies

* chore: update rpm dependencies

* chore: add missing platform dep to allow-scripts

* chore: bump distro
2026-07-12 20:30:31 +00:00
Don Jayamanne a10ba5f91d chore: update GitHub Copilot and SDK versions to 1.0.70-0 and 1.0.7-preview.0 respectively across all package files (#325401) 2026-07-11 09:22:43 +00:00
Dave ac0fb39943 fix: forward reasoning effort on the BYOK Messages API path
The useMessagesApi branch of OpenAIEndpoint.createRequestBody never called
_applyReasoningEffort, so a custom endpoint declaring supportsReasoningEffort
never received the selected effort. Forward it like the Responses and Chat
Completions branches, and add a 'messages' reasoningEffortFormat that writes
the Anthropic Messages shape output_config.effort (the default on /messages,
overridable via reasoningEffortFormat). The scrub merges into output_config
instead of replacing it so sibling fields (e.g. structured output format)
survive.

Fixes #325121
2026-07-09 20:06:48 +02:00
Bhavya UandCopilot b664e8ae6b Add setting to keep shorter context option for free long-context models (#324650)
Gates the collapse-to-long-context-only behavior behind the new
github.copilot.chat.preferLongContext.enabled setting (default off), so
models with a free long context window (e.g. Claude) show both the default
and long context options again. Covers the main chat picker, CLI picker, and
the Agents window.

Fixes #323936

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-08 16:01:57 +00:00
Bhavya U 1a91b4555b Add Claude Sonnet 5 and Opus 4.8 prompt configurations (#324866)
- Add ClaudeSonnet5Prompt (Sonnet 4.6 base + scope/interface/effort append) via new renderAppendedInstructions hook, gated behind chat.claudeSonnet5Prompt.enabled
- Rename Claude 4.7 Opus prompt/config to 4.8, add completionDiscipline, plan/explain restraint, tool triggering and terminal run-once guidance; gated behind chat.claude48OpusPrompt.enabled
- Opus 4.7 now falls through to the generic optimized Opus prompt
2026-07-08 07:00:44 +00:00
vritant24andCopilot 5fbe3eb948 Address PR review: clamp token limits and require input/context window
- Clamp maxOutputTokens to the context window and maxInputTokens to the
  remaining budget in resolveModelTokenLimits so limits stay consistent
- Require either maxInputTokens or contextWindow via anyOf in the custom
  model schemas (customoai, customendpoint, azure)
- Update OpenRouter spec header to describe the fixed behavior

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-07 10:45:53 -07:00
vritant24 dc051d15ce contextWindow for BYOK models 2026-07-07 09:09:24 -07:00
Don Jayamanne fa84c09861 Bump Copilot npm packages (#324667)
chore: update @github/copilot and @github/copilot-sdk to latest versions

- Bump @github/copilot from ^1.0.67 to ^1.0.69-0 in package.json and package-lock.json.
- Update @github/copilot-sdk from ^1.0.5 to ^1.0.6-preview.1 in package.json and package-lock.json.
- Refactor copilotcliSessionService.ts to use the new AutoModeSessionManager directly, removing compatibility fallback.
- Remove compatibility tests for AutoModeSessionManager in copilotCliSessionService.spec.ts.
- Adjust npm configuration in remote/.npmrc.
2026-07-07 15:16:11 +10:00
Vijay Upadya 7c4cdf69ce Make localIndex ON by default (#324651)
* Make localIndex ON by default

* Move setting to stable section
2026-07-07 03:13:44 +00:00
vs-code-engineering[bot]andgithub-actions[bot] 7bbfe96e44 Bump version to 1.129.0 (#324433)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-06 08:21:14 +00:00
Dirk Bäumer 2d0877ddee Make grep the new default search tool output format (#324186) 2026-07-03 10:06:31 +00:00
vritant24 a5bef0183f Add zero data retention configuration and tests for OpenAI provider 2026-07-02 15:13:01 -07:00
dileepyavan db70dce1c2 Gate prompt cache breakpoints behind exp flag (#324089)
Gate Responses API prompt cache breakpoints
2026-07-02 18:16:37 +00:00
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