fix(ai/providers): fixed orphaned tool result handling in message conversion

- Track skipped tool call IDs to prevent dangling tool results when assistant messages are omitted.
- Fixed indentation in Python tool output renderer.
This commit is contained in:
can1357
2026-01-23 12:48:06 +00:00
parent 0fe761dc4b
commit 0cab1fbce9
5 changed files with 56 additions and 19 deletions
+1 -1
View File
@@ -900,7 +900,7 @@ export const pythonToolRenderer = {
spinnerFrame: options.spinnerFrame,
duration: cell.durationMs,
output: outputLines.length > 0 ? outputLines.join("\n") : undefined,
outputMaxLines: outputLines.length,
outputMaxLines: outputLines.length,
codeMaxLines: expanded ? Number.POSITIVE_INFINITY : PYTHON_DEFAULT_PREVIEW_LINES,
expanded,
width,