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(server): agent recordings keep up with the page instead of the encoder
#34873
Send to my agent
Closed
juliusmarminge
wants to merge 3 commits into
main
from
refs/pull/34873/head
·
opened
3 weeks ago
View on GitHub
Conversation
8
Commits
3
Files changed
3
Impact
Showing
3 changed files
with
63 additions
and
23 deletions
.
x
0 of 3 viewed, 3 left
Files
Hide whitespace
Unified
Split
32 additions and 6 deletions
+32
-6
apps/server/src/preview/ServerBrowser.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/preview/ServerBrowser.test.ts
View file
Expand up
Show all 352 lines
@@ -353,12 +353,10 @@
353
353
document: {
createElement
: (tag:
string
) => (tag ===
"video"
? video : canvas) },
354
354
Path2D
:
function
Path2D
() {},
355
355
MediaRecorder
:
FakeMediaRecorder
,
356
-
createImageBitmap:
async
(blob:
Blob
) => ({
357
-
width
:
1280
,
358
-
height
:
800
,
359
-
pixels
:
await
blob.
text
(),
360
-
close
() {},
361
-
}),
356
+
createImageBitmap:
async
(blob:
Blob
) => {
357
+
await
decodeGate?.
promise
;
358
+
return
{
width
:
1280
,
height
:
800
,
pixels
:
await
blob.
text
(),
close
() {} };
359
+
},
362
360
atob,
363
361
btoa,
364
362
Blob
,
Show all 13 lines
@@ -378,6 +376,7 @@
378
376
379
377
const
contexts:
ReturnType
<
typeof
makeContext>[] = [];
380
378
const
encoderStreams:
Array
<{ frameRate:
number
|
undefined
; bitsPerSecond:
number
}> = [];
379
+
let
decodeGate:
PromiseWithResolvers
<
void
> |
null
=
null
;
381
380
const
contextRequests:
Array
<{ profileId:
string
; isolated:
boolean
}> = [];
382
381
let
contextGate:
PromiseWithResolvers
<
void
> |
null
=
null
;
383
382
let
pageCopy =
""
;
Expand up
Expand down
Show all 177 lines
@@ -561,6 +560,7 @@
561
560
beforeEach
(() => {
562
561
contexts.
length
=
0
;
Home
Search
Explore
Menu