GeezerVison is showing github.com — fix(server): honor the browser recording frame rate for agents by aravhawk · Pull Request #19717 · pingdotgg/t3code
Conversation
aravhawk
commented
Oct 15, 2026
•
edited by juliusmarminge
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
Agent browser recordings ignored the desktop’s existing Browser recording frame rate preference: selecting 60 still created a 30 fps encoder.
Change
The desktop now reports its hydrated preference through the existing browser-profile command; each new server recording uses it for capture-stream FPS and bitrate.
The optional field preserves older clients. Web clients omit it so their default 30 cannot overwrite a desktop’s 60. The latest explicit desktop report applies to the environment until server restart; active recordings retain their rate, repeated start stays idempotent, and the next recording uses the latest report. The default remains 30. Manual recording and viewer streams retain their existing paths.
Rebuilt on current main while preserving @aravhawk’s contribution and commits in #19717. Nine added cases became three behavior cases in three existing suites; removed the deprecated renderer fixture and redundant schema table.
Scope and approval
Fixes the behavior reported in #19442. This is a maintainer-requested takeover in batch terminal-preview-18, authorized for implementation and publication. The focused-fix exemption applies to honoring the existing 30/60 fps setting for the established agent recording capability; it adds no new recording feature or setting. Its effects are limited to capture rate and bitrate for new recordings in that environment. Human review of the cross-component preference propagation remains requested below; publishing does not grant merge approval.
Verification
Validation at head 509bf9aef4:
- Before: fixed-base server records at 30 / 2.5 Mbps after a 60 report. Four additional negative controls catch desktop omission, missing hydration, unconditional web reporting, and omitted reports resetting the rate; all production bytes restored afterward.
- 49/49 focused tests pass (22 server, 4 real Chromium client, 23 contracts). Scoped server/web/contracts typechecks and changed-file lint/format pass. All 46 existing cases retained.
- One independent full-diff review round with Claude Opus 5.5 and Codex GPT-6-Sol: no code findings.
- Headless service proof and limits: actual broker → server browser → native canvas/MediaRecorder → saved MP4. Requested 30 reports stream 30 / 2.5 Mbps; requested 60 reports stream 60 / 4.32 Mbps. Both artifacts decode in Chromium at 1600×900. The same synthetic animation produced about 29.26 and 48.25 encoded samples per media second respectively; this honors the maximum preference, not a sustained 60 fps guarantee. Preference was reported directly to the service; actual desktop hydration and web omission are covered separately by browser fixtures.
30 fps setting clip:
https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/103131575e3f55de/19717-requested-30.mp4
60 fps setting clip:
https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/629729a22e0f5a91/19717-requested-60.mp4
CI is green on the published head, including all eight server shards, web tests, release smoke, build/typecheck, lint, and the aggregate Check. Refreshed CodeRabbit feedback covers this head and contains no actionable findings. No Electron IPC/full native desktop, macOS, Windows, iOS, Android, remote/tunnel, simultaneous real desktop/web clients, or actual WebSocket disconnect was verified here. The 50 Mbps ceiling was not exercised. Human check: set desktop rate 60, start/stop an agent recording of an animated page without a viewer, inspect the result; repeat at 30, after renderer reload, and after a default web client connects. Change to 30 during an active 60 recording: it must remain 60, repeated start must reuse it, and the next recording must use 30. Repeat on native desktop and a remote environment.
Macroscope’s request for human review of sending a client preference into the production recording pipeline remains open. These agent reviews and implementation work do not grant that approval. No merge performed.
Implementation: Codex GPT-6.1-Sol; tests: Codex GPT-6-Astra; reviews: Claude Opus 5.5 and Codex GPT-6-Sol through T3 Code delegated agents. Maintainer proof/integration: Codex GPT-6.1-Sol through the Codex harness in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Not approved
Macroscope's review found this PR not approvable — This is a focused fix with backward-compatible contracts and strong regression coverage, but it propagates a client preference into the server’s production recording pipeline and changes capture rate and bitrate for existing agent recordings. That cross-component runtime behavior warrants human review.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 15, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Note
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
Use the following commands to manage reviews:
@coderabbitai resume to resume automatic reviews.
@coderabbitai review to trigger a single review.
Use the checkboxes below for quick actions:
- ▶️ Resume reviews
- 🔍 Trigger review
No actionable comments were generated in the recent review.
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
f08ae7cf-e9a5-494f-a808-45011b4d9c2e
📥 Commits
-
Reviewing files that changed from the base of the PR and between dbb4406 and 509bf9a.
📒 Files selected for processing: 7
-
apps/server/src/preview/ServerBrowser.ts
apps/server/src/preview/ServerBrowserPage.test.ts
apps/server/src/preview/ServerBrowserPage.ts
apps/web/src/browser/ElectronBrowserHost.browser.test.tsx
apps/web/src/browser/HostedBrowserWebview.browser.test.tsx
packages/contracts/src/preview.ts
packages/contracts/src/settings.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Walkthrough
-
Electron clients can report a configured recording frame rate. The server retains the latest supplied rate and uses it to configure new recording streams and their bitrate. The contract supports 30 and 60 fps, with 30 fps as the default.
Changes: Browser recording frame rate
| Layer / File(s) |
Summary |
Define and report the recording rate packages/contracts/src/preview.ts, packages/contracts/src/settings.ts, apps/web/src/browser/BrowserProfileReporter.tsx, apps/web/src/browser/ElectronBrowserHost.browser.test.tsx, apps/web/src/browser/HostedBrowserWebview.browser.test.tsx |
The preview contract accepts optional recording rates of 30 or 60 fps and defines 30 fps as the default. Electron reports its configured rate, while hosted web reports omit it. Tests cover settings hydration, rate updates, and web reporting. |
Apply the rate to new recordings apps/server/src/preview/ServerBrowser.ts, apps/server/src/preview/ServerBrowserPage.ts, apps/server/src/preview/ServerBrowserPage.test.ts |
The server retains explicitly reported rates and passes the retained value to the encoder. The encoder uses it for capture rate and bitrate. Integration tests check rate updates, recording starts, and output artifacts. |
Priority: Low
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Sequence Diagram(s)
sequenceDiagram
participant BrowserProfileReporter
participant ServerBrowser
participant recordingEncoderScript
participant MediaRecorder
BrowserProfileReporter->>ServerBrowser: reportProfiles with recordingFrameRate
ServerBrowser->>recordingEncoderScript: create script with retained frame rate
recordingEncoderScript->>MediaRecorder: start capture at selected rate and bitrate
Loading
Suggested reviewers: juliusmarminge
Merge Risk: Minimal · up to 509bf
-
No identified defect blocks merging this change after normal checks.
Security architecture risk: Low · up to 509bf
-
The change gives authorized clients bounded control over the resource usage of new recordings. Existing access checks, input validation, recording size limits and cleanup remain in place. No material security defect was identified, but production resource usage and simultaneous-client behavior have not been verified.
Retained concerns
No architecture-level concerns identified.
Security review details
-
Security Blast Radius
- inferred — An authorized reporter can influence subsequent recordings throughout the same server-browser service, including after that client disconnects. The report alone does not start recordings, and later reports do not alter initialized encoders. Electron-only reporting is client behavior, not server-side proof of desktop identity.
Trust Boundaries and Controls
- observed — The existing WebSocket authenticates the connection, and profile reporting requires AuthPreviewOperateScope. The authorization layer rejects requests lacking a required scope. Client command routing selects an environment and performs permission checks before dispatch.
Resilience and Maintainability Implications
- observed — Selecting 60 can increase encoding work and calculated bitrate, but the existing 50 Mbps bitrate ceiling and attachment-size containment remain. Oversize handling clears buffered chunks and stops recording tracks; the server also checks size before transferring the completed video.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly and concisely identifies the server fix that makes agent browser recordings honor the configured recording frame rate. |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
| Description check |
 |
The pull request description includes all required sections: Problem, Change, Scope and approval, and Verification. It explains the expected behavior, linked issue and approval context, implementation… |
Full details: Description check
-
Explanation
The pull request description includes all required sections: Problem, Change, Scope and approval, and Verification. It explains the expected behavior, linked issue and approval context, implementation scope, focused test results, evidence, limitations, requested human checks, and the agents and harness used.
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
⚠️ Failed 2026-10-24T07:05:43.146552Z We couldn’t complete this review. Comment @codex review to try again. |
ba5f0d3 |
New commits |
ℹ️ 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Taking over this one for batch terminal-preview-18. I’m checking the existing recording preference against current main, trimming the tests, and verifying the server encoder before updating this branch.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
# Conflicts:
# apps/server/src/preview/ServerBrowserPage.test.ts
# apps/web/src/browser/HostedBrowserWebview.browser.test.tsx
# Conflicts:
# apps/server/src/preview/ServerBrowserPage.test.ts
# Conflicts:
# apps/server/src/preview/ServerBrowserPage.test.ts
|
Closing as redundant: maintainer PR #23895 already merged the same frame-rate fix on Oct 24, and this PR has merge conflicts with main.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Labels
size:S
10-29 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|