Skip to content

agentHost: Emit user message telemetry to CTS - #329961

Merged
Aaron Munger (amunger) merged 6 commits into
microsoft:mainfrom
a1exmozz:a1exmozz/agent-host-standard-telemetry
Aug 12, 2026
Merged

Aaron Munger (amunger) merged 6 commits into
microsoft:mainfrom
a1exmozz:a1exmozz/agent-host-standard-telemetry

Conversation

@a1exmozz

@a1exmozz a1exmozz commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Copilot Metrics needs to report usage of the dedicated VS Code Agents window separately from editor-window chat.

Prior work added per-interaction initiatorClientType attribution in #327417 and propagated it to standard GitHub telemetry in #328074. This PR makes the existing agentHost.userMessageSent event available to standard GitHub telemetry with:

  • initiatorClientType
  • The owning Agent Host session as conversationId

Chat and subagent URIs are normalized to the owning session so downstream session counts do not treat subagents as separate sessions. The existing Microsoft telemetry event remains unchanged.

Copilot AI balanced review requested due to automatic review settings August 10, 2026 14:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds standard GitHub telemetry for Agent Host user messages while preserving existing Microsoft telemetry.

Changes:

  • Emits client type and normalized conversation ID.
  • Adds coverage for subagent chat URI normalization.
Show a summary per file
File Description
agentHostTelemetryReporter.ts Emits the GitHub telemetry event.
agentHostTelemetryReporter.test.ts Verifies event properties and normalization.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@a1exmozz

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree company="GitHub"

@a1exmozz
a1exmozz force-pushed the a1exmozz/agent-host-standard-telemetry branch from 8b555b5 to 9019e03 Compare August 11, 2026 09:49
roblourens
roblourens previously approved these changes Aug 11, 2026
# Conflicts:
#	src/vs/platform/agentHost/node/agentSideEffects.ts
#	src/vs/platform/agentHost/test/node/agentHostTelemetryReporter.test.ts
@a1exmozz

Copy link
Copy Markdown
Contributor Author

fixed merge conflicts

@amunger
Aaron Munger (amunger) enabled auto-merge (squash) August 12, 2026 19:46
@amunger
Aaron Munger (amunger) merged commit f4a583b into microsoft:main Aug 12, 2026
27 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.134.0 milestone Aug 12, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Sep 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants