Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(shared): html_render cards show for Antigravity's acp-mcp-call terminal fallback #38898

Mergedjuliusmarmingemerged 2 commits intomain fromrefs/pull/38898/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 16 additions and 1 deletion.

x
0 of 2 viewed, 2 left
8 additions and 0 deletionspackages/shared/src/htmlRender.test.tsModified
View file
@@ -169,6 +169,14 @@
["html_render", result],
// OpenCode 2 Code Mode reports a script's nested html_render call as one `execute` item.
["execute", JSON.stringify(result)],
+ // Antigravity runs the `acp-mcp-call` terminal fallback and wraps its stdout.
+ [
+ "t3-code.html_render",
+ {
+ output: `Created At: 2026-11-19T02:54:02Z\nCompleted At: 2026-11-19T02:54:02Z\nCommand exited with code 0.\n\nCommand output:\n${JSON.stringify({ content: [], structuredContent: result, isError: false })}\r\n`,
+ exit_code: 0,
+ },
+ ],
] as const) {
expect(htmlRenderFromToolItem({ toolName, output })).toEqual(reference);
8 additions and 1 deletionpackages/shared/src/toolOutput.tsModified
View file
@@ -29,6 +29,8 @@
const MAX_ENVELOPE_DEPTH = 4;
const MAX_ENVELOPE_NODES = 128;
const encoder = new TextEncoder();
+// Antigravity's terminal tool prefixes an `acp-mcp-call` result's stdout with timestamps and exit status.
+const TERMINAL_OUTPUT_MARKER = "\nCommand output:\n";
​
interface ResultReadBudget {
remainingBytes: number;
@@ -105,7 +107,12 @@