Skip to content

fix(core): preserve caller-owned device adapter lists - #11236

Merged
ibgreen merged 1 commit into
masterfrom
codex/preserve-device-adapters
Nov 19, 2026
Merged

ibgreen merged 1 commit into
masterfrom
codex/preserve-device-adapters

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

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.adapters when 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T14:52:00.974753Z fd9d07f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge; no actionable issues were found.

Summary

Deck now copies caller-owned adapter lists before adding its bundled WebGL adapter.

  • Deck adds its WebGL adapter without changing the caller's adapter list.

No actionable issues found. Tests were not run.

Reviews (1) · Last reviewed commit: "Preserve caller-owned adapter lists duri..." · Reviewed by Greptile

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 82.649% (+0.001%) from 82.648% — codex/preserve-device-adapters into master

@ibgreen
ibgreen merged commit f3f0bbd into master Nov 19, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/preserve-device-adapters branch November 19, 2026 16:02

@chrisgervang chrisgervang 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.

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

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