Skip to content

fix(devices): restore Simlock 0.8.0 compatibility - #41064

Open
floklein wants to merge 1 commit into
pingdotgg:mainfrom
floklein:fix/simlock-agent-device
Open

floklein wants to merge 1 commit into
pingdotgg:mainfrom
floklein:fix/simlock-agent-device

Conversation

@floklein

@floklein floklein commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Problem

After #40095 bumped T3 Code’s managed agent-device to 0.21.41, starting a device from an existing Simlock 0.8.0 pool fails with Remote daemon RPC protocol is incompatible. The new client requires protocol 3, while Simlock 0.8.0 serves protocol 2.

Change

Pin the managed runtime and mobile pool scripts to agent-device 0.21.36, and use the matching launcher flags, help fixture, and showcase pin. The local mobile:audit command uses a separate 0.21.41 dependency for native audit support. expo-device-hub stays at 0.26.1.

Scope

Fixes #41057. The rollback covers T3’s device tooling. Managed sessions use the CLI features available in 0.21.36.

Verification

On Windows, I ran both revisions in isolated T3 dev environments with the same live Simlock 0.8.0 pool. In the web client, I opened the Device panel and selected Start Pixel 9 in each run.

Before · f17114b2c2 · 0.21.41 After · 04817587e4 · 0.21.36
The panel reported Remote daemon RPC protocol is incompatible. The pool leased the Pixel 9 and the panel streamed its Android home screen. I returned the device through the panel after capture.
Base Device panel reports the RPC protocol mismatch for Pixel 9 Rebased PR shows the live Pixel 9 Android home screen

vp run check:changed upstream/main passed on the rebased head, including typecheck and the affected tests. The live run covered the web Device panel with a pooled Android emulator.

GPT-6.2 Sol via Codex in T3 Code.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 22, 2026
@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change pins the managed agent-device runtime to 0.21.36 and updates its shim flags and help snapshot. The mobile audit script uses a separate agent-device@0.21.41 alias.

Changes: agent-device versioning

Layer / File(s) Summary
Managed runtime version and flags
.github/workflows/mobile-showcase-screenshots.yml, apps/server/src/device/deviceToolVersions.json, apps/server/src/device/AgentDeviceShim.ts
The workflow and server configuration use agent-device 0.21.36. The shim removes six value-taking flags from its list.
CLI help reference
evals/mcp-tool-use/agent-device-help.txt
The help snapshot documents version 0.21.36 and updates its command catalog, guides, and help text for several commands.
Mobile audit CLI alias
scripts/package.json, scripts/mobile-audit.ts, knip.jsonc
The scripts workspace adds an agent-device@0.21.41 alias. The mobile audit script uses that package by default, and Knip ignores the alias dependency.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Bug fix · Severity of issue fixed: Medium

