Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(provider-acp): Windows T3_ACP_MCP_CALL fallback calls show the T3 tool and render html_render pages #40326

OpenOrnnIsMyWaifu(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/40326/headopened View on GitHub

Showing 3 changed files with 112 additions and 0 deletions.

x
0 of 3 viewed, 3 left
40 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.tsModified
View file
@@ -719,6 +719,11 @@
title: "Telemetry",
height: 411,
+ const winFallback = {
+ html: "<p>Windows fallback</p>",
+ title: "Windows fallback",
+ height: 320,
+ };
const adapter = yield* makeAntigravityAdapterV2({
instanceId,
selfInvocation: yield* resolveSelfInvocation(),
@@ -850,6 +855,28 @@
toolCallId: "agy-1.5.8",
status: "completed",
});
+ // On Windows, Antigravity falls back to T3_ACP_MCP_CALL when html_render is absent.
+ yield* send({
+ sessionUpdate: "tool_call",
+ toolCallId: "win-fallback",
+ title: "Ran command",
+ kind: "execute",
+ status: "in_progress",
+ rawInput: {
+ CommandLine:
+ '$payload = @{ title = "Windows fallback"; height = 320; path = "C:\\temp\\win.html" } | ConvertTo-Json -Compress\n$payload | & $env:T3_ACP_MCP_CALL html_render -',
Thread on lines 865 to 867

P1 Badge Keep the Windows fallback regression at the parser layer

This PowerShell fallback is already covered by the new table in packages/provider-acp/src/server/runtimeModel.test.ts:1430-1432, while packages/shared/src/htmlRender.test.ts:164-181 already covers the same Command output: envelope. The added adapter sequence therefore repeats the parser regression at a higher layer. Remove the win-fallback fixture and assertions here and retain the focused parser coverage, following AGENTS.md's explicit “Test at one layer” rule.

AGENTS.md reference: AGENTS.md:L109-L109

Useful? React with 👍 / 👎.

+ },
+ });