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

Showing 18 changed files with 47 additions and 1 deletion (loading 15).

x
0 of 18 viewed, 18 left
16 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -688,6 +688,22 @@
browserToolsAvailable: true,
});
​
+ it("attaches the managed Cua Driver as a stdio server beside t3-code", () => {
+ const overrides = ClaudeAdapterV2.claudeMcpQueryOverrides({
+ mcpSession: {
+ ...mcpSessionFor(ThreadId.make("thread-claude-mcp-cua")),
+ cuaDriver: { command: "/resources/cua-driver", args: ["mcp"], environment: [] },
+ },
+ readOnlySandbox: false,
+ });
+ assert.deepEqual(overrides.mcpServers?.["cua-driver"], {
+ type: "stdio",
+ command: "/resources/cua-driver",
+ args: ["mcp"],
+ env: {},
+ });
+ });
+​
it("pre-approves only read-only t3-code tools in a read-only sandbox", () => {
const threadId = ThreadId.make("thread-claude-mcp-read-only");
const mcpSession = mcpSessionFor(threadId);
5 additions and 1 deletionapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.tsModified
View file
@@ -2331,7 +2331,10 @@
type: "preset" as const,
preset: "claude_code" as const,