feat: surface system presence for the agent

This commit is contained in:
Peter Steinberger
2025-12-09 02:25:37 +01:00
parent 317f666d4c
commit 1969e78d54
10 changed files with 202 additions and 3 deletions

View File

@@ -625,9 +625,10 @@ export async function runCommandReply(
toolCallId?: string;
tool_call_id?: string;
};
const role = msg.role;
const role =
typeof msg.role === "string" ? msg.role.toLowerCase() : "";
const isToolResult =
role === "toolResult" || role === "tool_result";
role === "toolresult" || role === "tool_result";
if (!isToolResult || !Array.isArray(msg.content)) {
// not a tool result message we care about
} else {