mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
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:
@@ -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,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user