Commit Graph

63 Commits

Author SHA1 Message Date
Ladislau Szomoru 2c92092e40 Git - add repository/branch name to the commit message generation context (#1756) 2025-11-02 19:26:50 +00:00
Ulugbek Abdullaev fe96b6d014 update cache (#1705) 2025-10-30 13:09:03 +00:00
Ulugbek Abdullaev 66fc3dc3fd update cache (#1688) 2025-10-29 11:39:45 +00:00
Johannes Rieken fcbff5831a InlineChatIntent (#1549)
* remove references to old setting `github.copilot.chat.advanced.inlineChat2`

* play with `InlineChatIntent`

* wip

* move things, better/simpler prompt

* cleanup, renames, stuff

* more wip

* done after tool call

* edit and generate stest for new InlineChatIntent

* use codebook for diagnostics

* inline chat fixing stests

* stest run

* remove old Inline2 tests

* remove slash commands for v2, remove the editCodeIntent path for v2

* 💄

* 💄

* Don't use `diagnosticsTimeout` when with inline chat because the new diagnostics will never be read but slow down the result

* fix compile error

* stest run

* update baseline

* prevent some JSON errors from empty output

* unfresh baseline.json

* use `MockGithubAvailableEmbeddingTypesService` in stests

* back to hamfisted skipping of stests

* send telemetry from inline chat intent

* tweak some stests
2025-10-29 10:44:00 +00:00
Kyle Cutler d316af6ada Support generating PR descriptions based on a template (#1431)
* Support generating PR descriptions based on a template

* Try fix tests

* Comment

* Update cache
2025-10-27 14:07:07 +00:00
Kyle Cutler 7be42d291f Regenerate model metadata cache and fix outdated s-test (#1551)
Co-authored-by: Ulugbek Abdullaev <ulugbekna@gmail.com>
2025-10-24 15:49:26 +00:00
Ulugbek Abdullaev e7f5034823 nes: debt: remove python server-powered NES (#1435) 2025-10-20 18:06:27 +00:00
Ulugbek Abdullaev 10ffc78324 update cache (#1396)
* update cache

* update cache
2025-10-17 12:35:42 +00:00
Pierce Boggan 0af1ef6fce Model should self-identify if asked (#1267)
* Update model response guidelines in agent prompts

- Modified the response instructions in `agentPrompt.tsx` to clarify when to state the model name.
- Enhanced the `CopilotIdentityRules` class in `copilotIdentity.tsx` to include model name responses.

| File                             | Changes                                                                 |
|----------------------------------|-------------------------------------------------------------------------|
| `agentPrompt.tsx`               | Updated guidance on stating model name when asked.                     |
| `copilotIdentity.tsx`           | Added model name response instructions in identity rules.               |

* Update guidance on model name disclosure in agent prompts

- Revised instruction to clarify that the model name should not be volunteered unless explicitly asked by the user.

| File                                   | Changes Made                                      |
|----------------------------------------|--------------------------------------------------|
| src/extension/prompts/node/agent/agentPrompt.tsx | Updated reminder text regarding model name disclosure. |

* Update agent prompts to include model disclosure

- Added instruction to state the model being used when asked about it in multiple agent prompt snapshots.

| File Path                                                                 | Changes Made                                                                 |
|---------------------------------------------------------------------------|------------------------------------------------------------------------------|
| src/extension/prompts/node/agent/test/__snapshots__/agentPrompt.spec.tsx.snap | Updated responses to include model disclosure when asked about the model.    |

* Add SQLite cache file for simulation layer

This commit introduces a new SQLite cache file for the simulation layer to enhance data retrieval efficiency.

| File                                                                 | Changes                       |
|----------------------------------------------------------------------|-------------------------------|
| test/simulation/cache/layers/2171978e-88a1-4218-afac-dc1fe7ecc095.sqlite | New file created with versioning info |

* Add SQLite cache file for simulation layer

This commit introduces a new SQLite cache file to enhance the simulation layer's performance.

| File                                                                 | Changes                |
|----------------------------------------------------------------------|------------------------|
| test/simulation/cache/layers/94afd615-5805-4860-a1ba-3f9ebbf7b9a4.sqlite | New file added 📁      |

* remove bad cache layers

* npm run simulate

* update baseline

---------

Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2025-10-16 18:21:10 +00:00
Megan Rogge 5e1320a89d rm start debugging intent (#1323)
* rm start debugging intent

* rm test

* rm something

* update baseline

* Apply suggestion from @meganrogge
2025-10-15 21:34:59 +00:00
Ladislau Szomoru 063d9a6842 Git - switch commit message generation to gpt5-mini (#1249) 2025-10-07 07:57:48 +00:00
Rob Lourens 5eaa17af31 gpt-5-codex prompt improvements (#1177)
* gpt-5-codex prompt improvements

* update baseline
2025-09-28 22:56:41 +00:00
Rob Lourens 61325a7d80 Adopt isSubAgent tool call hint (#1173)
See microsoft/vscode#266588
2025-09-27 04:51:14 +00:00
Rob Lourens 9ce9f6cb2b Reduce INTERNAL_RESTRICTED (#1029)
* Reduce INTERNAL_RESTRICTED
and delete edits linkification setting

* Update
2025-09-12 04:43:26 +00:00
Matt Bierner d7c09e68fe Don't index files outside of the workspace (#957)
For https://github.com/microsoft/vscode/issues/261532

Makes sure callers don't accidentally try indexing files outside of the workspace
2025-09-09 01:35:22 +00:00
Matt Bierner bf8ec6c11d Explicitly dispose of the SimulationWorkspace (#929)
Looking into why this is being retained as well during testing but hopefully this reduces the memory usage
2025-09-06 05:03:08 +00:00
Alexandru Dima b7795e5434 Disallow importing straight from /extHostTypes/ and avoid instanceof check in ExtHostDocumentData (#878)
* Disallow importing straight from /extHostTypes/ and avoid instanceof check in ExtHostDocumentData

* Relax MarkdownString

* Undo most of the changes
2025-09-02 20:36:51 +00:00
Bhavya U fb0ad7f194 Add support for fetching release notes by version and update VscodePrompt to handle multiple versions (#859)
* Add support for fetching release notes by version and update VscodePrompt to handle multiple versions

* Skip metaprompt test suite for vscode panel

* Remove obsolete vscode metaprompt panel test data

* Remove skipped metaprompt panel test cases from baseline.json
2025-09-01 01:32:11 +00:00
Alexandru Dima 8956a62b06 Reuse more code from vscode (#836) 2025-08-29 16:30:23 +00:00
Alexandru Dima 6ddc031f00 Reduce code in /shims/ and rely on code coming in from vscode (#784)
* Reduce code in /shims/ and rely on code coming in from vscode

* update snapshots as a consequence of using MarkdownString from vscode
2025-08-29 14:10:37 +00:00
Benjamin Christopher Simmonds e992aa7164 Add excludes and groupId (#777)
* Add excludes and groupId

* 💄
2025-08-26 22:38:36 +00:00
Don Jayamanne 1a94dd33d4 Provide notebook contents on creation (#766)
* Provide contents of notebooks when notebook is created using create file

* Update baseline
2025-08-26 06:36:43 +00:00
Aaron Munger b3868ec970 debug chat replay with replay intent (#693)
* stub out new participant for replay

* add debugger to step through replay file

* parse and debug json replay

* make edits from the replay

* create absolute path

* update for the latest json format

* show tool calls with tool call renderer

* use singleton object for response queue

* cleanup

* formatting

* baseline update

* baseline update again

* just disable tool from normal agent calls

* reverting stest changes

* nes: clean up enforcing minimum response delay and cancellation handling (#746)

* nes: do not enforce minimum response delay for NES in 2 cases  (#748)

* nes: clean up enforcing minimum response delay and cancellation handling

* nes: do not enforce minimum response delay for NES in 2 cases

    1. for NES that's a subsequent edit (ie non-first edit in a set of multiple edits that come from a single model request)
    2. for NES that was cached and is returned again after rebasing on user edits

* Move to latest completion core (#749)

* update baseline

* use existing util

---------

Co-authored-by: Ulugbek Abdullaev <ulugbekna@gmail.com>
Co-authored-by: Dirk Bäumer <dirkb@microsoft.com>
2025-08-25 17:59:45 +00:00
Ulugbek Abdullaev 54cb26922e nes: feat: enable emit-fast-cursor-change by default (#743) 2025-08-25 09:45:36 +00:00
Don Jayamanne 1e35a2482b Additional telemetry for Notebook NES (#740)
* Additional telemetry for Notebook NES

* Updates
2025-08-25 02:11:39 +00:00
Rob Lourens 3177ea45f9 Add 'duration' to simulator request logs (#732)
even when cache is disabled
2025-08-23 18:55:58 +00:00
Henning Dieterichs 5a50ffb962 Copies sources from vscode (#688)
* Copy sources from vscode

* NodeJS.Timeout -> TimeoutHandle

* Fixes copy sources fallout

* Fixes snapshots
2025-08-20 09:46:00 +00:00
Rob Lourens 912e4ce46f Set max_tokens on intentDetection to avoid runaway responses (#648)
* Set max_tokens on intentDetection to avoid runaway responses

* Update baseline
2025-08-18 20:01:51 +00:00
Rob Lourens e8cb541662 Make prompt_tokens_details optional (#625)
* Make prompt_tokens_details optional
gpt-oss does not send this, let's just call it optional

* Fix odd type errors
2025-08-17 22:07:20 +00:00
Connor Peet ad4d063779 prompts: avoid wrapping file attachments in code fences (#569)
* prompts: avoid wrapping file attachments in code fences

We previously included attached files like this

```
<attachment id="test.js" filePath="/home/jola/test.js">
\```javascript
bar

asd (
\```
</attachment>
```

Which, very reasonably, caused the model to get confused and think that
the file actually contained those backticks. This change removes that
so that it's just

```
<attachment id="test.js" filePath="/home/jola/test.js">
bar

asd (
</attachment>
```

Refs https://github.com/microsoft/vscode/issues/260772#issuecomment-3176793591

Busted all the caches with associated baseline noise.

* fixup
2025-08-12 19:06:46 +00:00
Daniel Imms e30b068b22 Move terminal selection/command tools to core (#545)
* Move terminal selection/command tools to core

Part of microsoft/vscode#259260

* Update baseline
2025-08-11 19:11:17 +00:00
Don Jayamanne d2713c5e3e Add some simple NES tests for alt format of notebooks (#543)
* Add some simple NES tests for alt format of notebooks

* Updates

* Updates
2025-08-11 10:40:52 +00:00
Rob Lourens bba605a8e0 Remove IntentParams and intent:true (#534)
Took a long time, this started as a PR on the old vscode-copilot repo
2025-08-09 18:43:43 +00:00
Rob Lourens 9f43afddfc Make agent stests optional (#514)
* Make agent stests optional

* And this

* Marked as optional
2025-08-08 03:05:15 +00:00
Rob Lourens 4cc98c62a4 Add a switch for Instant Apply to use short model for lower context prompts (#497)
* use enum for model

* add small proxy endpoint and use when needed

* extend endpoint to reduce duplication and imply dependance

* use experiment service

* rename small -> short

* fix model name

* fix type

* separate endpoint impls for upcoming header changes

* remove extra spaces

* Update baseline

* Full update

* Update

---------

Co-authored-by: Vritant Bhardwaj <vrtoku@gmail.com>
Co-authored-by: Vritant Bhardwaj <vrbhardw@microsoft.com>
2025-08-07 17:29:28 +00:00
Rob Lourens 3bd01fab1d Use lineNumberStyle for FileVariable (#227)
* Use lineNumberStyle for FileVariable

* vitest

* update test files with no baseline...

* Update baseline scores for toolCalling tests to reflect recent changes

* tests

* Update baseline

---------

Co-authored-by: Ulugbek Abdullaev <ulugbekna@gmail.com>
2025-08-07 06:04:26 +00:00
Rob Lourens 2e245cc182 Fix thinking tool (#474)
* Fix thinking tool
#259934

* Update
2025-08-05 23:52:34 +00:00
Rob Lourens 342c148cad Merge pull request #331 from jwangxx/retry-content-filtered-messages-and-clear-stream (#435)
If chat completion encounters content filtered error, attempt to retry in a way that avoids the filter, using new clear() method to clear the ChatResponseStream
2025-08-04 00:37:46 +00:00
Bhavya U 613da9522b remove unused language fields and clean up project setup info (#404)
* remove unused language fields and clean up project setup info

* fix: add missing punctuation in instructions for clarity

* Update cache

* Remove cache layer file that requires signed commit

* Update cache
2025-07-30 23:47:50 +00:00
Megan Rogge 219996961b rm docSearchClient from startDebugging (#379)
* rm docSearchClient from startDebugging

* update baseline
2025-07-28 16:23:06 +00:00
Henning Dieterichs 1991bb86bf Uses core provider request time instead of extension provider invocation time for debouncing (guarded by chat.advanced.inlineEdits.debounceUseCoreRequestTime). (#366) 2025-07-25 16:44:43 +00:00
Don Jayamanne 5a84e4a08d Use alternative notebook format for NES (#352)
* Use alternative notebook format for NES

* Updates
2025-07-25 14:24:27 +00:00
Megan Rogge f99ca51227 rm task tools (#357)
* rm task tools

* rm unused

* update baseline

* update baseline
2025-07-24 21:42:31 +00:00
Connor Peet 12527117f9 tools: remove runtests tool (#353)
* tools: remove runtests tool

This was moved to core in yesterday's Insiders and can now be removed in Copilot

* fix up tests

* update baseline
2025-07-24 18:23:33 +00:00
Don Jayamanne 67458790b5 Alternative Notebook content with code cells and utilities to translate edits and positions (#342)
* Alternative Notebook content with code cells and utilities to translate edits and positions

* Fix tests

* Update baseline

* Add alt offset

* Rename method

* Updates

* Exclude md cells when handling updates
2025-07-23 10:32:33 +00:00
Daniel Imms 8cc3787f01 Remove run in terminal tool (#308)
* Remove run in terminal tool

Part of #252650

* Remove 2 suffix from core tool names

They will change in sync

* Update baseline
2025-07-18 20:34:56 +00:00
Megan Rogge 9901ec5d89 also track non-copilot terminals in agent context (#221)
* fix #254495

* tweak

* fix issues

* get it to work for both

* cleanup

* fix tests

* update baseline

* Apply suggestion from @meganrogge

* update baseline

* fix test
2025-07-18 15:12:41 +00:00
Logan Ramos 58dfa936e9 bump model metadata salt (#288)
* bump model metadata salt

* Add new cache entry
2025-07-17 20:37:34 +00:00
Ulugbek Abdullaev 7b8dc1d882 update cache (#247) 2025-07-15 12:00:31 +00:00
Kamal Raj Sekar d1ef847b5c Removed unused code from tests (#207)
Co-authored-by: trycatchkamal <=>
2025-07-11 06:37:15 +00:00