Skip to content

Log telemetry when the closed-chat promo pip is armed - #337997

Merged
Dmitriy Vasyura (dmitrivMS) merged 2 commits into
microsoft:mainfrom
rfeltis:rfeltis-promo-pip-armed-telemetry
Oct 26, 2026
Merged

Dmitriy Vasyura (dmitrivMS) merged 2 commits into
microsoft:mainfrom
rfeltis:rfeltis-promo-pip-armed-telemetry

Conversation

@rfeltis

Copy link
Copy Markdown
Contributor

Adds a chatPromoWidgetArmed event the first time a promo's status-bar pip is shown. Together with the existing events, this gives a funnel for the closed-chat promo:

Stage Event
Cohort (both arms) tasClientReadTreatmentComplete for config.chat.closedPromoNotification
Pip armed chatPromoWidgetArmed (new)
Card shown chatPromoWidgetShown
CTA clicked chatPromoWidgetAction with action: "tryModel"

The event fires once per promo id per session. It doesn't fire if the promo was already seen, because the pip isn't shown then.

Proof: real ExP assignment

I ran Code OSS from this branch against the real TAS endpoint. For each arm, I started a temporary one-device stage on the existing Copilot closed-chat promo progression. The sale metadata was faked by a localhost proxy in front of the real Copilot API. Both stages are now stopped.

Treatment (closed-promo-popup:31590781): the pip shows, the card opens, and Try GPT-5.3-Codex opens Chat. Event counts: armed, shown and action each fired exactly once.

treatment-exp-proof.mp4

Armed event in the Telemetry output
Treatment cohort event

Control (closed-promo-control:31590798): no pip, and the Copilot status hover has no offer. The cohort event shows treatmentValue: "none", and no promo events fired.

control-exp-proof.mp4

Control cohort event

Tests

chatStatusPromo.test.ts: 37 passing. I updated the two expectations for the emitted event sequence.

Copilot AI balanced review requested due to automatic review settings September 25, 2026 16:45

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.

Copilot review overview

🟢 Approval recommended

The implementation matches the described behavior and existing tests cover repeated updates and event ordering.

Review effort: Balanced
Findings: None

What changed in this PR

Adds telemetry for the closed-chat promo funnel when its status-bar pip first appears.

Changes:

  • Emits chatPromoWidgetArmed once per promo ID per session.
  • Updates promo tests to verify telemetry ordering.
File Description
chatStatusPromo.ts Tracks armed promos and emits the new event.
chatStatusPromo.test.ts Updates expected telemetry sequences.

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

@rfeltis
Ralph Feltis (rfeltis) marked this pull request as ready for review October 16, 2026 22:58
@rfeltis
Ralph Feltis (rfeltis) force-pushed the rfeltis-promo-pip-armed-telemetry branch from c2a5ec9 to 4ee5b5b Compare October 17, 2026 01:19
Adds a chatPromoWidgetArmed event the first time a promo's status-bar pip is shown, alongside the existing chatPromoWidgetShown and chatPromoWidgetAction events.

Co-authored-by: Copilot App <[email protected]>
@rfeltis
Ralph Feltis (rfeltis) force-pushed the rfeltis-promo-pip-armed-telemetry branch from 4ee5b5b to 053a354 Compare October 19, 2026 15:11
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) merged commit 0af6701 into microsoft:main Oct 26, 2026
55 of 73 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.145.0 milestone Oct 26, 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.

6 participants