Skip to content

Add promptTypes to summarizedConversationHistory telemetry#311790

Merged
bhavyaus merged 1 commit intomainfrom
dev/bhavyau/prompttypes-summarization-telemetry
Apr 21, 2026
Merged

Add promptTypes to summarizedConversationHistory telemetry#311790
bhavyaus merged 1 commit intomainfrom
dev/bhavyau/prompttypes-summarization-telemetry

Conversation

@bhavyaus
Copy link
Copy Markdown
Collaborator

@bhavyaus bhavyaus commented Apr 21, 2026

Adds a promptTypes property to summarizedConversationHistory telemetry events, mirroring the same property already on panel.request events.

Copilot AI review requested due to automatic review settings April 21, 2026 21:39
@bhavyaus bhavyaus force-pushed the dev/bhavyau/prompttypes-summarization-telemetry branch from d5696d0 to f9b18ce Compare April 21, 2026 21:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends Copilot’s summarization telemetry by adding a promptTypes property to summarizedConversationHistory events so prompt structure can be correlated with server-side prompt cache hit rates (similar to existing panel.request telemetry).

Changes:

  • Add promptTypes computation and emission for summarizedConversationHistory on successful summarization in the standard summarizer flow.
  • Add promptTypes emission for the background inline summarization success telemetry path.
Show a summary per file
File Description
extensions/copilot/src/extension/prompts/node/agent/summarizedConversationHistory.tsx Captures rendered summarization messages and emits promptTypes on success in summarizedConversationHistory telemetry.
extensions/copilot/src/extension/intents/node/agentIntent.ts Emits promptTypes for the background inline summarization success path to match standard summarizer telemetry.

Copilot's findings

Comments suppressed due to low confidence (1)

extensions/copilot/src/extension/prompts/node/agent/summarizedConversationHistory.tsx:841

  • The promptTypes format in this event includes an optional -<name> segment (e.g. tool-myTool:123) when messages have a name, but the GDPR comment/example only mentions role:charCount. Update the comment to reflect the actual emitted format so downstream consumers don’t mis-parse it.
				"promptTypes": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Role and character count of each prompt message in order, as a proxy for cache hit rate (e.g. system:1234,user:567)." },
  • Files reviewed: 2/2 changed files
  • Comments generated: 2

Comment thread extensions/copilot/src/extension/intents/node/agentIntent.ts
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2026

Screenshot Changes

Base: b0008540 Current: 54ffd294

Changed (1)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after

@bhavyaus bhavyaus force-pushed the dev/bhavyau/prompttypes-summarization-telemetry branch from 42a744d to 3b4f7d9 Compare April 21, 2026 21:49
@bhavyaus bhavyaus enabled auto-merge (squash) April 21, 2026 21:50
@bhavyaus bhavyaus force-pushed the dev/bhavyau/prompttypes-summarization-telemetry branch from 3b4f7d9 to 7512eb7 Compare April 21, 2026 22:00
Adds a promptTypes property to summarizedConversationHistory telemetry events,
mirroring the same property already on panel.request events. This is a
comma-separated string of role:charCount entries (e.g. system:1234,user:567)
representing each message in the summarization request in order.

This helps correlate cache hit rates with prompt structure divergence across
summarization calls, giving visibility into where prompts diverged from the
previous request.

Changes:
- summarizedConversationHistory.tsx: added promptTypes to sendSummarizationTelemetry
  using post-transformation messages (after strip operations)
- agentIntent.ts: added promptTypes to inline summarization success telemetry
@bhavyaus bhavyaus force-pushed the dev/bhavyau/prompttypes-summarization-telemetry branch from 7512eb7 to cd4290e Compare April 21, 2026 22:26
@bhavyaus bhavyaus merged commit e53a040 into main Apr 21, 2026
26 checks passed
@bhavyaus bhavyaus deleted the dev/bhavyau/prompttypes-summarization-telemetry branch April 21, 2026 22:49
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 21, 2026
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.

3 participants