Commit Graph

1387 Commits

Author SHA1 Message Date
Copilot c19aeea325 Clarify regex vs literal text in search result messages (#1757)
* Initial plan

* Improve presentation of regex-based searches in agent mode

- Updated FindTextInFilesTool to indicate "regex" vs "text" in search messages
- Updated Claude grep tool formatter to show "Searched for regex"
- Added test for literal text search message format
- Updated existing test to match new regex message format

Co-authored-by: roblourens <323878+roblourens@users.noreply.github.com>

* Make regex/text keywords localizable via l10n

- Moved 'regex' and 'text' keywords inside l10n.t() calls
- This allows localization system to translate or keep terms as appropriate per language
- Addresses localization concern about whether 'regex' should be localized

Co-authored-by: roblourens <323878+roblourens@users.noreply.github.com>

* Refactor nested ternary operators into helper method

- Extract message generation logic into getResultMessage helper
- Improves code readability and maintainability
- All tests passing

Co-authored-by: roblourens <323878+roblourens@users.noreply.github.com>

* Update ChatSessionContentProvider test snapshot

- Updated snapshot to reflect new grep message format
- Changed from "Searched text for" to "Searched for regex"
- All tests now passing (8/8)

Co-authored-by: roblourens <323878+roblourens@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: roblourens <323878+roblourens@users.noreply.github.com>
2025-11-03 00:49:59 +00:00
Benjamin Christopher Simmonds 9cea8e13cc Enable Copilot from chat extension (#1758)
* contibute copilot enabled from chat extension

* Make github.copilot.enable contributed by chat extension
2025-11-02 23:52:17 +00:00
Don Jayamanne 00e96f5151 Display Copilot CLI edits when resuming a session (#1754)
* Display Copilot CLI edits when resuming a session

* Fix tests

* Fix test

* Fixes

* Fixes

* Fix issues
2025-11-02 22:41:30 +00:00
Ladislau Szomoru 2c92092e40 Git - add repository/branch name to the commit message generation context (#1756) 2025-11-02 19:26:50 +00:00
Rob Lourens d7764b532a Simplify request logger a bit (#1755)
Remove postOptions, since we should log params from the real request, and duplicated 'tools'.
2025-11-02 16:34:09 +00:00
Don Jayamanne 3732454ecc Remove Copilot CLI Agent manager and introduce ICopilotCLISession interface (#1752)
* Rmove Copilot CLI Agent manager and introduce ICopilotCLISession interface

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

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

* Updates

* Updates

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-02 06:32:29 +00:00
Rob Lourens eeffcc3959 Clean up duplicated code (#1751)
Thank you CCR
2025-11-01 20:16:37 +00:00
Rob Lourens c4da3df01d Filter out unsupported codex tool type (#1748) 2025-11-01 19:02:33 +00:00
Don Jayamanne 9ae8037d24 Updates (#1745) 2025-11-01 08:58:05 +00:00
Osvaldo Ortega ded9889742 Support for worktree working directory (#1172)
* Support for worktree working directory

* fix merge

* remove unnecessary command

* revert package.json change

* 💄

* copilot cli worktree

* fix default isolation preferrence

* 💄 revert cc worktree integration for now.

* Persist working tree relationship

---------

Co-authored-by: Peng Lyu <penn.lv@gmail.com>
2025-10-31 23:39:30 +00:00
Aaron Munger c9669ffac1 unit test for replay parsing (#1744)
* add parsing test

* just directly push to result array

* generate path to find test file
2025-10-31 17:10:09 +00:00
Zhichao Li 15d8d073e7 Fix tool calls property normalization and stream options handling for non-streaming responses (#1732)
* add log

* try streaming false

* try undefined

* correct fix

* correct fix 2

* fixxxx

* consume resp just once

* fix message

* no replacement of content

* clean up but need to make stream configurable for byok

* update

* update
2025-10-31 16:50:33 +00:00
Aaron Munger 143f1c28da no need for regex (#1742) 2025-10-31 15:38:31 +00:00
Martin Aeschlimann c980e6e5e4 add IPromptsService (#1741) 2025-10-31 15:35:45 +00:00
Martin Aeschlimann 8d5ccde8c7 plan prompt: improve 'Open in Editor' (#1740)
* plan prompt: improve 'Open in Editor'

* accept suggestions
2025-10-31 15:05:33 +00:00
Martin Aeschlimann 50a91a7d84 fix savePrompt contribution (#1738)
* fix savePrompt contribution

* update prompt

* 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>
2025-10-31 15:00:28 +00:00
Dirk Bäumer 20ac697e4e Add support for n context provider ids (#1737)
* Add support for n context provider ids

* Address review comments
2025-10-31 13:39:57 +00:00
Logan Ramos c112726676 Fix hidden auto mode (#1736) 2025-10-31 12:14:15 +00:00
Benjamin Christopher Simmonds ce9a93a109 Support more functionality from the chat extension (#1725) 2025-10-31 09:42:07 +00:00
Alexandru Dima 5730aa7ffe update team setting (#1734) 2025-10-31 09:31:41 +00:00
Connor Peet 7b81eec536 edits: fix race condition that leading to clobbering paralle edits (#1724)
This fixes a race condition that can happen in LM results that contain
multiple edit tool calls. The emission and application of edits is
async, and so it is possible that an edit can be emitted and the next
edit generated before the first edit's changes are propagated to the
extension host's model.

This resolves the issue by keeping, updating, and reusing snapshotted
documents on each turn's prompt context.

cc @DonJayamanne for notebook stuff. This is a little shakier but it
seems to work (and I know NB prefers the separate notebook edit tool
anyway.)
2025-10-31 09:07:07 +00:00
Don Jayamanne a13077b75d Use new env variable for Copilot CLI in terminal (#1731) 2025-10-31 07:37:48 +00:00
Karthik Nadig 097c1dc923 chore: Remove ProxyExperimentEndpoint (#1727)
* remove `ProxyExperimentEndpoint`

* simplify `getAllChatEndpoints`
2025-10-31 05:50:59 +00:00
Bhavya U e639b4fd15 Add Memory tool: implementation (#1728)
* Add Memory tool: implementation, wiring, config, Anthropic beta support, and SDK bump

* Update tests
2025-10-31 04:27:15 +00:00
Don Jayamanne f9ed6387cd Refactor Copilot CLI loading and session management (#1730)
* Move Copilot CLI session out into own file

* Remvoe a few methods

* Updates
2025-10-31 04:23:45 +00:00
Don Jayamanne e03b73d0fd Refactor Copilot CLI loading and model fetching (#1729)
* Refactor loading Copilot CLI npm, and feching Copilot CLI models

* Updates

* Fix test

* 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>
2025-10-31 03:29:24 +00:00
Karthik Nadig 52cb61ddbb fix: remove thinking content in history for custom model (#1679) 2025-10-31 01:21:23 +00:00
Rob Lourens 78507ca268 Add response rate to log (#1726)
* Add response rate to log

* fix
2025-10-31 00:41:57 +00:00
Peng Lyu b5ff52a6d4 Support file content change part for cloud agent (#1641)
* Support file content change part for cloud agent

* move off Buffer

* 💄
2025-10-30 23:15:48 +00:00
Dirk Bäumer c8eb02ba8b Read context provider Exp values specific to language ID (#1719)
* Read context provider Exp values specific to language ID

* Remove if true
2025-10-30 22:11:18 +00:00
SteVen Batten e5f3898c6c add show in picker exp + refactor (#1723)
* add show in picker exp + refactor

* more concise

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

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

* remove unnecessary async

* no really remove it

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-30 22:07:02 +00:00
Logan Ramos 7b76fcc67e Hide warnings from auto (#1721) 2025-10-30 21:37:52 +00:00
Alexandru Dima bf8d603492 Configure a different model for selfhosting (#1712) 2025-10-30 20:36:24 +00:00
Connor Peet 36977078db edits: adopt edit session tracking for copilot cli (#1718) 2025-10-30 20:21:11 +00:00
Paul 7ec5f0fd9a Pull xAI BYOK models directly from API (#1680)
* add language models support

* Update

* cleaner names

* Update src/extension/byok/vscode-node/xAIProvider.ts

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

* update prompts as well

* PR

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-30 19:56:37 +00:00
SteVen Batten 7df4836475 make copilot-fast callable from api (#1697)
* make copilot-fast callable from api

* Update src/platform/endpoint/common/modelAliasRegistry.ts

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Logan Ramos <loganramos@microsoft.com>
2025-10-30 19:33:13 +00:00
Aaron Munger e25ee3a3a7 more specialized prompt for notebook inline (#1685) 2025-10-30 18:05:59 +00:00
Don Jayamanne 8b877f5db1 Unify terminal contribution descriptions for contributd terminal commands (#1716) 2025-10-30 17:54:40 +00:00
Logan Ramos 1fae237a9f Add more telemtry for auto (#1714)
* Add more telemtry for auto

* Update src/extension/byok/node/openAIEndpoint.ts

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-30 17:51:21 +00:00
Martin Aeschlimann 7713df5870 add savePrompt prompt (#1715) 2025-10-30 17:44:31 +00:00
Sandeep Somavarapu fb68f92ce4 write tests for internal settings validation (#1713) 2025-10-30 17:42:46 +00:00
Bhavya U d40c405c83 Remove raw citation text emission for web search citations (#1710) 2025-10-30 17:28:43 +00:00
Paul a3a569cd00 Remove model (#1668)
* remove

* fix
2025-10-30 17:00:20 +00:00
Logan Ramos 7079283757 Cleanup how auto passes headers (#1711)
* Cleanup how auto passes headers

* Tests?
2025-10-30 16:35:27 +00:00
Ulugbek Abdullaev 8ed2758bd6 nes: refactor: more sane way to tweak response format (#1709) 2025-10-30 15:38:09 +00:00
Ulugbek Abdullaev fe96b6d014 update cache (#1705) 2025-10-30 13:09:03 +00:00
Ulugbek Abdullaev 87d601c0db chore: bump engine to fix compat with core https://github.com/microsoft/vscode/pull/274025 (#1703) 2025-10-30 10:53:22 +00:00
Dirk Bäumer 6c0f008bf2 Bring back completion panel. (#1702)
* Bring back Copilot panel in chat

* Use ICompletionsContextService

* WIP

* Convert to service accessor

* More accessor work

* Some more accessor adaption

* Remove command from UI

* fix service accessors

---------

Co-authored-by: BeniBenj <besimmonds@microsoft.com>
2025-10-30 10:26:28 +00:00
Benjamin Christopher Simmonds 6847091f87 Support service injection for completions (#1698) 2025-10-30 06:50:27 +00:00
Bhavya U eb58023287 Add support for claude web_search tool (#1701)
* Add Anthropic web-search tool support and tool result handling

* Add TODO to handle citations as specialized Citation part

* Update src/extension/byok/vscode-node/anthropicProvider.ts

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

* Guard against missing pendingServerToolCall.toolId when processing web_search tool results in Anthropic provider

* Report citation metadata as LanguageModelToolResultPart for web_search citations in Anthropic provider

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-30 06:50:19 +00:00