Commit Graph

2899 Commits

Author SHA1 Message Date
Isidor Nikolic fd9dc3344f Enable large tool results to disk by default (#3656) 2026-02-17 02:27:40 +00:00
Rob Lourens 8ddd2a06e5 Disposable fixes (#3784)
Copilot-assisted
2026-02-16 23:20:55 +00:00
Ulugbek Abdullaev 588a838ada nes: cleanup: remove unused ShowNextEditPreference (#3778) 2026-02-16 23:19:44 +00:00
Bhavya U 84966e2e62 remove alternateAnthropicPrompt configuration and update related prompts (#3781)
* remove alternateAnthropicPrompt configuration and update related prompts

* update test
2026-02-16 23:01:42 +00:00
Rob Lourens 828927f22b Disable responsesApiContextManagement by default (#3782) 2026-02-16 21:39:54 +00:00
Ulugbek Abdullaev 4cb5f0b2cd ghost: fix: do not reuse stale suffix (#3775)
* add a test showing the failure

* ghost: fix: do not reuse stale suffix
2026-02-16 20:03:37 +00:00
Ulugbek Abdullaev 69a2907438 nes: implement eager backup request for async flow (#3777)
* nes: implement eager backup request for async flow

this allows to have a new network request in case the async request fails on rebase

* Fix NES eager backup cancellation handling
2026-02-16 20:03:08 +00:00
Rob Lourens 1b6f5b9093 Run read tools in parallel (#3776)
* Run read tools in parallel
Fix microsoft/vscode-internalbacklog#6822

* Add test
2026-02-16 19:51:12 +00:00
Benjamin Christopher Simmonds 64e60426cd Edit mode custom agent (#3773)
* edit mode custom agent

* use AgentConfig
2026-02-16 17:54:18 +00:00
Ladislau Szomoru 834321ca31 Background - update icon and don't use default for the branch picker (#3771) 2026-02-16 16:16:07 +00:00
Ladislau Szomoru 8ad23bc825 Background - update context keys (#3770) 2026-02-16 16:15:55 +00:00
Ladislau Szomoru 300646c74c Background - add isolationMode metadata (#3769) 2026-02-16 15:23:36 +00:00
Ulugbek Abdullaev 7d728b836e swb: fix support for external NES stests for windows & "run test once" (#3768)
* swb: fix: make external NES stest running windows-compatible

* swb: support running a single external test

* address ccr
2026-02-16 15:21:10 +00:00
Johannes Rieken abbbc53ce9 feat: add 'rename' and 'usages' capabilities to agent commands (#3767) 2026-02-16 13:26:11 +00:00
Christof Marti 2815e1a37f Treat server_error the same as network_error (#3766) 2026-02-16 12:01:24 +00:00
Christof Marti d39479aca6 Add ERR_CONNECTION_RESET (#3765) 2026-02-16 11:54:15 +00:00
Ulugbek Abdullaev 0c77656331 nes: feat: more diff merging strategies (#3763)
also fix that two adjacent line changes would result in two diff hunks
2026-02-16 11:15:45 +00:00
Nick Trogh 4e2c944042 Update Chat changelog (#3761) 2026-02-16 09:53:39 +00:00
Bhavya U 4b1e59c2fe Enable memory tool by default in configuration settings (#3756)
* Enable memory tool by default in configuration settings

* update snapshot

* update snaphot

* Update memory tool descriptions for clarity and context
2026-02-16 05:40:05 +00:00
Don Jayamanne 46da100c3f Add session renaming functionality to background agents (#3759)
* Add session renaming functionality to background agents

* Update src/extension/chatSessions/vscode-node/copilotCLIChatSessionsContribution.ts

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-16 05:38:39 +00:00
dileepyavan 9b93393e10 Enabling compaction for openAI models (#3740)
* Add compaction support for Responses API context management

* compaction update

* compaction update

* cleaning up for PR

* Updating model list that can be enabled for compaction and enabling experimentation config

* cleaning up variable names

* updates based on review comments

* correcting the failed tests

* skip summarization when compaction is enabled

* fixing unit tests

* updating threshold value for compaction

* fixing test failures
2026-02-16 05:21:33 +00:00
Don Jayamanne d316210e87 Enhance Copilot CLI integration with built-in model picker (#3757)
* Use built-in model dropdown for background agents

* Fixes

* Support compact command in background agent

* Revert tests
2026-02-16 04:38:35 +00:00
Bhavya U 9478271b77 Add memory viewing command and update chat panel session resource definitions (#3754)
* Add memory viewing command and update chat panel session resource definitions

* refactor: rename memory commands and add clear memories functionality

* add memory show and clear commands to chat tools

* refactor: improve memory clearing logic and add user feedback for no memories found
2026-02-16 00:05:14 +00:00
Bhavya U 5a59be1424 update memoryTool invocation to show file paths (#3755) 2026-02-16 00:04:55 +00:00
Ulugbek Abdullaev cd55e7e19f nes: recent files: more strategies to include recent files (#3753)
* nes: tests: fix trailing whitespace sensitivity

* nes: xtab: split promptCrafting.ts up

* nes: recent files: split up into functions

* nes: recent files: more strategies to include recent files

* fix: transform older focal ranges through edit chain in historyEntriesToCodeSnippet

Older history entries' focal ranges (from getNewRanges()) pointed into
stale document states, not the most recent content. Now each older
edit entry's ranges are projected forward through subsequent edits
using StringEdit.applyToOffsetRange(). VisibleRanges entries no longer
contribute focal ranges since their offsets cannot be reliably
transformed.

* add validator
2026-02-15 23:16:50 +00:00
Don Jayamanne e190175422 Enhance Copilot CLI integration with built-in model picker (#3752)
* Enhance Copilot CLI integration with built-in model picker

* Updates

* Updates

* Updates
2026-02-15 13:57:18 +00:00
Don Jayamanne 4406b28a7b Fixed support for selection attachments in background (#3751)
* Fixed support for selection attachments in background

* Fix incorrect logic
2026-02-15 04:43:10 +00:00
Harald Kirschner 3d4659e67c Add parallel tool call metrics to toolCallDetails telemetry (#3748)
Co-authored-by: Harald Kirschner <digitarald@gmail.com>
2026-02-14 23:59:24 +00:00
Ulugbek Abdullaev b86d986cbd util: result: extend functionality with some common utils (#3750) 2026-02-14 23:37:51 +00:00
Ulugbek Abdullaev b77056774f nes: modelsService: multiple fixes around race conditions (#3749)
* fix: parseModelConfigString accepts value directly instead of re-reading

parseModelConfigStringSetting was re-reading the config from the service
instead of using the observable-tracked value already passed to callers.
This caused a potential inconsistency: the truthy gate in aggregateModels
and determineDefaultModel used the observable value, but the parsing used
a separate read that could return a different value if config changed
between the two reads.

Renamed to parseModelConfigString and changed to accept the config string
value directly as a parameter.

* fix: track useSlashModels as observable dependency in _modelsObs

useSlashModels was read via a non-observable getExperimentBasedConfig()
call inside the derived _modelsObs computation. This meant changes to
the useSlashModels config would not trigger recomputation of the models
list.

Now read through an observable (_useSlashModelsObs) and passed as a
parameter to aggregateModels, so the derived properly tracks it.

* fix: track undesired models as observable dependency in _currentModelObs

_pickModel was calling _undesiredModelsManager.isUndesiredModelId()
directly — a plain synchronous read not tracked by the observable
system. Changes to the undesired models list would not trigger
_currentModelObs to recompute.

Added onDidChange event to IUndesiredModelsManager (and both
implementations), created an observable from it, and read it through
the reader in the _currentModelObs derived computation. _pickModel now
receives the undesiredModelsManager as a parameter.

* fix: serialize UndesiredModels.Manager operations with TaskQueue

addUndesiredModelId and removeUndesiredModelId did read-then-write
without serialization. Concurrent calls could interleave: the second
reads stale state before the first's write completes, overwriting
the first's change.

Now all mutations are serialized through a TaskQueue, ensuring each
operation reads the latest state after any prior write has completed.

* fix: serialize setCurrentModelId calls with TaskQueue

setCurrentModelId was async with multiple awaits but no serialization.
Concurrent calls (e.g. rapid model switching in the UI picker) could
interleave, corrupting undesired-models state and writing stale
preferred-model config.

Now serialized through a TaskQueue so only one setCurrentModelId runs
at a time, with subsequent calls queued until the previous completes.

* refactor: remove dead fallback in selectedModelConfiguration

_currentModelObs always returns a Model (never undefined) due to
_pickModel's fallback chain. The truthy check and the fallback to
determineDefaultModel were dead code.

* fix: validate JSON.parse result with MODEL_CONFIGURATION_VALIDATOR

JSON.parse result was cast to ModelConfiguration without validation.
Invalid JSON structures (e.g. a plain string or number) would pass
parsing but fail at runtime when accessed as ModelConfiguration.

Now uses the existing MODEL_CONFIGURATION_VALIDATOR to validate the
parsed result and reports validation errors via telemetry.

* fix: do not leak an emitter in UndesiredModels.Manager

* fix test
2026-02-14 23:36:18 +00:00
Rob Lourens b0cdbf862f fix: remove duplicate SubagentStart hook execution in run() (#3747)
runStartHooks() and run() both called executeSubagentStartHook() for
subagent requests, causing SubagentStart hooks to fire twice per
subagent invocation. The caller (defaultIntentRequestHandler) always
calls runStartHooks() before run(), so the call in run() was redundant.

Remove the duplicate call from run() since runStartHooks() is the
correct place for start hook execution.
2026-02-14 19:44:12 +00:00
Harald Kirschner 60d9375465 Add telemetry for memory tool invocations and context reads (#3745)
Co-authored-by: Harald Kirschner <digitarald@gmail.com>
2026-02-14 04:58:02 +00:00
Harald Kirschner 4c4b822c81 Add back further considerations (#3746)
Co-authored-by: Harald Kirschner <digitarald@gmail.com>
2026-02-14 04:56:01 +00:00
Harald Kirschner 7a05844478 Tweak classifiers (#3573)
* Tweak classifiers

* Fix errorDetail leaking raw args, clarify partialClassification telemetry docs

---------

Co-authored-by: Harald Kirschner <digitarald@gmail.com>
2026-02-14 02:11:22 +00:00
Rob Lourens 2f127b72aa Clean up optional checks on hookProgress (#3741) 2026-02-13 23:37:55 +00:00
Harald Kirschner a1709b8fce Add skill name to readFileToolInvoked telemetry (#3739)
* Add skill name to readFileToolInvoked telemetry

* Rename telemetry field to nameField

---------

Co-authored-by: Harald Kirschner <digitarald@gmail.com>
2026-02-13 23:27:52 +00:00
Matt Bierner e9ea3e6d96 Fix issues with external ingest fileset names (#3737)
- Include scheme + authority
- Encode whitespace
- Handler long paths
2026-02-13 23:16:00 +00:00
Paul ded7091497 Don't throw errors for org custom instructions flow in personal repo (#3735)
* fix org error

* update
2026-02-13 23:11:06 +00:00
Copilot f62ab64438 Update @anthropic-ai/claude-agent-sdk to 0.2.42 (#3728)
* Initial plan

* Update @anthropic-ai/claude-agent-sdk to 0.2.42

### `@anthropic-ai/claude-agent-sdk` (0.2.39 → 0.2.42)

#### Features
- **Task control:** Added `stopTask(taskId)` method on Query for stopping running tasks
- **SDK types:** Added `SDKControlStopTaskRequest` type with `subtype: 'stop_task'`

#### Bug Fixes
- Various parity updates with Claude Code v2.1.40, v2.1.41, v2.1.42

#### Breaking Changes
- None

### `@anthropic-ai/sdk` (0.74.0 → 0.74.0)
- Already at latest version, no changes needed

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

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>
2026-02-13 22:29:57 +00:00
dileepyavan 09c3fc2f9a gpt53codexUpdate (#3732) 2026-02-13 21:16:03 +00:00
Tyler James Leonhardt 4ccfead57a Misc improvements to Claude CLI integration (#3730)
* Misc improvements to Claude CLI integration

We still aren't shipping this (it would need to be imported in index.ts) but this:
* uses capturing token
* passes through betas
* drops "code" in the language

* feedback

* align notice formatting

* fix test
2026-02-13 21:12:49 +00:00
Rob Lourens a4ffdcf03b Sync chatParticipantPrivate.d.ts with vscode (#3734)
* Sync chatParticipantPrivate.d.ts

* Sync ChatRequestEditorData with vscode
2026-02-13 21:07:31 +00:00
Harald Kirschner 6b847f4340 Add create-* prompts, hooks primitive, and remove agentCustomizationSkill gating (#3713)
* Add create-* prompts, hooks primitive, and remove agentCustomizationSkill gating

* Update references in prompt files

---------

Co-authored-by: Harald Kirschner <digitarald@gmail.com>
2026-02-13 20:58:24 +00:00
Paul 0e39261c7b Fix tilde expansion for instruction files (#3727)
* fix tilde expansion for instructions

* add tests
2026-02-13 20:12:58 +00:00
Paul 792001a7af strip (#3725) 2026-02-13 19:37:47 +00:00
Ulugbek Abdullaev 0cfd936ad9 ghost: send model name telemetry (#3724)
* nes: logContext: trace log closed by default and shown after trace diagram

* fix naming

* easy arg for constructor

* ghost: send model name telemetry
2026-02-13 18:33:28 +00:00
Rob Lourens b0271dfb4c Remove leftover 'usages' reference (#3723) 2026-02-13 18:17:14 +00:00
Henning Dieterichs 3376ca396b Fixes https://github.com/microsoft/vscode-internalbacklog/issues/6437 (#3720)
* Fixes https://github.com/microsoft/vscode-internalbacklog/issues/6437

* updates snapshots
2026-02-13 18:16:35 +00:00
Ulugbek Abdullaev 28afecfef4 ngetConfiges: make usePrediction exp-based (#3722) 2026-02-13 18:12:14 +00:00
Rob Lourens 5eac4ba0dd Revert "Better tracking of subagent requests in capi request headers (#3712)" (#3721)
This reverts commit 04260412bb.
2026-02-13 17:35:45 +00:00