Skip to content

Don't use trusted telemetry value on model ids#305760

Merged
lramos15 merged 4 commits intomainfrom
lramos15/bored-chickadee
Mar 27, 2026
Merged

Don't use trusted telemetry value on model ids#305760
lramos15 merged 4 commits intomainfrom
lramos15/bored-chickadee

Conversation

@lramos15
Copy link
Copy Markdown
Member

@lramos15 lramos15 commented Mar 27, 2026

FYI @hediet, as discussed. You may nee to update some dashboards that use this event

Copilot AI review requested due to automatic review settings March 27, 2026 18:10
@lramos15 lramos15 enabled auto-merge (squash) March 27, 2026 18:10
@lramos15 lramos15 self-assigned this Mar 27, 2026
@vs-code-engineering vs-code-engineering bot added this to the Backlog milestone Mar 27, 2026
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 adjusts AI edit telemetry so that modelId is no longer emitted as a TelemetryTrustedValue, aligning the event payload with untrusted telemetry cleaning expectations.

Changes:

  • Remove TelemetryTrustedValue usage for modelId in editTelemetry.codeSuggested and editTelemetry.codeAccepted.
  • Sanitize modelId before logging (currently replacing / with _).
Comments suppressed due to low confidence (1)

src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.ts:169

  • Same as above: data.modelId?.replace('/', '_') only replaces the first /, so model ids with multiple path separators may still be redacted during telemetry cleaning. Use a global replacement (and consider matching avoidPathRedaction behavior from src/vs/editor/common/textModelEditSource.ts).
			modeId: data.modeId,
			modelId: data.modelId?.replace('/', '_'),
			applyCodeBlockSuggestionId: data.applyCodeBlockSuggestionId as unknown as string,

lramos15 and others added 3 commits March 27, 2026 14:28
…tTelemetry/aiEditTelemetryServiceImpl.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@lramos15 lramos15 merged commit 2056bef into main Mar 27, 2026
18 checks passed
@lramos15 lramos15 deleted the lramos15/bored-chickadee branch March 27, 2026 19:34
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