ACP: hide tool_call tags by default

This commit is contained in:
Onur
2026-03-01 14:41:45 +01:00
committed by Onur Solmaz
parent 5232f96d59
commit acd6ddb829
3 changed files with 17 additions and 3 deletions

View File

@@ -40,6 +40,7 @@ describe("createAcpReplyProjector", () => {
deliveryMode: "final_only",
tagVisibility: {
available_commands_update: true,
tool_call: true,
},
},
},
@@ -99,6 +100,7 @@ describe("createAcpReplyProjector", () => {
deliveryMode: "final_only",
tagVisibility: {
available_commands_update: true,
tool_call: true,
},
},
},
@@ -231,6 +233,10 @@ describe("createAcpReplyProjector", () => {
enabled: true,
stream: {
deliveryMode: "live",
tagVisibility: {
tool_call: true,
tool_call_update: true,
},
},
},
}),
@@ -289,6 +295,10 @@ describe("createAcpReplyProjector", () => {
enabled: true,
stream: {
deliveryMode: "live",
tagVisibility: {
tool_call: true,
tool_call_update: true,
},
},
},
}),
@@ -324,6 +334,8 @@ describe("createAcpReplyProjector", () => {
repeatSuppression: false,
tagVisibility: {
available_commands_update: true,
tool_call: true,
tool_call_update: true,
},
},
},
@@ -528,6 +540,7 @@ describe("createAcpReplyProjector", () => {
maxChunkChars: 256,
deliveryMode: "live",
tagVisibility: {
tool_call: true,
tool_call_update: false,
},
},

View File

@@ -55,7 +55,8 @@ describe("acp stream settings", () => {
it("uses default tag visibility when no override is provided", () => {
const settings = resolveAcpProjectionSettings(createAcpTestConfig());
expect(isAcpTagVisible(settings, "tool_call")).toBe(true);
expect(isAcpTagVisible(settings, "tool_call")).toBe(false);
expect(isAcpTagVisible(settings, "tool_call_update")).toBe(false);
expect(isAcpTagVisible(settings, "usage_update")).toBe(false);
});

View File

@@ -13,8 +13,8 @@ const DEFAULT_ACP_MAX_META_EVENTS_PER_TURN = 64;
export const ACP_TAG_VISIBILITY_DEFAULTS: Record<AcpSessionUpdateTag, boolean> = {
agent_message_chunk: true,
tool_call: true,
tool_call_update: true,
tool_call: false,
tool_call_update: false,
usage_update: false,
available_commands_update: false,
current_mode_update: false,