Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
pingdotgg
/
t3code
Pull requests
pingdotgg
t3code
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
CI
Agents
Settings
fix(desktop): preview snapshots no longer stall on Chromium's legacy capture path
#32415
Send to my agent
Closed
juliusmarminge
wants to merge 5 commits into
main
from
fix/issue-32410
·
opened
3 weeks ago
View on GitHub
Conversation
13
Commits
5
Files changed
3
Impact
Showing
3 changed files
with
80 additions
and
1 deletion
.
x
0 of 3 viewed, 3 left
Files
Hide whitespace
Unified
Split
19 additions and 0 deletions
+19
-0
apps/desktop/src/app/DesktopEarlyElectronStartup.ts
Modified
Diff
Before/After
Viewed
apps/desktop/src/app/DesktopEarlyElectronStartup.ts
View file
Expand up
Show all 137 lines
@@ -138,6 +138,25 @@
138
138
:
`
${
input.
disableFeatures
}
,
${
WAYLAND_COLOR_MANAGER_FEATURE
}
`
;
139
139
}
140
140
141
+
// Playwright enables this when it launches Chromium; T3 launches Electron itself and attaches
142
+
// over CDP, so preview snapshots would otherwise use the legacy capture path that can stall.
143
+
const
CDP_SCREENSHOT_NEW_SURFACE_FEATURE
=
"CDPScreenshotNewSurface"
;
144
+
145
+
export
function
resolveEnableFeaturesSwitch
(input: {
146
+
readonly
enableFeatures:
string
|
null
;
147
+
readonly
disableFeatures:
string
|
null
;
148
+
}):
string
|
null
{
149
+
if
(
featureListNames
(input.
enableFeatures
).
includes
(
CDP_SCREENSHOT_NEW_SURFACE_FEATURE
)) {
150
+
return
null
;
151
+
}
152
+
if
(
featureListNames
(input.
disableFeatures
).
includes
(
CDP_SCREENSHOT_NEW_SURFACE_FEATURE
)) {
153
+
return
null
;
154
+
}
155
+
return
input.
enableFeatures
===
null
156
+
?
CDP_SCREENSHOT_NEW_SURFACE_FEATURE
157
+
:
`
${
input.
enableFeatures
}
,
${
CDP_SCREENSHOT_NEW_SURFACE_FEATURE
}
`
;
158
+
}
159
+
141
160
export
function
resolveEarlyLinuxElectronOptions
(
142
161
input:
EarlyLinuxElectronOptionsInput
,
143
162
):
EarlyLinuxElectronOptions
{
Expand down
Show all lines
53 additions and 1 deletion
+53
-1
apps/desktop/src/app/DesktopPreReadyPlatform.test.ts
Modified
Diff
Before/After
Viewed
apps/desktop/src/app/DesktopPreReadyPlatform.test.ts
View file
Expand up
Show all 119 lines
Home
Search
Explore
Menu