fix(web): read tool result from correct field in history loading

The SDK persists tool results as ToolResultPart with a "result" JSON field,
but extractAllToolResults was only reading "output", causing exec tool
stdout/stderr/exit_code to be lost when loading chat history.
This commit is contained in:
Acbox
2026-03-29 19:58:52 +08:00
parent 0b7ecd87f6
commit 180a9287dd
@@ -46,7 +46,7 @@ export function extractAllToolResults(
const part = p as Record<string, unknown>
return {
toolCallId: String(part.toolCallId ?? ''),
output: part.output ?? null,
output: part.output ?? part.result ?? null,
}
})
}