Skip to content

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

Open
floklein wants to merge 2 commits into
pingdotgg:mainfrom
floklein:fix/simlock-agent-device
Open

floklein wants to merge 2 commits 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 →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The managed agent-device runtime is pinned to 0.21.36. The shim flag list, help snapshot, and startup tests are updated. 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, apps/server/src/device/LocalDeviceHost.test.ts
The workflow and server configuration use agent-device 0.21.36. The shim removes six value-taking flags from its list. Startup tests derive the alternate daemon version from AGENT_DEVICE_VERSION.
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, configuration text, and help 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

Suggested reviewers: juliusmarminge, willcraig

Merge Risk: Minimal · up to 5aa25 · 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 existing Simlock 0.8.0 pools work aga…
Description check Passed The description follows the repository template. It has Problem, Change, Scope, and Verification sections, and each is filled in. The Problem section gives the error and root cause. Change names the p…
Linked Issues check Passed [#41057] Requirement: T3 Code must lease and open devices from existing Simlock 0.8.0 pools after the update. The cause is the agent-device 0.21.41 bump. That version uses RPC protocol 3. Simlock 0.8.…
Out of Scope Changes check Passed All listed changes connect to the 0.21.41 to 0.21.36 downgrade for managed runtime use. The workflow pin, deviceToolVersions.json, and the scripts/package.json runtime pin change the managed version. …
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 existing Simlock 0.8.0 pools work again, which the title describes without listing files.

Full details: Description check

Explanation

The description follows the repository template. It has Problem, Change, Scope, and Verification sections, and each is filled in. The Problem section gives the error and root cause. Change names the pinned version and the reason for the separate 0.21.41 audit dependency. Scope links #41057 and states the rollback boundary. Verification gives a Windows live run with before and after evidence, a check:changed run, and the model and harness. The leading HTML comment is template guidance, not a missing section.

Full details: Linked Issues check

Explanation

[#41057] Requirement: T3 Code must lease and open devices from existing Simlock 0.8.0 pools after the update. The cause is the agent-device 0.21.41 bump. That version uses RPC protocol 3. 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 a live run on Windows. The base revision showed the protocol error. The PR revision leased Pixel 9 and streamed its home screen. A mock protocol-2 gateway also refused 0.21.41 and completed a device-list RPC under 0.21.36. The issue workaround uses the same pin. The latest incremental change alters LocalDeviceHost.test.ts. It derives the 'different version' daemon record from AGENT_DEVICE_VERSION with a '-test' suffix. This is a test fixture change. It keeps the handoff, busy-daemon, and failed-replacement tests in place. It does not change the pin. Limits: no new automated regression test for the protocol mismatch is evident in the summary. pnpm-lock.yaml is in ignored_files and was not inspected. The manifest pins satisfy the coding requirement, so this verdict does not depend on the lockfile.

Full details: Out of Scope Changes check

Explanation

All listed changes connect to the 0.21.41 to 0.21.36 downgrade for managed runtime use. The workflow pin, deviceToolVersions.json, and the scripts/package.json runtime pin change the managed 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. The LocalDeviceHost.test.ts change adjusts a test fixture so it stays distinct from the pinned version. This supports the pin and is 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 local mobile:audit 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 documented side effect of the downgrade. No unrelated change was found in the summary. The lockfile was excluded and was not reviewed. It is not treated as evidence of scope.

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 a041591 and 5aa2548.

Files selected for processing: 1

  • apps/server/src/device/LocalDeviceHost.test.ts

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 2 times, most recently 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

@floklein
floklein force-pushed the fix/simlock-agent-device branch from 0481758 to a041591 Compare November 24, 2026 23:06
@github-actions

Copy link
Copy Markdown
Contributor

This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

See the conflict window.

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 25, 2026

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

needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. 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