Repository navigation
fix(core): preserve caller-owned device adapter lists - #11236
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Low impact] This PR appears safe to merge; no actionable issues were found. SummaryDeck now copies caller-owned adapter lists before adding its bundled WebGL adapter.
No actionable issues found. Tests were not run. Reviews (1) · Last reviewed commit: "Preserve caller-owned adapter lists duri..." · Reviewed by Greptile |
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed fd9d07f after merge; no follow-ups. No P1s.
The frozen adapter list makes the old in-place push throw, so the test pins the fix. It ran in both CI browser jobs.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
Deck appended its bundled WebGL adapter directly to the array supplied in deviceProps. Copy the adapter list before appending and exercise the explicit WebGL path with a frozen list containing the WebGPU adapter. Related to #11231.
Note
Low Risk
Low risk bug fix that prevents mutating caller-owned input arrays during device creation.
Overview
Shallow-copies
props.deviceProps.adapterswhen initializing device properties instead of mutating the caller-provided array in place. This prevents unintended side effects on caller-owned arrays and prevents errors when passing frozen adapter lists.Updates the WebGL device creation test to pass a frozen adapter array containing
webgpuAdapter.Reviewed by Cursor Bugbot for commit fd9d07f. Bugbot is set up for automated code reviews on this repo. Configure here.