Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(cua): attach the managed Cua Driver to every provider session #16528

Draftjuliusmarmingewants to merge 1 commit intot3code/cua/1-host fromrefs/pull/16528/headopened View on GitHub

juliusmarmingecommented

With the driver running (previous layer), every provider now gets it as a stdio MCP server named cua-driver:

ProviderHow
ClaudeSDK mcpServers; the query reopens when the set changes
Codexthread mcp_servers, unless the user's merged Codex config already defines cua-driver (read once per directory with config/read); theirs wins
CursorSDK mcpServers
Grok, Antigravity, Devin, ACP registryACP mcpServers, in both stdio and MCP-over-ACP lists
OpenCode 1.xmcp.add; the prompt mentions it only if the add succeeded
OpenCode 2per-thread, per-directory registration with permission rules, like its t3-code server
PiPi has no MCP client, so T3's Pi extension bridges the stdio server and passes screenshots through as images

Sessions with the driver get a short <computer_use> block: keep input in the background, escalate to foreground only when a background action did not land, and leave the desktop as found.

#15006 skipped Codex, OpenCode 2, and Pi. #10899 only attached Codex. This covers all of them.

#15006 also ran a per-thread proxy so T3 could end Cua's session at every turn end. This stack drops it: Stop still ends the provider's turn, and Cua's own idle timeout hides the agent cursor.

Verification

  • Focused tests: Claude and Codex attachment, user-config precedence in Codex, the <computer_use> block, and the existing Claude, Codex, Cursor, ACP, Grok, OpenCode, OpenCode 2, Pi, and session-manager suites (687 tests).
  • Checked by hand: Pi's stdio bridge against the real 0.34 driver lists 58 tools, calls list_apps, and reconnects after the driver exits.

Built with Claude Opus 5.5 in T3 Code, through the Claude Code harness.

🤖 Generated with Claude Code

    1. Pushedda6fa5d

    2. Pushed6fbb6b9

Sign in to join this conversation.