Repository navigation
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
Conversation
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]>
Contributor
Author
… 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
sample-capture.pngand a synthetic three-stroke drawing both arrived in the Mac's Captures inbox (capture_count=2, acksdurable:false, has_proposal:false, applied:false).FLASHTEX_CONVERSION_PROVIDER=noneandFLASHTEX_KEYCHAIN_OFF=1, with every provider key unset andFLASHTEX_NEARBY_SERVE_LANunset. An isolatedpairs.jsonwas used under/tmp, so the user's pairings were never touched.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 onTEST_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
75bb0968also carries the FlashTeXPad crash fix (lock-protectedCaptureQueue.records, hosted-XCTest isolation ofPadModel). A separate PR with a concurrent-poller regression test is in progress onagent/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)
*:49886(all interfaces) withFLASHTEX_NEARBY_SERVE_LANunset. 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_LOGisn't used by Nearby.🤖 Generated with Claude Code
https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz