Repository navigation
agentHost: Emit initiator client type in CTS telemetry - #328074
Merged
Merged
Conversation
Propagate the initiating AHP client type to skill, auto-mode, and repository-info telemetry, including standard CTS skill events. (Written by Copilot) Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Adds initiator client attribution (initiatorClientType) to agent host CTS/restricted telemetry so events can be attributed to the originating UI client (e.g., editor vs agents window), including across async repo-info begin/end reporting.
Changes:
- Plumbs
clientTypethrough session turn state and repo-info telemetry begin/end to preserve initiator across async capture. - Emits
initiatorClientTypeon auto-mode routing, repo-info, and skill-content-read telemetry (including standard GH telemetry forskillContentRead). - Updates unit tests and test telemetry service to assert/record the new property.
Show a summary per file
| File | Description |
|---|---|
| src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts | Captures current turn client type and carries it through skill/auto-mode/repo-info telemetry. |
| src/vs/platform/agentHost/node/agentHostTelemetryReporter.ts | Adds initiatorClientType into emitted telemetry payloads and extends report shapes with clientType. |
| src/vs/platform/agentHost/node/agentHostRepoInfoTelemetry.ts | Threads clientType through repo-info capture/report path so begin/end can include initiator attribution. |
| src/vs/platform/agentHost/test/node/copilotAgentSession.test.ts | Updates session telemetry assertions to include initiatorClientType. |
| src/vs/platform/agentHost/test/node/agentHostTelemetryReporter.test.ts | Extends test telemetry service to record standard GH events and asserts initiatorClientType across sinks. |
| src/vs/platform/agentHost/test/node/agentHostRepoInfoTelemetry.test.ts | Updates repo-info telemetry tests to pass/verify clientType. |
Review details
- Files reviewed: 6/6 changed files
- Comments generated: 3
- Review effort level: Low
Cache the initiating client type with the begin capture so repository telemetry always attributes begin and end consistently. (Written by Copilot) Co-authored-by: Copilot <[email protected]>
roblourens
marked this pull request as ready for review
July 30, 2026 00:14
roblourens
enabled auto-merge (squash)
July 30, 2026 00:14
Vijay Upadya (vijayupadya)
approved these changes
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
initiatorClientTypeon the existing standard CTSskillContentReadeventValidation
npm run compile-clientnpm run precommitFollow-up to #327417.
(Written by Copilot)