The open source coding agent.
TypeScript
small fixes
Kujtim Hoxha170c7ad67abd
diff --git a/internal/llm/agent/mcp-tools.go b/internal/llm/agent/mcp-tools.goindex d54f04a9cd4..2375606416e 100644--- a/internal/llm/agent/mcp-tools.go+++ b/internal/llm/agent/mcp-tools.go@@ -58,7 +58,7 @@ func runTool(ctx context.Context, c MCPClient, toolName string, input string) (ttoolRequest := mcp.CallToolRequest{}toolRequest.Params.Name = toolNamevar args map[string]any- if err = json.Unmarshal([]byte(input), &input); err != nil {+ if err = json.Unmarshal([]byte(input), &args); err != nil {return tools.NewTextErrorResponse(fmt.Sprintf("error parsing parameters: %s", err)), nil}toolRequest.Params.Arguments = argsdiff --git a/internal/llm/provider/anthropic.go b/internal/llm/provider/anthropic.goindex e5c478a7f2b..bb120b6addc 100644--- a/internal/llm/provider/anthropic.go+++ b/internal/llm/provider/anthropic.go@@ -213,7 +213,7 @@ func (a *anthropicClient) send(ctx context.Context, messages []message.Message,return nil, retryErr}if retry {- logging.WarnPersist("Retrying due to rate limit... attempt %d of %d", logging.PersistTimeArg, time.Millisecond*time.Duration(after+100))+ logging.WarnPersist(fmt.Sprintf("Retrying due to rate limit... attempt %d of %d", attempts, maxRetries), logging.PersistTimeArg, time.Millisecond*time.Duration(after+100))select {case <-ctx.Done():return nil, ctx.Err()@@ -351,7 +351,7 @@ func (a *anthropicClient) stream(ctx context.Context, messages []message.Messagereturn}if retry {- logging.WarnPersist("Retrying due to rate limit... attempt %d of %d", logging.PersistTimeArg, time.Millisecond*time.Duration(after+100))+ logging.WarnPersist(fmt.Sprintf("Retrying due to rate limit... attempt %d of %d", attempts, maxRetries), logging.PersistTimeArg, time.Millisecond*time.Duration(after+100))select {case <-ctx.Done():// context cancelled