Skip to content

Commit 5b73eeb

Browse files
committed
fix: avoid claude live active tool spread
1 parent 980a643 commit 5b73eeb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/agents/cli-runner/claude-live-session.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,8 @@ function markClaudeLiveToolCompleted(turn: ClaudeLiveTurn, toolCallId: string):
630630
}
631631

632632
function completeActiveClaudeLiveTools(turn: ClaudeLiveTurn): void {
633-
for (const toolCallId of [...turn.activeTools.keys()]) {
633+
const activeToolCallIds = Array.from(turn.activeTools.keys());
634+
for (const toolCallId of activeToolCallIds) {
634635
markClaudeLiveToolCompleted(turn, toolCallId);
635636
}
636637
}

0 commit comments

Comments
 (0)