Skip to content

feat: add recording quality flag#409

Open
thymikee wants to merge 1 commit intomainfrom
codex/record-quality-flag
Open

feat: add recording quality flag#409
thymikee wants to merge 1 commit intomainfrom
codex/record-quality-flag

Conversation

@thymikee
Copy link
Copy Markdown
Contributor

Summary

Add explicit record start --quality <5-10> support without changing recording defaults.

This wires the flag through CLI/client/session replay and platform recording paths, scales Android screenrecord size for explicit quality values, passes quality to the Apple runner, and adds an iOS simulator resize helper for post-processing. Docs and the agent-device skill guidance now mention the optional quality flag.

Validation

  • pnpm format
  • pnpm exec vitest run src/utils/__tests__/args.test.ts src/daemon/handlers/__tests__/record-trace.test.ts src/daemon/handlers/__tests__/session-replay-script.test.ts src/daemon/__tests__/session-store.test.ts src/platforms/ios/__tests__/runner-client.test.ts src/platforms/ios/__tests__/recording-scripts.test.ts
  • pnpm check:quick
  • pnpm build:xcuitest
  • pnpm test:smoke
  • git diff --check

Known validation note: pnpm check:unit still exits -1 inside vitest run after fixture stdout and without assertion failure details; the targeted affected Vitest suites and smoke tests pass.

@github-actions
Copy link
Copy Markdown

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-409/

Built to branch gh-pages at 2026-04-13 19:42 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9debf39576

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

Comment on lines +72 to +74
let scaledTransform = sourceVideoTrack.preferredTransform.concatenating(
CGAffineTransform(scaleX: scale, y: scale)
)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Scale translation when resizing transformed recordings

When a source track has a non-identity preferredTransform (common for landscape/rotated iOS simulator videos), composing sourceVideoTrack.preferredTransform.concatenating(CGAffineTransform(scaleX:y:)) scales the picture but leaves the transform’s translation terms in the original coordinate space, so frames are shifted outside the smaller renderSize and the resized output is cropped/partially blank. This only appears for transformed inputs, but it breaks the new --quality path in those recordings; apply scaling in the correct transform order (or scale tx/ty explicitly) so translation matches the resized canvas.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant