mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 18:58:26 +00:00
fix(subagents): include tool role in subagent completion output
This commit is contained in:
@@ -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";
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user