Registry Mirror
Skip to content

Conversation

@gabrielelpidio

@gabrielelpidio gabrielelpidio commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

On Windows, agents that copied the quick start device_open returns got Error (INVALID_ARGS): Missing target from press @e3. PowerShell reads a bare @e3 as a splat, so agent-device received no target. Five opt-in feedback reports from one Windows Codex install (30 Nov to 2 Dec) describe it; the agents worked around it by quoting the ref.

The press and fill examples now double-quote the ref: press "@e3" --settle, fill "@e5" "text" --settle.

Why always, and why double quotes. The quick start builder does not know the agent's shell, and the server's platform would not tell it: a Windows host can run PowerShell, cmd or Git Bash. "@e3" reaches the program as @e3 in PowerShell, cmd, bash, zsh and fish. Single quotes would reach it literally in cmd.

Proof.

  • The quoting assertions in handlers.test.ts fail on the old text and pass now.
  • bash, zsh and fish each pass "@e3" through as @e3 (run here). PowerShell itself was not run on this machine; that part rests on its quoting rules and the field workaround.
  • evals/mcp-tool-use device cases on GPT-6.1 Sol (Terra shell), 2-3 samples per case: 36/37 before, 36/36 after. In the agents' own commands, bare refs went from 236 to 0; every ref was quoted after the change.
  • vp run check:changed passes.

Context size. The quick start grows by 4 bytes. It is a tool result, so agentContextBudget.json does not measure it and is unchanged.

Not covered: no eval case was added, because the simulated shell does not model PowerShell. Sonnet and Opus were not run.

Reviewed with sol-loop: 1 rounds with gpt-6.2-sol. Sol verdict: approved

Created with Claude Fable 5.2 in T3 Code (Claude Code harness).

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

