Skip to content

Add taskModelSource to SubagentStartedData - #2497

Draft
bhavyaus wants to merge 1 commit into
mainfrom
bhavyaus/subagent-task-model-source
Draft

Add taskModelSource to SubagentStartedData#2497
bhavyaus wants to merge 1 commit into
mainfrom
bhavyaus/subagent-task-model-source

Conversation

@bhavyaus

@bhavyaus bhavyaus commented Sep 3, 2026

Copy link
Copy Markdown

Summary

Adds the Node event type for the runtime's new optional taskModelSource field on subagent.started (github/copilot-agent-runtime#18727). VS Code Agent Host reads it to report where a task-tool sub-agent's model input came from.

Value What it tracks
task_argument The parent agent passed task.model
subagent_configuration No task.model; the per-sub-agent settings entry supplied a concrete model
custom_agent_definition No task.model; a user-defined custom agent's definition supplied its model
unset Neither the task call nor structured configuration supplied a model

The field is optional and absent for sub-agents created through non-task launch paths.

Draft until

The runtime PR lands and the CLI package the SDK codegen reads from is published. At that point this file should be regenerated from the published schema; the hand-edit here matches the runtime's generated output exactly so the regen should produce no further diff. Other language bindings are intentionally not touched — only the Node binding is consumed by VS Code Agent Host.

Validation

  • tsc --noEmit
  • vitest run session-event (26 tests)
  • prettier --check on the generated file

Node event type for the runtime's new optional `subagent.started`
field, so VS Code Agent Host can read where a task-tool sub-agent's
model input came from.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant