Commit Graph

2956 Commits

Author SHA1 Message Date
Alex Ross
45bbb4f4da The reckoning: Update all the vscode.proposed.*.d.ts files (#3895)
* The reckoning: Update all the vscode.proposed.*.d.ts files
and run the update on post install

* Improve proposed update and check
- Pin it to a commit
- Require that update be run manually, not as post install
- Add PR check

---------

Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2026-02-20 14:06:58 +00:00
Christof Marti
b3e719b4eb Use correct key (#3890)
Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2026-02-20 12:48:54 +00:00
Ulugbek Abdullaev
4b7156efd8 nes: check if user has typed in mean time and do not issue cursor jump request if yes (#3894)
fixes https://github.com/microsoft/vscode/issues/279362

Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2026-02-20 12:48:31 +00:00
Ladislau Szomoru
05f70cd3a8 Background - fix changes paths in the working set (#3893)
* Background - fix changes paths in the working set

* Pull request feedback

---------

Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2026-02-20 12:47:06 +00:00
João Moreno
5f34e85fcc fix inconsistent telemetry event metadata (#3896)
related to microsoft/vscode#296465

Co-authored-by: João Moreno <22350+joaomoreno@users.noreply.github.com>
2026-02-20 12:14:11 +00:00
Don Jayamanne
072071a8fb fix: ensure session is added to disposables when created (#3888) 2026-02-20 09:26:28 +00:00
Don Jayamanne
355d979849 feat: extract UserQuestionHandler service for handling user input questions (#3884)
* feat: implement UserQuestionHandler for handling user input questions

* feat: add FakeUserQuestionHandler for testing and import test for string module

* Updates

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

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

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

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

* Updates

* Updates from main

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-20 09:26:07 +00:00
Ulugbek Abdullaev
0cbf396d35 nes: ghost: forward handleListEndOfLifetime to ghost provider (#3854) 2026-02-20 08:45:32 +00:00
Bhavya U
7430974851 remove unused import and simplify context management condition (#3886)
* remove unused import and simplify context management condition

* Update src/platform/endpoint/node/chatEndpoint.ts

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-20 07:31:38 +00:00
Bhavya U
e0f76ea3bc remove redundant progress updates for thinking and redacted thinking blocks (#3887) 2026-02-20 07:05:52 +00:00
Don Jayamanne
ce4d76a9ac Fixes to delegation to cloud (#3885) 2026-02-20 05:19:10 +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
Tyler James Leonhardt
de4a306cab Clean up MCP Gateway in Claude after 10min of idle (#3878)
* Clean up MCP Gateway in Claude after 10min of idle

* Create a gateway per-session
* clean up after 10min in Claude by bringing it in to the session

* Have MCP Service use resource and address feedback
2026-02-20 03:34:59 +00:00
Matt Bierner
4435dbaa0d Throw error with inner message too (#3869) 2026-02-20 01:23:54 +00:00
Harald Kirschner
7aa17fc25e fix: align promptCategorization.requestId with panel.request for telemetry joins (#3874)
Co-authored-by: Harald Kirschner <digitarald@gmail.com>
2026-02-19 23:57:48 +00:00
Matt Bierner
87b8a09b1a Pick up latest @github/blackbird-external-ingest-utils (#3857)
* Pick up latest `@github/blackbird-external-ingest-utils`

* Update for new api shape
2026-02-19 23:44:56 +00:00
dependabot[bot]
375a2a2428 Bump tar from 7.5.7 to 7.5.8 (#3813)
Bumps [tar](https://github.com/isaacs/node-tar) from 7.5.7 to 7.5.8.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v7.5.7...v7.5.8)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 7.5.8
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-19 22:38:40 +00:00
Tyler James Leonhardt
dc8a16f76b Implement MCP gateway for Claude agent (#3863)
* Implement MCP gateway for Claude agent

This will hook up any MCP servers installed via VS Code and available via VS Code to Claude.

It think there should be some UX work in Core to enable/disable tools, but from an extension perspective this should be good.

ref https://github.com/microsoft/vscode/issues/287660

* feedback
2026-02-19 22:06:27 +00:00
Matt Bierner
c76c6ffeaf Fixing some client side telemetry around external ingest (#3868)
* Fixing some client side telemetry around external ingest

- Don't log cancellation
- Fix paths being scrubbed
- Don't log successes

* Move logging

* Fix id
2026-02-19 21:21:27 +00:00
Ladislau Szomoru
b59b31781d Background - branch label for an in-progress session should always list the branch from which the worktree was created (#3865) 2026-02-19 21:10:09 +00:00
Bhavya U
85fc61e810 fix: update rawMessagesToMessagesAPI to handle cache_control correctly and add tests (#3861) 2026-02-19 19:57:31 +00:00
Matt Bierner
4f20e09375 Reduce alls to code search status endpoint (#3859)
Removes the automatic refresh because we see that the status (indexed vs not) does not change often
2026-02-19 17:40:54 +00:00
Sandeep Somavarapu
63de200f58 fix ollam provider (#3858) 2026-02-19 17:15:12 +00:00
Christof Marti
08e2a3a331 Cleanup (#3855) 2026-02-19 15:21:59 +00:00
Johannes Rieken
6f850297d1 fix: refine conditions for chat commands in inline editor (#3852) 2026-02-19 13:01:44 +00:00
Ladislau Szomoru
48173d7381 Background - another attempt to fix the branch picker (#3853)
* Revert "Background - fix the branch picker when switching repositories (#3820)"

This reverts commit 8cbd9aaf75.

* Background - another attempt to fix the branch picker

* Apply suggestion from @Copilot

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-19 12:52:25 +00:00
Don Jayamanne
77f87be784 Support display commands for terminal commands in background agents (#3850) 2026-02-19 11:48:42 +00:00
Don Jayamanne
58151ec8fe Adopt the latest github copilot npm (#3786)
* Adopt the latest github copilot npm

* Updates

* Updates

* Updates

* Updates

* Fixes

* Fixes

* Fixes

* Fixes

* Updates to the tests

* Fix tests
2026-02-19 08:46:17 +00:00
Vijay Upadya
252247e9ee Revert "Strip _vscodecontentref_ links from chat response markdown (#3823)" (#3846)
This reverts commit c85ce9619c.
2026-02-19 06:06:32 +00:00
Don Jayamanne
242fffd027 Update background handling of update_todo tool (#3845) 2026-02-19 05:51:20 +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
Siddharth Singha Roy
3af70ac077 chore(): add telemetry event for auto mode routing fallback (#3780)
* chore(): add telemetry event for auto mode routing fallback

* Update src/platform/endpoint/node/automodeService.ts

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

* Update src/platform/endpoint/node/automodeService.ts

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

* Update src/platform/endpoint/node/automodeService.ts

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

* fix(): missing braces

* fix(): use single quotes

* fix(): add semicolons

* chore(): add error message in telemetry

* fix(): lint issues

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-19 05:50:51 +00:00
Tyler James Leonhardt
70b79df17f Fix slash command handler not taking the command into consideration (#3839)
* Fix slash command handler not taking the command into consideration

This broke at some point, not sure when... but now it's plumbed through.

* feedback
2026-02-19 03:22:09 +00:00
Don Jayamanne
022a1ac014 Remove session count logging from InProcHttpServer class (#3838) 2026-02-19 02:38:08 +00:00
Harald Kirschner
1b40d15088 fix: standardize userInvokable property name (#3840)
Co-authored-by: Harald Kirschner <digitarald@gmail.com>
2026-02-19 02:32:46 +00:00
FAStre
2cf43735e1 Include file path in image prompts (#3790)
* Include file path in image prompts

* Include id attribute in attachment tag
2026-02-19 01:05:52 +00:00
Copilot
638a360207 Add tool-calling reinforcement to Gemini prompts to prevent hallucinated tool calls (#3822)
* Initial plan

* Add tool-calling reinforcement to Gemini prompts to prevent hallucinated tool calls

The Gemini Pro model was hallucinating tool calls (describing them in text
instead of invoking them) after 2-3 turns. This adds explicit instructions
to both Gemini system prompts and the reminder instructions to reinforce
that tools must be invoked through the tool-calling mechanism, not described
in prose.

Co-authored-by: vijayupadya <41652029+vijayupadya@users.noreply.github.com>

* update prompts

* add br ending

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: vijayupadya <41652029+vijayupadya@users.noreply.github.com>
2026-02-18 23:59:57 +00:00
Matt Bierner
5147298d5d Don't call refresh handler directly (#3829)
In general you should not call the refresh handler like this yourself because it won't show anything in the UI (it's fine to call the actual implementation that does the refresh). I'm going to update the api so that there is no confusing `refreshHandler` property toi avoid this confusion
2026-02-18 23:55:41 +00:00
Copilot
e6fa37b928 Add Context Window Widget support for Claude Agent (#3816)
* Initial plan

* Add usage handler mechanism for Claude context window widget

- Add UsageHandler type and methods to IClaudeSessionStateService
- Set usage handler in claudeChatSessionContentProvider request handler
- Wire up usage reporting in ClaudeStreamingPassThroughEndpoint
- Extract usage from AnthropicMessagesProcessor completion and call handler

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

* Add unit tests for usage handler in ClaudeSessionStateService

- Add tests for getUsageHandlerForSession
- Add tests for setUsageHandlerForSession
- Verify handler preservation across state changes
- Verify handler can be called correctly

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

* don't do the separate cache section

* a test

* include compaction

---------

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 23:42:38 +00:00
Josh Spicer
88801273bd cloud: more state telemtry (#3828) 2026-02-18 23:30:00 +00:00
Copilot
c85ce9619c Strip _vscodecontentref_ links from chat response markdown (#3823)
* Initial plan

* Strip _vscodecontentref_ links in unlikify pass of linkifier

Co-authored-by: vijayupadya <41652029+vijayupadya@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: vijayupadya <41652029+vijayupadya@users.noreply.github.com>
2026-02-18 23:01:57 +00:00
Bhavya U
fbf31b50cc Update usage instructions for tool_search_tool_regex to prevent unnecessary retries (#3826) 2026-02-18 23:01:11 +00:00
Paul
8564af0be9 Deprecate infer for org custom agents and support new properties (#3817)
* deprecate

* user-invocable
2026-02-18 21:32:31 +00:00
Christof Marti
c265ee50c4 Collect fetcher telemetry (#3821) 2026-02-18 20:17:04 +00:00
Justin Chen
8a049102db make sure all copilot chat types get github uploads (#3824) 2026-02-18 20:13:05 +00:00
Rob Lourens
d4b9313fa6 Reenable agent sanity test (#3814)
* Reenable agent sanity test

* This way
2026-02-18 16:47:40 +00:00
Copilot
089a83b6e7 Update @anthropic-ai/claude-agent-sdk 0.2.42 → 0.2.44 (#3796)
* Initial plan

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

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-18 16:00:51 +00:00
Ladislau Szomoru
8cbd9aaf75 Background - fix the branch picker when switching repositories (#3820)
* Background - fix the branch picker when switching repositories

* Pull request feedback
2026-02-18 14:30:11 +00:00
Christof Marti
2856462cc7 Add flags for suspend/resume events (#3819) 2026-02-18 10:18:42 +00:00