chore: Fix TypeScript errors 1/n.

This commit is contained in:
cpojer
2026-01-31 16:38:03 +09:00
parent 2957d4306d
commit e5eb9610dc
5 changed files with 19 additions and 11 deletions

View File

@@ -869,7 +869,7 @@ export async function runEmbeddedAttempt(
const lastAssistant = messagesSnapshot
.slice()
.toReversed()
.find((m) => (m as AgentMessage)?.role === "assistant") as AssistantMessage | undefined;
.find((m) => m?.role === "assistant") as AssistantMessage | undefined;
const toolMetasNormalized = toolMetas
.filter(