Skip to content

apps/ios: opt-in real-Mac UI test and simulator e2e evidence — pair, sample image and drawing reach the Captures inbox, provider none (#355) - #364

Merged
GoKubar merged 7 commits into
mainfrom
agent/daniel-parent/ipad-e2e
Sep 14, 2026
Merged

GoKubar merged 7 commits into
mainfrom
agent/daniel-parent/ipad-e2e

Conversation

@d-q222

@d-q222 d-q222 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Lane GH-IPAD-E2E (#355), assigned by the Commander; owner ruling "Simulator, no paid call". Implemented by a Cursor worker (Grok 4.6 high), reviewed by daniel-parent. Draft.

Result

On Xcode 26.6 / iOS 26.5, iPad Pro 11-inch (M5) simulator, against the real FlashTeX Mac app, not FakeMac:

  • The simulator paired by typed host/port plus bootstrap URL.
  • The bundled sample-capture.png and a synthetic three-stroke drawing both arrived in the Mac's Captures inbox (capture_count=2, acks durable:false, has_proposal:false, applied:false).
  • No provider call: FLASHTEX_CONVERSION_PROVIDER=none and FLASHTEX_KEYCHAIN_OFF=1, with every provider key unset and FLASHTEX_NEARBY_SERVE_LAN unset. An isolated pairs.json was used under /tmp, so the user's pairings were never touched.
  • Gated test: Executed 1 test, with 0 failures … 36.472 seconds. Without the gate env var: 1 test skipped, 0 failures, so CI is unaffected.

Contents

  • apps/ios/FlashTeXPadUITests/CaptureFlowRealMacUITests.swift: an opt-in test gated on TEST_RUNNER_FLASHTEX_PAD_E2E_MAC / _BOOTSTRAP, plus the project/scheme wiring and a Paste accessibility identifier.
  • docs/evidence/ipad-e2e-2026-09-14T083659Z/: README with commands, env names, timings and limits, plus app-only screenshots. daniel-parent reviewed every image before publishing: there's no pairing code, key, QR or personal content. The frame showing the bootstrap URL was left out. The screenshots do show this Mac's Bonjour name and the throwaway pairing fingerprints.

⚠ Contains the #359 crash fix, which will move to its own PR

Commit 75bb0968 also carries the FlashTeXPad crash fix (lock-protected CaptureQueue.records, hosted-XCTest isolation of PadModel). A separate PR with a concurrent-poller regression test is in progress on agent/daniel-parent/pad-capturequeue-race. When it opens, this branch will be rebased to drop those hunks, so review the crash fix there, not here.

Not exercised in a simulator

Camera and QR scan, Pencil pressure, real Wi-Fi/Bonjour between devices, and the paid conversion.

Observations for the Mac owner (report only, not changed)

  • Listener binding: the Mac Nearby listener bound *:49886 (all interfaces) with FLASHTEX_NEARBY_SERVE_LAN unset. The README's loopback-only rule is written for the serve harness, and app advertising for a real iPad presumably has to be on the LAN. Please confirm that's intended; if so, the README could say explicitly that the app's own listener is LAN-bound.
  • FLASHTEX_LOG isn't used by Nearby.
  • Pasting the bootstrap URL: the product's Paste button needs the "Allow Paste" prompt, whose timing can outlast the 120 s pairing code in automation. The test types the URL instead.

🤖 Generated with Claude Code

https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz

d-q222 and others added 4 commits September 14, 2026 01:26
Xcode 26.6 / iOS 26.5 full `xcodebuild test` crashed once in
FluidCaptureTests.testSendNowDraftsSendsAndRemembersTheInstruction
(EXC_BAD_ACCESS in PadModel.captures.setter vs CaptureStore.save). Isolated
3/3 and a control unit rerun were 25/25; the race is CaptureQueue.records
mutated off-main after await while a retain-cycled pollOutcome copied the
array into @published. Lock the list, keep poller self weak, and skip the
TEST_HOST PadModel's Keychain/disk/auto-reconnect. Add CaptureFlowRealMacUITests
(skipped unless FLASHTEX_PAD_E2E_MAC=1) that types host/port and pastes the
bootstrap URL.

Ran: unit 25/25 PASS twice after the fix; UI 5 passed + 1 skipped, 0 failures
(iPad Pro 11-inch M5, 947A8CC1-07E2-4AA2-9363-FA389B569E8D).

Next: launch FlashTeXMac with provider none / keychain off, write pairing
info JSON, run the gated UI test, collect evidence.

Implementation-Agent: cursor-agent cursor-grok-4.6
Commit-Executor: cursor-agent (this session, git commit)
Lane-Owner: daniel-parent (mac-m5pro-dq222)
Co-authored-by: Cursor <[email protected]>
The XCUITest runner is in the simulator, so host env and /tmp JSON paths
do not reach it; inject host/port/bootstrap with TEST_RUNNER_FLASHTEX_PAD_E2E_*.
pair.port lives below the fold in the Mac-link Form and is not in the
accessibility tree until scrolled — first gated run failed there
(Executed 1 test, with 1 failure, 10.962s) after pair.qr.text was found.

Ran: that gated test-without-building against FlashTeXMac pid 52883 /
port 49884 (pairing then expired). Next: relaunch Mac with a fresh 120s
code, rebuild-for-testing, rerun CaptureFlowRealMacUITests.

Implementation-Agent: cursor-agent cursor-grok-4.6
Commit-Executor: cursor-agent (this session, git commit)
Lane-Owner: daniel-parent (mac-m5pro-dq222)
Co-authored-by: Cursor <[email protected]>
Second gated run filled host/port and the bootstrap URL but Pair from
payload ran at t=76s, ~1s after the Mac code expired (08:33:34Z). Cause:
tapping Paste blocked 60s on the system Allow Paste banner
(app event loop idle notification not received). Type the bootstrap
into pair.qr.text, fill port first, and wait for Connected to on Capture.

Ran: Executed 1 test, with 1 failure (0 unexpected) in 98.210s;
pairs.json still empty. Next: rebuild, relaunch Mac, rerun.

Implementation-Agent: cursor-agent cursor-grok-4.6
Commit-Executor: cursor-agent (this session, git commit)
Lane-Owner: daniel-parent (mac-m5pro-dq222)
Co-authored-by: Cursor <[email protected]>
Gated CaptureFlowRealMacUITests passed against FlashTeXMac: sample +
synthetic drawing both landed in Captures with durable=false /
has_proposal=false. Evidence README + app-only screenshots; omit the
Mac-link frame that showed the pairing URL.

Ran: Executed 1 test, with 0 failures in 36.472s (TEST EXECUTE SUCCEEDED);
skip without env: 1 skipped, 0 failures. Mac pairs.json capture_count=2.

Next: none for this lane's acceptance path unless Commander asks for a PR.

Implementation-Agent: cursor-agent cursor-grok-4.6
Commit-Executor: cursor-agent (this session, git commit)
Lane-Owner: daniel-parent (mac-m5pro-dq222)
Co-authored-by: Cursor <[email protected]>
@d-q222

d-q222 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

daniel-parent: the crash fix now has its own PR, #372, with a regression test and a clean Thread Sanitizer run. Review the fix there. Once #372 merges, I'll rebase this branch so it keeps only the opt-in UI test and the evidence.

… main

Restored CaptureQueue.swift, PadModel.swift and FlashTeXPadApp.swift to
origin/main (#372's reviewed version). What remains is the opt-in real-Mac UI
test, its project/scheme wiring, the Paste accessibility identifier and the
evidence pack.

Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
@GoKubar
GoKubar marked this pull request as ready for review September 14, 2026 16:28
@GoKubar
GoKubar merged commit f1c38f0 into main Sep 14, 2026
20 checks passed
@GoKubar
GoKubar deleted the agent/daniel-parent/ipad-e2e branch September 14, 2026 16:28
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.

2 participants