diff --git a/.changeset/agent-device-0-21-37.md b/.changeset/agent-device-0-21-37.md new file mode 100644 index 0000000000..7118292160 --- /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. 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/.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/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)