fix: default tool_use status to completed in transcript decompose

This commit is contained in:
DoSun 2026-05-19 21:33:15 +08:00
parent bd968b8266
commit c5a3142dfe

View File

@ -120,9 +120,11 @@ function contentToParts(
callID: (b.id as string) ?? '',
tool: normalizeToolName((b.name as string) ?? ''),
state: {
status: 'running',
status: 'completed',
input: (b.input as Record<string, unknown>) ?? {},
time: { start: Date.now() },
output: '',
title: (b.name as string) ?? '',
time: { start: Date.now(), end: Date.now() },
},
})
break