All 64 scenario measurements match main.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded 10.5 KiB 10.5 KiB 0 B (0.0%) 12.7 KiB ✅
Codex short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB 0 B (0.0%) 302.7 KiB ✅
Codex long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Codex long turn running, history page HTTP decoded 92.5 KiB 92.5 KiB 0 B (0.0%) 107.4 KiB ✅
Codex long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Codex long turn finished, cold open HTTP decoded 381.5 KiB 381.5 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, socket cold open WebSocket decoded 381.6 KiB 381.6 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, work page HTTP decoded 78.3 KiB 78.3 KiB 0 B (0.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 75 75 0 (0.0%) 150 ✅
Codex idle thread resume WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell snapshot HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Codex fleet shell subscribe WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Codex fleet shell resume check rows 0 0 0 0 ✅
Codex stale shell reload HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex stale shell reload rows 27 27 0 (0.0%) 27 ✅
Codex stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Codex stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB 0 B (0.0%) 83.0 KiB ✅
Codex stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Codex stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅
Claude short turn resume WebSocket decoded 10.6 KiB 10.6 KiB 0 B (0.0%) 12.7 KiB ✅
Claude short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB 0 B (0.0%) 302.7 KiB ✅
Claude long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Claude long turn running, history page HTTP decoded 93.4 KiB 93.4 KiB 0 B (0.0%) 107.4 KiB ✅
Claude long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Claude long turn finished, cold open HTTP decoded 384.2 KiB 384.2 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, socket cold open WebSocket decoded 384.3 KiB 384.3 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, work page HTTP decoded 79.2 KiB 79.2 KiB 0 B (0.0%) 200.2 KiB ✅
Claude long turn finished, work page rows 75 75 0 (0.0%) 150 ✅
Claude idle thread resume WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell snapshot HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Claude fleet shell subscribe WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Claude fleet shell resume check rows 0 0 0 0 ✅
Claude stale shell reload HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude stale shell reload rows 27 27 0 (0.0%) 27 ✅
Claude stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Claude stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB 0 B (0.0%) 83.0 KiB ✅
Claude stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Claude stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅

Baseline: ddb9d3e · PR result: 413f50b · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

gabrielelpidio and others added 2 commits December 2, 2026 15:05
…ey work in PowerShell

PowerShell reads a bare @e3 as a splat and passes no argument, so the
quick start's press and fill examples failed there with Missing target.
The examples now double-quote the ref, which every shell we see passes
through unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ck start test

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@gabrielelpidio
gabrielelpidio force-pushed the t3/device-quickstart-powershell-refs branch from 9132ac4 to cb55ae4 Compare December 2, 2026 19:05
macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Dec 2, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 413f50b

Macroscope's review found this PR approvable — The device quick-start examples now quote element references so they work in PowerShell. This is an instructional-text change with no change to device execution or product defaults.

Notes:

  • All code in this push has already been reviewed. Approvability was decided on eligibility alone.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The device quick-start examples now quote accessibility references in press and fill commands. The test checks that the launcher examples include both commands with --settle.

Changes: Device quick-start examples

Layer / File(s) Summary
Quote references in examples and test
apps/server/src/mcp/toolkits/device/handlers.ts, apps/server/src/mcp/toolkits/device/handlers.test.ts
The examples quote accessibility references in press and fill commands. The test checks that both commands include --settle.

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

Change: Bug fix

Merge Risk: Minimal · up to 413f5

This change updates the device quick-start examples to quote element references so that shells such as PowerShell pass them through correctly. No actionable merge risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix and its scope: device quick start examples now work in PowerShell. It matches the changeset, which double-quotes the @e3 and @e5 references in the press and fill examples. It f…
Description check Passed The description follows the template sections. Problem gives the Windows PowerShell splat symptom and the reproduction source. Change explains the double-quote fix and why it applies to all shells. Ve…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the fix and its scope: device quick start examples now work in PowerShell. It matches the changeset, which double-quotes the @e3 and @e5 references in the press and fill examples. It follows the conventional commit form and is specific enough for a reader scanning history.

Full details: Description check

Explanation

The description follows the template sections. Problem gives the Windows PowerShell splat symptom and the reproduction source. Change explains the double-quote fix and why it applies to all shells. Verification lists the focused test results, the bash, zsh and fish checks, eval numbers, and what was not run. Scope is only partly covered: it links no issue and does not say why no issue is needed, and the template asks for that for small fixes. The description also contains a 'Reviewed with sol-loop' line and a model attribution line, which the template asks for.

Resolution

Consider adding a Scope note. Link the issue or the Windows feedback reports that show the bug, or explain why no issue is needed for this small fix.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • 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 cb55ae4 and 413f50b.

Files selected for processing: 1

  • apps/server/src/mcp/toolkits/device/handlers.test.ts

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

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Dec 2, 2026
@macroscopeapp
macroscopeapp Bot dismissed their stale review December 2, 2026 21:09

Dismissing prior approval to re-evaluate 413f50b

@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

Real T3 dev servers on Linux x86_64, PowerShell 7.5.4 (-NoProfile), pooled Pixel 9 / Android 36, light theme, 1080×2424 device captures, fresh isolated databases. Real device_list → device_open calls supplied each launcher and quick-start text.

  1. Open Settings, snapshot, then execute the emitted press @e3 --settle example in PowerShell.
  2. Align both devices at Settings search and snapshot its editable field. Execute the emitted fill example using the current editable ref @e2 in place of illustrative @e5, retaining the emitted quoting.
  3. Base loses both refs and exits 1. Head opens search and fills text, both exit 0.
Before After
ddb9d3ec86 413f50bc1f
Before: captured PowerShell press and fill argument errors After: captured successful PowerShell press and fill output
Before: Settings search remains empty After: Settings search contains text and displays results
Before device recording · Full command transcript After device recording · Full command transcript
Generated quick start Generated quick start

Command-output images are rendered excerpts of actual captured stdout/stderr; launcher and local paths are redacted. Device images and recordings are real captures. Final stills matched a second screenshot taken 500 ms later.

Reproduction driver · Response extraction script · Setup and reproduction notes

Native Windows PowerShell 5.1 and a Windows-hosted T3 server were not exercised; this proof runs the actual device actions in Linux PowerShell 7.5.4.

Not shown:

  • Native Windows PowerShell 5.1, the triage runtime's exact PowerShell 7.7.0 version, and a Windows-hosted T3 server were not exercised; this run used PowerShell 7.5.4 on Linux with real device actions.
  • The fill example's illustrative @E5 was replaced with the snapshot's actual editable @e2 field on both commits; emitted quoting and text were preserved.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Dec 2, 2026
@juliusmarminge
juliusmarminge merged commit 1b51007 into main Dec 2, 2026
59 checks passed
@juliusmarminge
juliusmarminge deleted the t3/device-quickstart-powershell-refs branch December 2, 2026 21:39
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants