Repository navigation
feat(platform-apple): record on watchOS simulators - #4819
Conversation
The watch admission set refused every recording operation, so `record` was closed on an Apple Watch simulator. Simulator recording is host-side: the Apple runtime starts `simctl recordVideo` for any `kind: 'simulator'` device and never touches the runner's recorder, which stays a watchOS stub. Admit screenRecordingStart, screenRecordingReattach, and screenRecordingCleanup for the watch, name the finalizer's export target after the simulator's Apple OS instead of hard-coding iOS, and update the watch docs and record help.
Size Report
Startup median (7 runs, lower is better):
|
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
This PR is ready at 9204ec4: the code looks right, all checks pass at that head, and there are no conflicts. The live watchOS simulator run in the PR body (simctl recordVideo backend, h264 416x496, 26.2s) is the evidence for recording. Not verified here: that run was not repeated, Not blocking, take or leave both:
|
…nts-main * origin/main: feat(platform-apple): admit screen recording on watchOS simulators (#4819) feat(audit): run Apple's native accessibility checks on iOS (#4776) fix(test-app): make the reorder handle a labelled native hold-then-drag (#4811) # Conflicts: # packages/command-surface/src/recording/index.ts
Summary
recordwas closed on an Apple Watch simulator: the watchOS admission set lists every operation with a watch meaning, and no recording operation was in it. Apple simulator recording is host-side —recording/runtime.tsstartssimctl recordVideoforkind: 'simulator'and never uses the runner's recorder, which stays a watchOS stub — so admitting the three recording operations is the whole fix. The finalizer's export target now comes from the simulator's Apple OS instead of a hard-codediOS recording.7 files. No Swift runner change, no new backend, no option refusals: every
recordoption works on a watch.Validation
Head
9204ec49ca. Local:vitest --project unit-coreforpackages/platform-apple,packages/command-surface/src/recording,test/repo-guards;check:mcp-metadata;check:command-docs;format;tsc --noEmit. CI owns the full gate.Device evidence at
9204ec49ca, own simulatorAD Watch Recording Verify(Apple Watch Series 11 46mm, watchOS 27.0), branch CLI afterpnpm build,pnpm build:xcuitest:watchos,pnpm clean:daemon, isolated--state-dir. Session and simulator deleted after the run. All exits 0:open com.apple.NanoSettings --platform ios --udid <watch> --session adwatch→Openedrecord start /tmp/ad-watch-recording.mp4 --session adwatch→recordingBackend: simctl recordVideosnapshot -i,scroll down,press 'label="General"' --settle,press 160 200→ Settings tree,Scrolled down, settle diff,Tapped (160, 200)record stop --session adwatch→recorder: confirmed,nativePathDisposition: retired, telemetry sidecarffprobe /tmp/ad-watch-recording.mp4→ 1.2 MB,h264 416x496,duration=26.2Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.