Skip to content

Strip UTF8 BOM from device id - #315679

Merged
Logan Ramos (lramos15) merged 3 commits into
mainfrom
lramos15/minimum-panda
May 11, 2026
Merged

Strip UTF8 BOM from device id#315679
Logan Ramos (lramos15) merged 3 commits into
mainfrom
lramos15/minimum-panda

Conversation

@lramos15

Copy link
Copy Markdown
Member

Fix #315612

Copilot AI review requested due to automatic review settings May 11, 2026 14:03
@lramos15
Logan Ramos (lramos15) enabled auto-merge (squash) May 11, 2026 14:03

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 addresses a Copilot model-fetch failure caused by a UTF-8 BOM (U+FEFF) appearing at the start of telemetry.devDeviceId, which breaks header construction (ByteString conversion) in fetch.

Changes:

  • Sanitize the device ID returned by @vscode/deviceid by stripping a leading UTF-8 BOM before returning it.
Show a summary per file
File Description
src/vs/base/node/id.ts Strips a leading UTF-8 BOM from the device ID returned by @vscode/deviceid to prevent invalid header values.

Copilot's findings

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

Comment thread src/vs/base/node/id.ts
@lramos15
Logan Ramos (lramos15) merged commit 15c518a into main May 11, 2026
39 of 40 checks passed
@lramos15
Logan Ramos (lramos15) deleted the lramos15/minimum-panda branch May 11, 2026 15:11
@vs-code-engineering vs-code-engineering Bot added this to the 1.121.0 milestone May 11, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jun 25, 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.

Copilot model fetch fails when telemetry.devDeviceId starts with UTF-8 BOM

3 participants