From b6b117c35425e174abfba321ff886defe98cd28b Mon Sep 17 00:00:00 2001 From: gronxb Date: Fri, 13 Nov 2026 15:07:54 +0900 Subject: [PATCH 1/3] fix(mobile): update agent-device to 0.21.37 --- .changeset/agent-device-0-21-37.md | 8 ++++++ packages/e2b/package.json | 2 +- packages/limrun/package.json | 2 +- packages/mobile/package.json | 2 +- packages/mobile/tests/unit/engine.test.ts | 4 ++- packages/testmu/package.json | 2 +- pnpm-lock.yaml | 32 +++++++++++------------ 7 files changed, 31 insertions(+), 21 deletions(-) create mode 100644 .changeset/agent-device-0-21-37.md diff --git a/.changeset/agent-device-0-21-37.md b/.changeset/agent-device-0-21-37.md new file mode 100644 index 0000000000..b39293c9e2 --- /dev/null +++ b/.changeset/agent-device-0-21-37.md @@ -0,0 +1,8 @@ +--- +"@e2e-dev/mobile": patch +"@e2e-dev/e2b": patch +"@e2e-dev/limrun": patch +"@e2e-dev/testmu": patch +--- + +Update agent-device to 0.21.37. Without `device`, the iOS pool no longer picks a paired iPhone that is not connected: agent-device now lists a phone whose CoreDevice tunnel is unavailable as not booted. Naming such a phone in `device` fails in `prepare` with a `not_ready` hint, before any test runs, instead of at app launch. 0.21.37 also accepts `postGestureStabilization`, so the read after a test's own swipe or scroll no longer waits up to 3.5 s. diff --git a/packages/e2b/package.json b/packages/e2b/package.json index 4ae6b93e46..ef8830ad9c 100644 --- a/packages/e2b/package.json +++ b/packages/e2b/package.json @@ -85,6 +85,6 @@ "node": "^22.22.3 || >=24.8.0" }, "dependencies": { - "agent-device": "0.21.36" + "agent-device": "0.21.37" } } diff --git a/packages/limrun/package.json b/packages/limrun/package.json index cfd6bbc068..0b7a0a7a22 100644 --- a/packages/limrun/package.json +++ b/packages/limrun/package.json @@ -64,6 +64,6 @@ "node": "^22.22.3 || >=24.8.0" }, "dependencies": { - "agent-device": "0.21.36" + "agent-device": "0.21.37" } } diff --git a/packages/mobile/package.json b/packages/mobile/package.json index 232741f851..b0cc2a029e 100644 --- a/packages/mobile/package.json +++ b/packages/mobile/package.json @@ -64,7 +64,7 @@ }, "dependencies": { "@napi-rs/image": "1.16.0", - "agent-device": "0.21.36", + "agent-device": "0.21.37", "zod": "4.6.7" }, "peerDependencies": { diff --git a/packages/mobile/tests/unit/engine.test.ts b/packages/mobile/tests/unit/engine.test.ts index 20bdcd174d..df0251f5b7 100644 --- a/packages/mobile/tests/unit/engine.test.ts +++ b/packages/mobile/tests/unit/engine.test.ts @@ -338,6 +338,8 @@ describe('lifecycle', () => { { platform: 'ios', id: '2BBF3F07-AF66-4F95-82AB-BF442506FC89', name: 'iPhone 16e', booted: true }, { platform: 'ios', id: '8A2DC8D6-7B20-44FA-ADBB-47D3EAE6E8F3', name: 'iPhone 17', booted: true }, { platform: 'ios', id: 'CAB49ABB-4A25-48B3-99C9-949153F95902', name: 'iPhone 17 Pro Max', booted: false }, + // A paired phone whose CoreDevice tunnel is unavailable, as agent-device 0.21.37 lists it (#1528). + { platform: 'ios', id: '00008110-001A2B3C4D5E6F70', name: 'iPhone 15', kind: 'device', booted: false }, ]; const h = harness({ device: undefined }); h.fake.respond('devices.list', () => inventory); @@ -356,7 +358,7 @@ describe('lifecycle', () => { }); expect(result).toMatchObject({ workers: 2 }); expect(h.fake.lastArgs('devices.list')).toEqual({ platform: 'ios' }); - // Both booted iPhones, by UDID, under slot sessions; the Android device and the shut-down iPhone are not the pool's. + // Both booted iPhones, by UDID, under slot sessions; the Android device, the shut-down iPhone, and the unreachable phone are not the pool's. expect(h.fake.calls.filter((call) => call.method === 'devices.boot').map((call) => call.args)).toEqual([ { platform: 'ios', udid: '2BBF3F07-AF66-4F95-82AB-BF442506FC89' }, { platform: 'ios', udid: '8A2DC8D6-7B20-44FA-ADBB-47D3EAE6E8F3' }, diff --git a/packages/testmu/package.json b/packages/testmu/package.json index 4c787c9a5d..30ddbb3a1a 100644 --- a/packages/testmu/package.json +++ b/packages/testmu/package.json @@ -87,6 +87,6 @@ "node": "^22.22.3 || >=24.8.0" }, "dependencies": { - "@agent-device/testmu": "0.21.36" + "@agent-device/testmu": "0.21.37" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index edd066a59e..dec5c18433 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -448,8 +448,8 @@ importers: packages/e2b: dependencies: agent-device: - specifier: 0.21.36 - version: 0.21.36(ai@7.0.164(zod@4.6.7)) + specifier: 0.21.37 + version: 0.21.37(ai@7.0.164(zod@4.6.7)) devDependencies: '@e2e-dev/mobile': specifier: workspace:* @@ -684,8 +684,8 @@ importers: packages/limrun: dependencies: agent-device: - specifier: 0.21.36 - version: 0.21.36(ai@7.0.134(zod@4.6.7)) + specifier: 0.21.37 + version: 0.21.37(ai@7.0.134(zod@4.6.7)) devDependencies: '@e2e-dev/mobile': specifier: workspace:* @@ -712,8 +712,8 @@ importers: specifier: 1.16.0 version: 1.16.0 agent-device: - specifier: 0.21.36 - version: 0.21.36(ai@7.0.170(zod@4.6.7)) + specifier: 0.21.37 + version: 0.21.37(ai@7.0.170(zod@4.6.7)) zod: specifier: 4.6.7 version: 4.6.7 @@ -758,8 +758,8 @@ importers: packages/testmu: dependencies: '@agent-device/testmu': - specifier: 0.21.36 - version: 0.21.36 + specifier: 0.21.37 + version: 0.21.37 devDependencies: '@e2e-dev/mobile': specifier: workspace:* @@ -804,8 +804,8 @@ importers: packages: - '@agent-device/testmu@0.21.36': - resolution: {integrity: sha512-Pa0QJPpZw0A0M/Q228qbr2NHMXONo0n/w4FHqJ4gRL+d74FYtRbo2GJQ+2SmTLT1nPsJGM8dW/b4Z6LyDCtAhA==} + '@agent-device/testmu@0.21.37': + resolution: {integrity: sha512-kEtEC16tbtle/E7vB/MLZVcIPVwwYzi/VaoHTaMLPUKpvWUZ1IJzIFWZlLswrcxwDfKs/lvNdztVmi59ErpXOA==} '@agentclientprotocol/sdk@2.6.0': resolution: {integrity: sha512-3FtL6MkAV5F9qxg0FQV8wmBszIm2xuVPoDWOILIFSDQ+Vq3Twdh7Cw6Hk2GOPUbevgrTUpUAqZXQy7Geaj79mw==} @@ -3104,8 +3104,8 @@ packages: engines: {node: '>=18.18'} hasBin: true - agent-device@0.21.36: - resolution: {integrity: sha512-aG88WlEHjFc/OEBQC7AJg+2LfNoVT/ogxnnzIUYUEgafdiTvBaA+X6uQ2wNmpp2ZrHLy8QIXoEOyc3NEZgJCpQ==} + agent-device@0.21.37: + resolution: {integrity: sha512-IepPH4OtF3rrf51bxAACGCCaHX4Uj7xt5vlbG3sQyNAVzYnSJpOXpn3INQ1gZhZV/tiCIxI3Z+KAIGeiULKc1A==} engines: {node: '>=22.12'} hasBin: true peerDependencies: @@ -5519,7 +5519,7 @@ packages: snapshots: - '@agent-device/testmu@0.21.36': {} + '@agent-device/testmu@0.21.37': {} '@agentclientprotocol/sdk@2.6.0(@modelcontextprotocol/server@2.4.0)(zod@4.6.7)': dependencies: @@ -7713,15 +7713,15 @@ snapshots: agent-cli-detector@0.1.7: {} - agent-device@0.21.36(ai@7.0.134(zod@4.6.7)): + agent-device@0.21.37(ai@7.0.134(zod@4.6.7)): optionalDependencies: ai: 7.0.134(zod@4.6.7) - agent-device@0.21.36(ai@7.0.164(zod@4.6.7)): + agent-device@0.21.37(ai@7.0.164(zod@4.6.7)): optionalDependencies: ai: 7.0.164(zod@4.6.7) - agent-device@0.21.36(ai@7.0.170(zod@4.6.7)): + agent-device@0.21.37(ai@7.0.170(zod@4.6.7)): optionalDependencies: ai: 7.0.170(zod@4.6.7) From 7e003fa65d53ff736faec38c0bfee11e9d6f7947 Mon Sep 17 00:00:00 2001 From: gronxb Date: Fri, 13 Nov 2026 15:09:34 +0900 Subject: [PATCH 2/3] docs(mobile): describe iOS back as an edge swipe under agent-device 0.21.37 --- .changeset/agent-device-0-21-37.md | 2 +- .changeset/mobile-skip-post-gesture-stabilization.md | 2 +- docs/reference/mobile.mdx | 2 +- packages/mobile/src/device.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.changeset/agent-device-0-21-37.md b/.changeset/agent-device-0-21-37.md index b39293c9e2..6c2e82360b 100644 --- a/.changeset/agent-device-0-21-37.md +++ b/.changeset/agent-device-0-21-37.md @@ -5,4 +5,4 @@ "@e2e-dev/testmu": patch --- -Update agent-device to 0.21.37. Without `device`, the iOS pool no longer picks a paired iPhone that is not connected: agent-device now lists a phone whose CoreDevice tunnel is unavailable as not booted. Naming such a phone in `device` fails in `prepare` with a `not_ready` hint, before any test runs, instead of at app launch. 0.21.37 also accepts `postGestureStabilization`, so the read after a test's own swipe or scroll no longer waits up to 3.5 s. +Update agent-device to 0.21.37. Without `device`, the iOS pool no longer picks a paired iPhone that is not connected: agent-device now lists a phone whose CoreDevice tunnel is unavailable as not booted. A `device` that names such a phone fails in `prepare` with "iOS device is not ready for automation", before any test runs, instead of at app launch. A test's own swipe and scroll now skip agent-device's post-gesture wait, which 0.21.36 ignored. On iOS, `device.back()` swipes from the left edge and fails when the screen does not change; tap the close control on a modal. diff --git a/.changeset/mobile-skip-post-gesture-stabilization.md b/.changeset/mobile-skip-post-gesture-stabilization.md index cb53c30019..6a1e318b72 100644 --- a/.changeset/mobile-skip-post-gesture-stabilization.md +++ b/.changeset/mobile-skip-post-gesture-stabilization.md @@ -2,4 +2,4 @@ "@e2e-dev/mobile": patch --- -Send `postGestureStabilization: false` with a test's own swipe and scroll, so an agent-device release that accepts the option stops holding the next read for up to 3.5 s after a gesture the test then checks with `expect`. The first action on a control within 2 s of such a gesture re-reads the control until two reads agree on where it is, so a tap does not land on a list still coasting and get swallowed. The agent's gestures keep the wait. agent-device 0.21.36 ignores the option, so the speedup waits for a release that has it; until then the re-read adds one snapshot to the first action after a test's swipe or scroll. +Send `postGestureStabilization: false` with a test's own swipe and scroll, so an agent-device release that accepts the option stops holding the next read for up to 3.5 s after a gesture the test then checks with `expect`. The first action on a control within 2 s of such a gesture re-reads the control until two reads agree on where it is, so a tap does not land on a list still coasting and get swallowed. The agent's gestures keep the wait. diff --git a/docs/reference/mobile.mdx b/docs/reference/mobile.mdx index f4f2620ba8..93fa4faa21 100644 --- a/docs/reference/mobile.mdx +++ b/docs/reference/mobile.mdx @@ -871,7 +871,7 @@ await device.home(); #### `back` ```ts -/** Navigates back once (in-app back). */ +/** Navigates back once (in-app back). On iOS it swipes from the left edge and fails when the screen does not change, as at a stack's root or on a modal; tap the close control there. */ back(): Promise; ``` diff --git a/packages/mobile/src/device.ts b/packages/mobile/src/device.ts index 04355ab87d..580b3604b1 100644 --- a/packages/mobile/src/device.ts +++ b/packages/mobile/src/device.ts @@ -175,7 +175,7 @@ export interface Device { foregroundApp(): Promise; /** Sends the device to its home screen. */ home(): Promise; - /** Navigates back once (in-app back). */ + /** Navigates back once (in-app back). On iOS it swipes from the left edge and fails when the screen does not change, as at a stack's root or on a modal; tap the close control there. */ back(): Promise; /** Accepts or dismisses the visible system alert. */ alert(action: 'accept' | 'dismiss'): Promise; From 5c3d40b3ce50d51dd47d7e746b8c5c9bf2f8aa2d Mon Sep 17 00:00:00 2001 From: gronxb Date: Fri, 13 Nov 2026 15:42:36 +0900 Subject: [PATCH 3/3] docs(mobile): keep the back docs as they were --- .changeset/agent-device-0-21-37.md | 2 +- docs/reference/mobile.mdx | 2 +- packages/mobile/src/device.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.changeset/agent-device-0-21-37.md b/.changeset/agent-device-0-21-37.md index 6c2e82360b..7118292160 100644 --- a/.changeset/agent-device-0-21-37.md +++ b/.changeset/agent-device-0-21-37.md @@ -5,4 +5,4 @@ "@e2e-dev/testmu": patch --- -Update agent-device to 0.21.37. Without `device`, the iOS pool no longer picks a paired iPhone that is not connected: agent-device now lists a phone whose CoreDevice tunnel is unavailable as not booted. A `device` that names such a phone fails in `prepare` with "iOS device is not ready for automation", before any test runs, instead of at app launch. A test's own swipe and scroll now skip agent-device's post-gesture wait, which 0.21.36 ignored. On iOS, `device.back()` swipes from the left edge and fails when the screen does not change; tap the close control on a modal. +Update agent-device to 0.21.37. Without `device`, the iOS pool no longer picks a paired iPhone that is not connected: agent-device now lists a phone whose CoreDevice tunnel is unavailable as not booted. A `device` that names such a phone fails in `prepare` with "iOS device is not ready for automation", before any test runs, instead of at app launch. A test's own swipe and scroll now skip agent-device's post-gesture wait, which 0.21.36 ignored. diff --git a/docs/reference/mobile.mdx b/docs/reference/mobile.mdx index 93fa4faa21..f4f2620ba8 100644 --- a/docs/reference/mobile.mdx +++ b/docs/reference/mobile.mdx @@ -871,7 +871,7 @@ await device.home(); #### `back` ```ts -/** Navigates back once (in-app back). On iOS it swipes from the left edge and fails when the screen does not change, as at a stack's root or on a modal; tap the close control there. */ +/** Navigates back once (in-app back). */ back(): Promise; ``` diff --git a/packages/mobile/src/device.ts b/packages/mobile/src/device.ts index 580b3604b1..04355ab87d 100644 --- a/packages/mobile/src/device.ts +++ b/packages/mobile/src/device.ts @@ -175,7 +175,7 @@ export interface Device { foregroundApp(): Promise; /** Sends the device to its home screen. */ home(): Promise; - /** Navigates back once (in-app back). On iOS it swipes from the left edge and fails when the screen does not change, as at a stack's root or on a modal; tap the close control there. */ + /** Navigates back once (in-app back). */ back(): Promise; /** Accepts or dismisses the visible system alert. */ alert(action: 'accept' | 'dismiss'): Promise;