Skip to content

Add chatSessionId to chat.modelChange telemetry - #322579

Merged
Aashna Garg (aashna) merged 3 commits into
microsoft:mainfrom
Sid200026:chat-modelchange-conversation-id
Jun 26, 2026
Merged

Aashna Garg (aashna) merged 3 commits into
microsoft:mainfrom
Sid200026:chat-modelchange-conversation-id

Conversation

@Sid200026

Copy link
Copy Markdown
Member

Correlate explicit model-picker switches with the conversation by emitting the chat session id

Copilot AI review requested due to automatic review settings June 23, 2026 16:50

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

This PR adds a chat-session correlation identifier to the chat.modelChange telemetry event so model-picker switches can be associated with the active chat conversation/session.

Changes:

  • Extend the model picker delegate API with an optional getConversationId() hook.
  • Emit conversationId on the chat.modelChange telemetry event when the user selects a different model.
  • Wire the chat input’s delegate implementation to derive the ID from the current session resource.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.ts Adds optional delegate method for providing the current conversation/session correlation id.
src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.ts Extends chat.modelChange telemetry schema and logs the conversation id on model selection.
src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts Implements the delegate hook by converting the current session resource to an id.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

@Sid200026 Siddharth Singha Roy (Sid200026) changed the title Add conversationId to chat.modelChange telemetry Add chatSessionId to chat.modelChange telemetry Jun 23, 2026

@bhavyaus Bhavya U (bhavyaus) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

…ersation-id

# Conflicts:
#	src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts
auto-merge was automatically disabled June 25, 2026 17:20

Head branch was pushed to by a user without write access

@aashna
Aashna Garg (aashna) merged commit 4ef33b8 into microsoft:main Jun 26, 2026
46 of 47 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.127.0 milestone Jun 26, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Aug 10, 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.

8 participants