fix: reset tool call state between turns

This commit is contained in:
Pascal 2026-01-10 19:13:38 +01:00 committed by Aleksander Grygier
parent 38244a1bfa
commit 179477b4ed
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ class AgenticStore {
// Run agentic loop
for (let turn = 0; turn < maxTurns; turn++) {
emittedToolCallStates.clear(); // Reset for new turn
this._currentTurn = turn + 1;
if (signal?.aborted) {