Skip to content

fix(desktop): backport upstream preview capture fix - #263

Merged
filipgutica merged 5 commits into
mainfrom
fix/workbench-preview-capture
Nov 7, 2026
Merged

filipgutica merged 5 commits into
mainfrom
fix/workbench-preview-capture

Conversation

@filipgutica

@filipgutica filipgutica commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

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

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.

juliusmarminge and others added 4 commits November 7, 2026 11:43
…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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 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-07T19:09:21.879337Z dd240b7 Manual request
ℹ️ 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.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M labels Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Workbench demo

Open 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 dd240b76c03219614563d97c6028ec09ff3b1b28. Dockerfile, build configuration, bundle export, publisher, and protected launcher: main 85e4a20345138f2816bdc4b5726e268aca419ec4.

Expired? Return to this link and launch again. Use synthetic content with the free OpenCode model.

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: dd240b76c0

ℹ️ 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".

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".

@filipgutica
filipgutica merged commit 836e251 into main Nov 7, 2026
20 checks passed
@filipgutica
filipgutica deleted the fix/workbench-preview-capture branch November 8, 2026 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants