fix(driveragent): include full message history for tool results and use a continuation prompt when invoking provider.collectStreamResponse

This commit is contained in:
2026-01-20 03:38:07 +00:00
parent 121e216eea
commit 0da85a5dcd
3 changed files with 19 additions and 3 deletions

View File

@@ -1,5 +1,12 @@
# Changelog
## 2026-01-20 - 1.6.1 - fix(driveragent)
include full message history for tool results and use a continuation prompt when invoking provider.collectStreamResponse
- When toolName is provided, include the full messageHistory (do not slice off the last message) so tool result messages are preserved.
- Set userMessage to a continuation prompt ('Continue with the task. The tool result has been provided above.') when handling tool results to avoid repeating the tool output.
- Keeps existing maxHistoryMessages trimming and validates provider.collectStreamResponse is available before streaming.
## 2026-01-20 - 1.6.0 - feat(smartagent)
record native tool results in message history by adding optional toolName to continueWithNativeTools and passing tool identifier from DualAgent