Commit Graph
16 Commits
Author SHA1 Message Date
Logan Ramos bc38398417 Make sub agents implemented as tools render as subagents (#326867) 2026-07-21 19:40:57 +00:00
Vijay Upadya d96a3c83b7 Chronicle: handle undefined CapturingToken in execution_subagent (#318503)
* Chronicle: handle undefined CapturingToken in execution_subagent

* minor update
2026-05-27 05:02:01 +00:00
Vijay Upadya 1392847204 Chronicle: fold execution_subagent trajectory into parent session (#318475) 2026-05-27 12:11:57 +10:00
Paul 639132100f Add support for per-turn ubb info (#314783) 2026-05-07 04:57:17 +00:00
Megan Rogge 566f6bb0ac Handle inputNeeded in execution subagent to prevent looping (#314141) 2026-05-04 15:44:19 -07:00
7bf921d0e6 Yemohyle/add to ext telemetrey (#313159)
* add last asst messages logs

* add last asst messages logs ...

* add tokens info

* add parentHeaderrequestId value to subagent telemetry

* remove debug logging

* Apply suggestion from @Copilot

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

* suggested change

* extra verification

* revert suggested change

* remove debug logs

* add modelcallId and parentModelCallId to response.success telemetry

* add engine.messages logs

* fix modelCallId

* add logging

* add turnIndex to response.success

* add iterationNumber proxy for request turn

* add iterationNumber proxy for request turn to model.modelCall events

* add to response.success telemetry

* change parentRequestId to point to correct corresponding requestId

* remove debug logs

* Update extensions/copilot/src/extension/intents/node/toolCallingLoop.ts

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

* atomatic review comments changes

---------

Co-authored-by: Yevhen Mohylevskyy <yevhenmohylevskyy@Yevhens-MacBook-Pro-2.local>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-05-01 21:03:40 +00:00
Vikram Nitin 396ea4809a Merge pull request #313067 from vikramnitin9/vikram/exec_subagent_async
Execution Subagent Async Behaviour
2026-04-30 13:08:08 -05:00
Vikram Nitin d6b2a0bdf5 Relocated interface from prompt file 2026-04-29 18:48:59 +00:00
Vikram Nitin c82fc5b488 Added a check for when subagent calls a command async 2026-04-29 18:37:47 +00:00
Vikram Nitin fc042794a6 Removed extra tools, added check for timeouts 2026-04-28 18:00:27 +00:00
ffc280ded2 Yemohyle/add to telemetry (#311837)
* add last asst messages logs

* add last asst messages logs ...

* add last asst messages logs ....

* add last asst messages logs .....

* add assistant messages added logs

* ...

* add tokens info

* add parentHeaderrequestId value to subagent telemetry

* remove debug logging

* Apply suggestion from @Copilot

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

* suggested change

* extra verification

* revert suggested change

* remove debug logs

* add cashed tokens to Legasy SSE path

---------

Co-authored-by: Yevhen Mohylevskyy <yevhenmohylevskyy@Yevhens-MacBook-Pro-2.local>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-28 17:59:04 +00:00
Tyler James Leonhardt 8c15ca4852 Move IRequestLogger into common (#309121)
* Move IRequestLogger into common

so that it can be used in common files.

also two tiny feedbacks in claude from https://github.com/microsoft/vscode/pull/309119

* format
2026-04-10 17:58:44 -07:00
yemohyleyemohyleandYevhen Mohylevskyy 6451a218d5 Yemohyle/subagent telem (#4916)
* initial commit fix request id for subagent and add parentToolCallId

* change logging to info

* fix headerRequestId missing

* fix

* fix...

* remove debug logging

* change back runSubagent changes

---------

Co-authored-by: Yevhen Mohylevskyy <yevhenmohylevskyy@Yevhens-MacBook-Pro-2.local>
2026-04-07 01:33:49 +00:00
Bhavya U 46ab74fb49 feat: formalize deferred vs non-deferred tool status as opt-in on ICopilotTools (#4750)
Move the hardcoded nonDeferredToolNames set from the Anthropic networking
layer to an opt-in `nonDeferred` static property on each tool class.

- Add `nonDeferred?: boolean` to ICopilotToolCtor interface
- Add IToolDeferralService with isNonDeferredTool() for DI-based access
- Mark all 18 frequently-used tools as nonDeferred = true at declaration
- Register IToolDeferralService in prod, unit test, and vscode-node test
- Remove centralized nonDeferredToolNames set from anthropic.ts
- Fix latent bug: old 'ask_questions' entry never matched the real
  'vscode_askQuestions' tool name; now correctly included via
  ToolName.CoreAskQuestions

Fixes microsoft/vscode#303545
2026-03-27 05:40:52 +00:00
Ulugbek Abdullaev e47502f509 fix: remove flattenSingleChild/promoteMainEntry from CapturingToken (#4701)
XtabProvider entries appeared unnested at the top level when the
sibling NES MarkdownContentRequest entry was hidden (via setIsSkipped
or cancellation). This happened because flattenSingleChild promoted
the sole remaining child to the top level.

Instead of adding the log context document as a child that gets
'promoted' into the parent, ChatPromptItem now directly owns the
document via setMainEntry(). A MarkdownContentRequest whose debugName
matches the token label is wired to the parent's icon and click
command — never added as a tree child. Groups with no visible
children render as non-expandable leaf items.

This removes flattenSingleChild and promoteMainEntry from
CapturingToken, making it a pure correlation token with no
rendering hints. The tree view owns all rendering conventions.
2026-03-26 17:40:30 +00:00
Vikram NitinandAakash Goel 0464f32967 Adding an execution-focused subagent (#3178)
* Added execution subagent

* Updated config

* Add execution_subagent to nonDeferredToolNames for Tool Search compatibility

* Modified to be in line with search subagent. Also removed all tools except terminal

* Fixed error with default model in package.json

* Updated prompt snapshots so that tests pass

* Deleted accidentally added yaml

* Modified subagent input format to not take exact commands

* Fixed parameter error

* Updated prompt snapshots

* Updated prompts according to Rob's suggestions

* Addressed Copilot and Bhavya comments

* Reverted accidental changes in anthropicPrompts.tsx

* Tweaked the tool use instructions wrt CoreRunInTerminal slightly

* Minor prompt changes

* Updated for new ToolCallingLoop interface

* Added instruction to Claude 4.6 prompt

* Gating change in prompts to prevent empty tags when execution subagent is not enabled

---------

Co-authored-by: Aakash Goel (MSTIC DS&AI) <aakashgoel@microsoft.com>
2026-03-19 04:55:58 +00:00