You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Release E2E manual: device-to-Mac clipboard check uses simctl pbcopy, which DeviceHub never forwards #2094
The release E2E manual tells the tester to fill the simulator's clipboard with simctl pbcopy for the device-to-Mac clipboard check (e2e/release/06-passthrough.md:18, step 4):
echo SIM-$RANDOM | $SL simctl pbcopy <udid>; after 5 s Mac `pbpaste`.
DeviceHub never forwards a simctl pbcopy write to the Mac, only a copy an app makes inside the simulator. So this check passes whether clipboard sync is on or off: it cannot catch a leak from the simulator to the Mac.
#2080 found the same gap in the automated test. PR #2091 (merged) fixed it there: e2e/helpers/clipboard.ts now installs e2e/fixtures/touch-probe/ios/TouchProbe.app and writes the device side by launching it with --copy <value> (xcrun simctl launch --terminate-running-process <udid> dev.simlock.touch-probe --copy <value>). The manual was not changed.
What you expected
Step 4 of 06-passthrough.md writes the device side the same way e2e/helpers/clipboard.ts does: install the touch probe and launch it with --copy, then check the Mac pbpaste. With clipboard sync on, the check fails; with it off, it passes.
How to reproduce
Hold an iOS lease, with clipboard sync turned on in DeviceHub.
echo SIM-$RANDOM | xcrun simctl pbcopy <udid>; after 5 s run pbpaste on the Mac.
The Mac does not show the SIM value, so the manual's step 4 passes even though sync is on.
Environment
main at b2dd634. iOS, macOS 26 / Xcode 27 with DeviceHub. Affects the release E2E manual only, not shipped code.
Seen on: tool output (#2080's run: Xcode 27.2, DeviceHub did not forward simctl pbcopy to the Mac after 8 s). I did not rerun it on hardware.
Confirmed. Branch bug/2094-repro, src/release-manuals.repo.test.ts, "step 4 writes the simulator's clipboard with the touch probe's --copy, then reads the Mac's, and never with simctl pbcopy". The test also checks that the Mac-to-simulator half stays.
Defect.e2e/release/06-passthrough.md:18 writes the simulator's side with echo SIM-$RANDOM | $SL simctl pbcopy <udid>. DeviceHub forwards only a copy that an app makes inside the simulator, so the Mac pbpaste never shows the SIM value, and Must see step 4 passes whether sync is on or off. PR #2091 fixed the same write in e2e/helpers/clipboard.ts but did not change this manual.
Simplest fix
Replace the device write in step 4 with the probe, as the helper does:
`$SL simctl install <udid> e2e/fixtures/touch-probe/ios/TouchProbe.app`;
`$SL simctl launch --terminate-running-process <udid> dev.simlock.touch-probe --copy SIM-$RANDOM`
(DeviceHub forwards an app's copy, never `pbcopy`); after 5 s Mac `pbpaste`.
applied to e2e/release/06-passthrough.md, then restored
pnpm exec vitest run --project unit src/release-manuals.repo.test.ts src/docs-manuals.repo.test.ts Tests 14 passed (14)
release-e2e skill "Stale briefs" grep: nothing printed
Alternatives rejected
Drop the simulator-to-Mac half: then no release check catches a leak from the simulator to the Mac.
Use xcrun simctl like the helper: the brief tests simlock's passthrough, so $SL is the right command.
Risk
The probe path is relative. On a worker, $SL simctl runs in the CLI's own process (src/cli/AGENTS.md), so the tester must run it from the repo root, as the release-e2e skill does.
Nobody has run the new step on hardware yet. The first release run proves it.
The first gate saw src/checkout-age.test.ts time out (20 s) on the Windows runner, in a job where edge-handover.test.ts timed out too. That test is unrelated to this diff, and it passed on the re-run. No flaky-test issue covers it yet.
Activity
V3RON commentedon Dec 3, 2026
Reproduction
Seen on: tool output (#2080's run: Xcode 27.2, DeviceHub did not forward
simctl pbcopyto the Mac after 8 s). I did not rerun it on hardware.Confirmed. Branch
bug/2094-repro,src/release-manuals.repo.test.ts, "step 4 writes the simulator's clipboard with the touch probe's --copy, then reads the Mac's, and never with simctl pbcopy". The test also checks that the Mac-to-simulator half stays.Root cause
Defect.
e2e/release/06-passthrough.md:18writes the simulator's side withecho SIM-$RANDOM | $SL simctl pbcopy <udid>. DeviceHub forwards only a copy that an app makes inside the simulator, so the Macpbpastenever shows the SIM value, and Must see step 4 passes whether sync is on or off. PR #2091 fixed the same write ine2e/helpers/clipboard.tsbut did not change this manual.Simplest fix
Replace the device write in step 4 with the probe, as the helper does:
Alternatives rejected
xcrun simctllike the helper: the brief tests simlock's passthrough, so$SLis the right command.Risk
$SL simctlruns in the CLI's own process (src/cli/AGENTS.md), so the tester must run it from the repo root, as the release-e2e skill does.Fast track
Written by an agent.
V3RON commentedon Dec 3, 2026
Delivery run
Merged: #2098 (#2094)
The first gate saw
src/checkout-age.test.tstime out (20 s) on the Windows runner, in a job whereedge-handover.test.tstimed out too. That test is unrelated to this diff, and it passed on the re-run. No flaky-test issue covers it yet.Written by an agent.