fix(subagents): include tool role in subagent completion output

This commit is contained in:
Peter Steinberger
2026-02-18 02:57:25 +01:00
parent 985ec71c55
commit 0dd97feb41
3 changed files with 40 additions and 5 deletions

View File

@@ -127,7 +127,7 @@ export function stripToolMessages(messages: unknown[]): unknown[] {
return true;
}
const role = (msg as { role?: unknown }).role;
return role !== "toolResult";
return role !== "toolResult" && role !== "tool";
});
}