Commit Graph

213 Commits

Author SHA1 Message Date
Alex Ross 88c598c0dd Remove unused doc info tool (#3892)
* Remove unused doc info tool

* Fix tests

* Fix whitespace

---------

Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2026-02-20 17:09:46 +00:00
Don Jayamanne f238a45855 feat: add Plan Mode support for Copilot CLI background agents (#3881)
* Plan mode for background agents

* Updates

* Fix cache directory name and correct markdown syntax in PlanAgentProvider

* feat: add Plan Mode support for Copilot CLI agents

* fix: update configuration check for CLI Plan Mode in ChatSessionsContrib

* Ensure we log the error

* fix tests
2026-02-20 04:39:33 +00:00
Tyler James Leonhardt 7de42dc61e Remove Ask User Question tool in favor of Core tool (#3880)
* Remove Ask User Question tool in favor of Core tool

Fixes https://github.com/microsoft/vscode/issues/296134

* feedback

* remove duplicate & restore toolset

* feedback

* revert change in anthropic.ts because ask_questions is what is used in Claude
2026-02-20 03:58:00 +00:00
Bhavya U f3e6859c16 Add support for local repository memory and update telemetry events (#3841)
* Add support for local repository memory and update telemetry events

* Update memory command labels for clarity in the UI

* update test

* Add repository memory section to snapshot tests for clarity
2026-02-19 05:51:04 +00:00
Copilot 579cc8fb3b Add debug command to log extension state (#3811)
* Initial plan

* Add hidden debug command to log extension state (auth, models, tools)

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

* Address PR feedback: rename label, add proxy info, conditional models/tools, issue banner

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

* Move ExtensionStateCommandContribution to vscodeNodeContributions for early availability

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

* Move ExtensionStateCommandContribution to top of vscodeNodeContributions for earliest registration

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

* Add logging for Copilot chat and embeddings model registration

* feedback

* id

---------

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>
2026-02-18 07:50:46 +00:00
Justin Chen 817b620532 change simple browser tool to integrated browser tool (#3810)
* change simple browser tool to integrated browser tool

* update spec
2026-02-18 03:17:09 +00:00
dileepyavan d0b9ef2db8 updating prompt for gpt-5.3 codex model with experimentation turned on (#3803) 2026-02-17 22:58:54 +00:00
Bhavya U 08a0293bb3 Refactor Anthropic context editing configuration and tool search integration (#3797)
* Refactor Anthropic context editing configuration and tool search integration

* Remove redundant toolSearchTool configuration and update settings structure
2026-02-17 19:15:20 +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
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
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
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
Ladislau Szomoru e2e0a2a7a0 Background - add back the isolation mode behing a setting (#3717)
* Initial implementation

* Stage changes

* Improve workspace folder service

* Change options order
2026-02-13 11:28:40 +00:00
Johannes Rieken 240140ca97 Remove usages tool and related references from the codebase (#3716)
https://github.com/microsoft/vscode/issues/281980
2026-02-13 11:26:03 +00:00
Harald Kirschner 24a349429b Add Explore agent provider for code research subagent (#3691)
* Add Explore agent provider for code research subagent

* Update exploreAgent model description

* Make Explore subagent conditional via PlanAgentExploreSubagentEnabled config

* Fix CI

* Fix tests

* Tweak prompt based on cross-model review

* Address PR feedback: clarify model selection logic

---------

Co-authored-by: Don Jayamanne <don.jayamanne@outlook.com>
Co-authored-by: Harald Kirschner <digitarald@gmail.com>
2026-02-12 23:49:02 +00:00
Anisha Agarwal dce100a68a Update config to change name of agentic proxy search endpoint (#3672)
* change to settings.json to trigger search subagent with proxy

* updating to dogfood other search models

* update to add config with proxy model name

* update advanced settings in package.json

* add to package.nls.json
2026-02-12 17:33:49 +00:00
Don Jayamanne 7d1777175e Add session controller configuration and update chat session handling (#3694) 2026-02-12 08:42:45 +00:00
Don Jayamanne 78ca30f0be Branch support in background worktree (#3688)
* Support for branches in background

* Wip

* Fixes

* Revert

* Fix tests
2026-02-12 05:38:44 +00:00
Josh Spicer 3847694942 add github.copilot.cli.sessions.commitToWorktree (#3680) 2026-02-12 00:51:54 +00:00
Matthew Rayermann e42cdc9f3d Copilot CLI: Send Selection via Command/Context Menu (#3668)
* Copilot CLI: Send Selection via Command/Context Menu

* CCR feedback

* Self review

* Fix tests: only file scheme is valid for CLI
2026-02-11 21:18:29 +00:00
Logan Ramos 1b7cd29a18 Support manual compaction (#3664) 2026-02-11 19:34:38 +00:00
Bhavya U fb8719f756 Add background compaction feature for conversation history summarization (#3650)
* Add background compaction feature for conversation history summarization

* Improve background compaction handling by allowing retries on failure and enhancing error logging
2026-02-11 11:22:20 +00:00
Don Jayamanne 432a906a96 Ensure CLI integration commands are visible only if sessions are available (#3635)
* Ensure CLI integration commands are visible only if sessions are available

* Update tests

* Fixes

* Fixes
2026-02-11 01:14:01 +00:00
Don Jayamanne 39e4cb64a6 Rename Copilot CLI command (#3637) 2026-02-11 00:02:59 +00:00
Josh Spicer 19541d79ea Add TTL caching for cloud agent /enabled and session provider options (#3621)
* Add TTL caching for cloud agent /enabled and session provider options

Further reduce GitHub API requests from the cloud agent sessions provider. (extension of 89771ff43a)

- Add TtlCache and SingleSlotTtlCache utilities for TTL-based caching
- Cache /enabled results for 30 minutes (only enabled=true; disabled results
  always re-fetch so users aren't stuck after enabling CCA)
- Cache the full provideChatSessionProviderOptions result for 15 minutes,
  covering custom agents, models, and partner agents in a single cache entry
- refresh() no longer clears TTL caches; only auth changes and the new
  "Clear Cloud Agent Caches" command force-clear them
- Register "GitHub Copilot: Clear Cloud Agent Caches" command as an escape hatch
- Add unit tests for TtlCache and SingleSlotTtlCache

* Apply suggestions from code review

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-10 20:11:15 +00:00
Harald Kirschner 53c144e4f5 Moved planAgent model config to core for picker UI (#3614)
* Moved planAgent model config to core for picker UI

* CI fix

* Fix tests

---------

Co-authored-by: Harald Kirschner <digitarald@gmail.com>
2026-02-10 18:51:51 +00:00
Benjamin Christopher Simmonds b872e485e3 Ask agent provider for read-only Q&A mode (#3608)
* Ask agent provider for read-only Q&A mode

* fix test failures by ensuring ask agent does not include editing tools
2026-02-10 17:06:40 +00:00
Peng Lyu fb9fd9db40 Add new CLI session commands and enhance terminal integration (#3596) 2026-02-10 00:03:46 +00:00
Bhavya U 5318c78f98 Add alternate prompt configuration for Anthropic model (#3576)
* Add alternate prompt configuration for Anthropic model

* Disable alternate Anthropic prompt by default in configuration
2026-02-09 07:14:27 +00:00
Alex Weininger ab48d553b3 Migrate Copilot CLI integration (#3529)
* Initial code migration

* Migrate unit tests

* Fix command titles

* Use DI patterns

* add tests

* Fix createReadonlyUri to use fileUri.path for correct URI generation

* Fix makeTextResult to ensure fallback string conversion for non-string data

* Add debounce cleanup for diagnostics and selection change notifications

* Increase JSON body size limit to 10MB for MCP requests

* Normalize diagnostic severity to lowercase in getDiagnostics tool

* Refactor logging level in DiffStateManager to use trace for detailed debug information

* Handle errors when updating hasActiveDiff context in DiffStateManager

* Refactor showNotification tool: reorder imports and remove unnecessary logging

* Refactor closeDiff tests: replace createMockServer with MockMcpServer and update result parsing

* Remove showNotification tool and its associated tests

* Add mock implementations for Disposable and Uri in test files

* Fix unit tests!

* feat: Add CLI integration configuration and update command titles in package.json

* refactor: Improve debounce handling for diagnostics and selection change notifications

* refactor: Enhance initialization logic and configuration handling in CopilotCLIContrib

* Revert change

* fix: Disable CLI integration by default in configuration

---------

Co-authored-by: Don Jayamanne <don.jayamanne@outlook.com>
2026-02-09 04:39:32 +00:00
Rob Lourens e5cd86beeb Rename /summarize to /compact, add optional extra instructions (#3556)
* Rename /summarize to /compact, add optional extra instructions

* Update simulation baseline
2026-02-08 18:11:03 +00:00
Bhavya U b596994d64 Update memory tool functionality to support local memory (#3557)
* Update memory tool functionality to support local memory

* update path validation and normalization in MemoryTool
2026-02-08 08:44:05 +00:00
Ayush Singh 80b5b7429b feat: add /summarize command to agent mode (#3352)
* feat: add /summarize command to agent mode and fix unit test DI

* Update src/extension/intents/node/agentIntent.ts

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

* Fixes

* Save summary on live Turn

* And setResponse

* Simpler

* fix build

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Rob Lourens <roblourens@gmail.com>
2026-02-07 22:01:19 +00:00
Bhavya U ad836e197c update model capabilities with adaptive thinking and effort configuration (#3547)
* enhance model capabilities with adaptive thinking and effort configuration

* Add effort

* clean up

* Enhance model capabilities by adding support for Claude Opus 4.6 in tool search and context editing
2026-02-07 07:58:56 +00:00
Henning Dieterichs fabc136a7b Add chat.additionalReadAccessPaths setting for read-only access to external folders (#3520)
* Add chat.additionalReadAccessPaths setting for read-only access to external folders

Implements a new setting that allows users to specify folders outside the
workspace that Copilot Chat read-only tools (read_file, list_dir) can
access without requiring confirmation.

- Add github.copilot.chat.additionalReadAccessPaths setting (string array)
- Gate additional access behind a readOnly flag on assertFileOkForTool,
  isFileExternalAndNeedsConfirmation, and isDirExternalAndNeedsConfirmation
- Edit tools remain workspace-restricted (isFileOkForTool does not pass readOnly)
- .copilotignore rules are still respected for additional paths

Closes microsoft/vscode#293386

* Addresses PR feedback
2026-02-06 19:18:37 +00:00
Christof Marti 27a90e92ca Command for testing power save blocker (#3517) 2026-02-06 10:16:35 +00:00
Matt Bierner 34b17f117d Remove @workspace chat participant (#3492)
* Remove `@workspace` chat participant

For https://github.com/microsoft/vscode/issues/292972

Removes the `@workspace` chat participant since this is now an outdated (and confusing) way to use code search. For now we'll keep the commands but I've moved them under the default agent instead

* Updating tests too and fixing some references
2026-02-06 00:21:09 +00:00
Anisha Agarwal 7239dd454c Use the SFT + RL CAPI proxy model to power the Search Subagent (#2929)
* add a search agent endpoint & call it

* toggle between main and proxy

* add toggle that checks for manually set setting for agentic proxy

* update to use agentic proxy

* update package jsons to reflect new setting

* search subagent should be enabled for proxy to be enabled

* change to settings.json to trigger search subagent with proxy

* make config settings non-advanced

* remove search subagent settings
2026-02-04 20:31:56 +00:00
Bhavya U 601a01e797 Update messages API changes in main (#3402)
* Disable beta features for inline-chat in messages API usage

* Disable all beta features for non agent location

* Refactor: Update conversation agent checks to include MessagesProxy location

* Update Anthropic thinking budget to max output tokens

* Update test

* update telemetry for  context editing with additional metrics

* fix: refine deferred loading logic for allowed conversation agents

* Remove 'experimental' tag from Messages API and budgetTokens descriptions in configuration

* Add Anthropic configuration options for Messages API and budget tokens
2026-02-03 06:19:44 +00:00
Benjamin Christopher Simmonds 3a70dc9ada Remove hardcoded values in core (#3363)
* towards removing hardcoding values in core

* 💄 Update Claude provider description message
2026-02-02 12:50:37 +00:00
Eleanor Boyd f552062e15 update descriptions of settings to outline the model name format to use (#3324) 2026-01-30 21:13:16 +00:00
SteVen Batten 4ccd265654 disable the switch agent tool for now (#3297) 2026-01-30 01:02:35 +00:00
Bhavya U 1efc5887a2 Update memory tool instructions and add link for managing memories (#3300) 2026-01-30 00:54:57 +00:00
Bhavya U 297f92aa1e Remove UpdateUserPreferences tool and related references from the codebase (#3293)
* Remove UpdateUserPreferences tool and related references from the codebase

* Remove references to UpdateUserPreferences tool from prompts
2026-01-30 00:12:04 +00:00
Anisha Agarwal 3e10be13d7 Search subagent - set configurable exp variables (#3205)
* added experimental search model toggling

* configure tool call limit

* update to make model configurable, default to chat endpoint

* add model name and tool call limit exp variables

* fix merge  conflict comma bug

* update default values so tests pass

* update to have try/catch if modelName not available
2026-01-29 22:47:36 +00:00
Bhavya U dd10273bd3 Cap budget token calculation for Anthropic models in messages API (#3283)
* Cap budget token calculation for Anthropic models in messages API

* Update package.nls.json

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-29 22:19:00 +00:00
Eleanor Boyd daf5c3454e Remove alternate Zai prompt configuration experiment (#3284) 2026-01-29 21:30:32 +00:00
Christof Marti 30d01ec456 Improve error handling (#3278)
* Improve logging

* Add setting for testing failure cases

* Add welcome view for failed GitHub login

* Use Sign In command

* Polish and fix test failure
2026-01-29 20:07:20 +00:00