mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 07:57:29 +00:00
ACP: hide tool_call tags by default
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user