mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 09:31:25 +00:00
Agents: flush pending tool results on drop
This commit is contained in:
@@ -101,6 +101,9 @@ export function installSessionToolResultGuard(
|
||||
if (role === "assistant") {
|
||||
const sanitized = sanitizeToolCallInputs([message]);
|
||||
if (sanitized.length === 0) {
|
||||
if (allowSyntheticToolResults && pending.size > 0) {
|
||||
flushPendingToolResults();
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
nextMessage = sanitized[0];
|
||||
|
||||
Reference in New Issue
Block a user