Agents: fix lint in tool-call sanitizers

This commit is contained in:
Justin
2026-02-03 05:39:22 +08:00
committed by Shakker
parent 31face5740
commit 67f90dae54
2 changed files with 3 additions and 4 deletions

View File

@@ -103,7 +103,7 @@ export function installSessionToolResultGuard(
if (sanitized.length === 0) {
return undefined;
}
nextMessage = sanitized[0] as AgentMessage;
nextMessage = sanitized[0];
}
const nextRole = (nextMessage as { role?: unknown }).role;