Possibly related issues

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to 04817 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(devices): restore Simlock 0.8.0 compatibility" follows conventional commit format and names the main change. The PR pins agent-device to 0.21.36 so managed sessions work with Simlock 0.…
Linked Issues check Passed [#41057] Requirement: T3 Code must lease and open devices from existing Simlock 0.8.0 pools. The cause in the issue is the agent-device 0.21.41 bump, which uses RPC protocol 3, while Simlock 0.8.0 ser…
Out of Scope Changes check Passed All listed changes connect to the 0.21.41 to 0.21.36 downgrade. The workflow pin, deviceToolVersions.json, and the scripts/package.json runtime pin change the managed runtime version. AgentDeviceShim.…
Description check Passed The description covers the problem (the protocol 2 vs. protocol 3 mismatch after the bump to agent-device 0.21.41), the change (the pin to 0.21.36 in the managed runtime and mobile pool scripts, with …
Full details: Title check

Explanation

The title "fix(devices): restore Simlock 0.8.0 compatibility" follows conventional commit format and names the main change. The PR pins agent-device to 0.21.36 so managed sessions work with Simlock 0.8.0 pools that serve RPC protocol 2. The title is specific and matches the objectives and linked issue #41057.

Full details: Linked Issues check

Explanation

[#41057] Requirement: T3 Code must lease and open devices from existing Simlock 0.8.0 pools. The cause in the issue is the agent-device 0.21.41 bump, which uses RPC protocol 3, while Simlock 0.8.0 serves protocol 2. The PR pins agent-device to 0.21.36 in apps/server/src/device/deviceToolVersions.json, scripts/package.json, and .github/workflows/mobile-showcase-screenshots.yml. It also updates AgentDeviceShim.ts VALUE_FLAGS to match the 0.21.36 CLI. The PR reports that a mock protocol-2 gateway refused 0.21.41 with the incompatibility error before any device RPC. Under 0.21.36 the same gateway completed a device-list RPC. #40240 documents successful Pixel 9 leasing with the same pin. The issue's own workaround uses the same pin. Limits: no live Simlock 0.8.0 run is included in this PR, and the verification relies on a mock gateway and on #40240. No new automated regression test is evident in the summary. pnpm-lock.yaml is in ignored_files and was not inspected. The manifest pins are the coding change the issue requires, so this verdict does not depend on the lockfile. The previous PASS remains supported because the changes since the previous review do not alter these pins.

Full details: Out of Scope Changes check

Explanation

All listed changes connect to the 0.21.41 to 0.21.36 downgrade. The workflow pin, deviceToolVersions.json, and the scripts/package.json runtime pin change the managed runtime version. AgentDeviceShim.ts VALUE_FLAGS and the help fixture evals/mcp-tool-use/agent-device-help.txt (0.21.36, 75 commands) match the pinned CLI, so they support the downgrade and are not unrelated. The scripts/package.json agent-device-audit alias (0.21.41), the mobile-audit.ts default executable path, and the knip.jsonc ignore entry keep the local mobile:audit command on its separate 0.21.41 dependency. The PR states this intent. expo-device-hub stays at 0.26.1 as the PR states. The removed CLI flags and commands are a known side effect of the downgrade, and the PR documents them. No unrelated change was found in the summary. The lockfile was excluded and was not reviewed; it is not treated as evidence of scope.

Full details: Description check

Explanation

The description covers the problem (the protocol 2 vs. protocol 3 mismatch after the bump to agent-device 0.21.41), the change (the pin to 0.21.36 in the managed runtime and mobile pool scripts, with the separate 0.21.41 dependency for mobile:audit), the scope (fixes #41057, with a rollback limited to T3 device tooling), and verification (a live Windows run with before/after screenshots and a check:changed run). All required template sections are present and substantively filled. The description does not use the template's conventional commit title, which is a minor gap. It also names the model and harness used, as the template requests.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1f3905b and 0481758.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 1

  • knip.jsonc

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@juliusmarminge

Copy link
Copy Markdown
Member

The automated pipeline stopped on this pull request and will not merge it:

the capture step could not show the problem on the base commit, so there is nothing to prove fixed.

Configured device support and the supplied Simlock pool through settings RPC, opened the seeded thread, opened the Device panel, and selected Start Pixel 9. Base reached the device viewport but its capture still showed Connecting video. Head displayed Remote daemon RPC protocol is incompatible. A subsequent comparison requiring the video overlay to clear was interrupted by a runtime stall and produced no completed proof.

It stays open for a person to finish or close.

@juliusmarminge juliusmarminge added takeover:blocked Takeover blocked; reason in the PR body and removed takeover:in-progress A takeover lead is working on this PR labels Nov 22, 2026
@floklein

Copy link
Copy Markdown
Contributor Author

I reran the protocol check after rebasing. Against the same mock protocol-2 gateway, 0.21.41 returns Remote daemon RPC protocol is incompatible before sending a device RPC, and the PR’s pinned 0.21.36 completes the device-list RPC. #40240 also records successful Pixel 9 leasing with 0.21.36. The live capture is still inconclusive. The build’s installed agent-device version and the gateway’s RPC version would help explain why the capture saw a protocol mismatch on the PR build.

@floklein
floklein force-pushed the fix/simlock-agent-device branch from be34e5b to 1f3905b Compare November 22, 2026 23:03
@floklein
floklein force-pushed the fix/simlock-agent-device branch from 1f3905b to 0481758 Compare November 23, 2026 11:18
@floklein

Copy link
Copy Markdown
Contributor Author

I reran the live capture on the same Simlock 0.8.0 pool with a Pixel 9. On main at f17114b2c2 (agent-device 0.21.41), the Device panel reported Remote daemon RPC protocol is incompatible. On the rebased PR at 04817587e4 (0.21.36), T3 leased the Pixel 9 and streamed its Android home screen. I returned the device after capture.

The PR description now includes both screenshots. Before · After

This branch has not been deployed

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

Labels

size:M 30-99 changed lines (additions + deletions). takeover:blocked Takeover blocked; reason in the PR body vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Simlock 0.8.0 pool devices fail to open after the agent-device 0.21.41 bump

2 participants