From 345ec744d08ea99c7ff7da906263da47f9f3546c Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Sun, 12 Apr 2026 20:05:52 +0200 Subject: [PATCH] remove dead code --- pkg/agent/loop.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/agent/loop.go b/pkg/agent/loop.go index c1eb572..b748beb 100644 --- a/pkg/agent/loop.go +++ b/pkg/agent/loop.go @@ -26,7 +26,6 @@ type loopConfig struct { } func run(ctx context.Context, cfg loopConfig, state state) error { - var totalToolCalls int var step int for { @@ -107,7 +106,6 @@ func run(ctx context.Context, cfg loopConfig, state state) error { default: return fmt.Errorf("step %d: %s", step, stopReason) } - totalToolCalls += len(toolCalls) // Execute tool calls, handling mid-execution interruption. msg := backend.Message{Role: "assistant", Content: content.String(), ToolCalls: toolCalls} @@ -212,7 +210,7 @@ func run(ctx context.Context, cfg loopConfig, state state) error { } break } - + step++ }