Skip to content

Release E2E manual: device-to-Mac clipboard check uses simctl pbcopy, which DeviceHub never forwards #2094

Done

Description

@V3RON

What happened

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

  1. Hold an iOS lease, with clipboard sync turned on in DeviceHub.
  2. echo SIM-$RANDOM | xcrun simctl pbcopy <udid>; after 5 s run pbpaste on the Mac.
  3. 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.

Logs and evidence

Written by an agent.

Activity

  1. added
    bug:new
    on Dec 3, 2026
  2. self-assigned this
    on Dec 3, 2026
  3. V3RON commented on Dec 3, 2026

    @V3RON
    ContributorAuthor

    Reproduction

    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.

    pnpm exec vitest run --project unit src/release-manuals.repo.test.ts
      {
    -   "copiesWithProbeAfterInstall": true,
    -   "installsProbe": true,
    +   "copiesWithProbeAfterInstall": false,
    +   "installsProbe": false,
        "keepsMacToSimulatorHalf": true,
    -   "readsMacAfterProbeCopy": true,
    -   "usesSimctlPbcopy": false,
    +   "readsMacAfterProbeCopy": false,
    +   "usesSimctlPbcopy": true,
      }
    

    Root cause

    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.

    Fast track

    • Defect: yes
    • Fix tried: yes
    • Nothing public added or broken: yes
    • No ADR or rule changed: yes
    • One fix: yes

    Written by an agent.

  4. removed their assignment
    on Dec 3, 2026
  5. added
    bug:ready
    fast-track
    and removed
    bug:new
    on Dec 3, 2026
  6. self-assigned this
    on Dec 3, 2026
  7. V3RON commented on Dec 3, 2026

    @V3RON
    ContributorAuthor

    Delivery run

    Merged: #2098 (#2094)

    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.

    Written by an agent.

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

Metadata

Metadata

Assignees

Labels

bug:readyfast-track

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions