16 Commits

Author SHA1 Message Date
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
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
Rob Lourens
84b8b46bd5 Add session transcript service for hooks (#3545)
* Add session transcript service for hooks

Implement JSONL-based session transcript service that records
conversation turns, tool executions, and assistant messages for
hook consumers.

Key changes:
- New ISessionTranscriptService interface and SessionTranscriptService
  implementation with buffered writes and automatic old transcript cleanup
- Integrate transcript logging into tool calling loop: user messages,
  assistant messages, tool execution start/complete, turn boundaries
- Auto-flush transcript and inject transcript_path into hook input
- Race flush with 500ms timeout to avoid blocking hook execution
- Gate transcript creation on ChatRequest.hasHooksEnabled
- Include copilotVersion and vscodeVersion in session.start entry
- Add timestamp to IToolCallRound for transcript timing
- Add hasHooksEnabled to ChatRequest interface and all implementors

* Fixes
2026-02-07 02:04:46 +00:00
Connor Peet
ba2e206efe tools: cleanup unused pause logic (#3488)
We removed the 'pause' feature back in ~June, cleanup logic we still had
around it. This removes:

- The PauseController class which was no longer being used
- onPaused event parameters from chat participant, request, and intent
  handlers
- Pause-related event listening and stream pausing logic
- Simplified throwIfCancelled to be synchronous since it no longer needs
  to wait for pause resumption

(Commit message generated by Copilot)
2026-02-05 18:24:07 +00:00
Connor Peet
8ca2807e66 chat: wire up yieldrequested for steering messages (#3473)
* chat: wire up yieldrequested for steering messages

Allows the client to do a 'soft cancel' after a tool call happens before returning back to the model, or before the next turn.

* fix compile
2026-02-05 16:05:57 +00:00
Karthik Nadig
86e5f95490 Add question functionality and related types for chat interactions (#3157)
* Add question carousel functionality and related types for chat interactions

* feat: enhance logging for question carousel processing and answer conversion

* feat: enhance answer processing in AskQuestionsTool to support freeform text input

* cleanup: remove unused AskQuestionResult type from IQuestionAnswer

* clenaup: restore package.json

* feat: enhance AskQuestionsTool to handle no stream scenario and improve carousel answer conversion
2026-01-26 19:23:30 +00:00
Johannes Rieken
02d7754061 * drive inline chat feedback telemetry from CopilotInteractiveEditorResponse (#2435)
* `CopilotInteractiveEditorResponse.kind` is always 'ok' -> remove it

fixes https://github.com/microsoft/vscode/issues/280959
2025-12-05 13:26: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
Rob Lourens
61325a7d80 Adopt isSubAgent tool call hint (#1173)
See microsoft/vscode#266588
2025-09-27 04:51:14 +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
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
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
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
kieferrm
333d9a4053 Hello Copilot
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-06-27 11:35:20 +02:00