Repository navigation
fix(desktop): backport upstream preview capture fix - #263
Conversation
…esh capture surface These tests reproduce pingdotgg#32410: the desktop app launches Electron without Chromium's CDPScreenshotNewSurface feature, so Page.captureScreenshot on a webview that is moved offscreen can stall. They assert that pre-ready startup enables the feature on darwin, win32 and linux, and keeps any features already passed in --enable-features.
…capture path Preview snapshots call Page.captureScreenshot on a tab kept offscreen, and Chromium's legacy capture path can stop answering there. Playwright avoids this by enabling CDPScreenshotNewSurface when it launches Chromium, but T3 launches Electron itself and attaches over CDP. Pre-ready startup now enables CDPScreenshotNewSurface on every platform, merged into any existing --enable-features value, unless the user already enabled it or turned it off with --disable-features. Fixes pingdotgg#32410
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. |
Workbench demoOpen the private 20-minute demo. Sign in to Vercel, then choose Open demo. Reopening this link in the same browser resumes its running demo; Start new demo creates a fresh one. Application, runtime startup, fixtures, and native smoke: PR Expired? Return to this link and launch again. Use synthetic content with the free OpenCode model. |
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Problem
Workbench preview snapshots repeatedly time out, blocking the remaining Ticket screenshots. Upstream PR pingdotgg#32415 fixes the matching Electron capture path by enabling Chromium's fresh screenshot surface before startup.
Change
ab7883384e93103b127db38b744f50a0699cec56, preserving the fork's desktop identity and configuration.Scope and approval
The maintainer authorized integrating existing compatible upstream fixes on 2026-11-07. This imports upstream PR #32415 unchanged through head
ab7883384e93103b127db38b744f50a0699cec56; the upstream PR is still open. No new core fix is authored.Verification
On this Mac with Electron 44.10.1, the upstream synthetic probe stalled at snapshot 85 without the production startup fix. The same probe with the imported startup completed 100/100 snapshots, checking current pixels and accessibility text; maximum capture time was 71 ms. The test used an sRGB colour profile and the actual Darwin startup path.
The imported three-file patch has the same stable patch ID as upstream PR pingdotgg#32415. Workbench desktop identity and existing configuration remain intact.
Limits
The upstream PR is still open. This branch does not update or restart the installed app. The synthetic probe proves the capture path; the Ticket's final product screenshots remain incomplete.