From 7055d9e7a8f8888f06e5122fd1ac1b2a1c819df2 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Mon, 4 Aug 2025 15:26:51 +0200 Subject: [PATCH] chore: small fix --- internal/llm/agent/mcp-tools.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/llm/agent/mcp-tools.go b/internal/llm/agent/mcp-tools.go index 7affe74bd393ac88b0422cc24dd8a91c4d169e73..429f0881f44ec63a3c7c1beaa0876bef8b76960a 100644 --- a/internal/llm/agent/mcp-tools.go +++ b/internal/llm/agent/mcp-tools.go @@ -299,8 +299,7 @@ func doGetMCPTools(ctx context.Context, permissions permission.Service, cfg *con mcpClients.Set(name, c) tools := getTools(ctx, name, permissions, c, cfg.WorkingDir()) - toolCount := len(tools) - updateMCPState(name, MCPStateConnected, nil, c, toolCount) + updateMCPState(name, MCPStateConnected, nil, c, len(tools)) result.Append(tools...) }(name, m) }