The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 05:45 UTC
fix(provider-acp): Kiro's html_render pages show in the thread (#28253)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Nov 2, 2026 at 18:30 UTC
8c9945d44d4bd27fe6d6768e64aeec6d95a11bb7
2 files changed
+16
-2
packages/provider-acp/src/server/runtimeModel.test.ts
+14
@@ -1366,6 +1366,20 @@ describe("extractMcpToolCallIdentity", () => {
1366
}
1367
});
1368
1369
+ it("recovers T3 identity from Kiro's @-scoped titles", () => {
1370
+ for (const tool of ["html_render", "t3_thread_read", "delegate_task"]) {
1371
+ const toolCall = toolCallFromUpdate({
1372
+ sessionUpdate: "tool_call",
1373
+ toolCallId: "kiro-1",
1374
+ kind: "other",
1375
+ title: `@t3-code/${tool}`,
1376
+ status: "pending",
1377
+ rawInput: { tool_id: `t3-code::${tool}`, arguments: { threadId: "thread-1" } },
1378
+ });
1379
+ expect(extractMcpToolCallIdentity(toolCall), tool).toEqual({ server: "t3-code", tool });
1380
+ }
1381
+ });
1382
+
1383
it("does not claim an agent's own tool that shares a T3 tool name", () => {
1384
const toolCall = toolCallFromUpdate({
1385
sessionUpdate: "tool_call",
packages/provider-acp/src/server/runtimeModel.ts
+2
-2
@@ -1067,9 +1067,9 @@ function acpMcpFallbackInput(value: string | undefined): Record<string, unknown>
1067
return undefined;
1068
}
1069
1070
-// Known T3 inventory gates matches, so server-name separators can stay loose.
1070
+// Known T3 inventory gates matches, so server-name separators can stay loose. Kiro titles "@t3-code/<tool>".
1071
const T3_MCP_TITLE_CALL =
1072
- /^(?:mcp[-_]{1,2})?t3[-_ ]?code[-_.:/ ]{1,3}(?<tool>[A-Za-z0-9][A-Za-z0-9_.-]*)(?::.*)?$/i;
1072
+ /^(?:@|mcp[-_]{1,2})?t3[-_ ]?code[-_.:/ ]{1,3}(?<tool>[A-Za-z0-9][A-Za-z0-9_.-]*)(?::.*)?$/i;
1073
1074
const T3_MCP_TITLE_SUFFIX_CALL =
1075
/^(?<tool>[A-Za-z0-9][A-Za-z0-9_.-]*?)(?: \(t3[-_ ]?code MCP Server\)(?::|$)|[-_.]t3[-_ ]?code$)/i;