Skip to content

Tool loop guard stopped repeated failing calls to "task" after 3 attempts #51

@josemiguelo

Description

@josemiguelo

Hi!

First of all, Thanks for creating this plugin! 🙏🏻

This is related to #45 which was closed and can't be reopened

I have latest 2.3.17 version (installed through npm), and the issue is still alive.
This is how things went down in my case:

Prompt
analyze this repo, and tell me potential issues, improvements/enhancements

Output:

Thinking: The user wants me to analyze the stellasaur repository and identify potential issues, improvements, and enhancements. Let me explore the codebase thoroughly using multiple agents in parallel.
│ Task Analyze build scripts
Error: The task tool was called with invalid arguments: [
  {
    "expected": "string",
    "code": "invalid_type",
    "path": [
      "subagent_type"
    ],
    "message": "Invalid input: expected string, received undefined"
  }
].
Please rewrite the input so it satisfies the expected schema.
ctrl+x down view subagents
Thinking: Let me launch multiple exploration agents in parallel to analyze different parts of the repo.
Tool loop guard stopped repeated failing calls to "task" after 3 attempts (limit 2). Adjust tool arguments and retry.
▣  Build · opus-4.6-thinking · 18.7s

Next prompt:
analyze this repo, and tell me potential issues, improvements/enhancements. don't use multiple agents in parallel
Next output:

Thinking: The user wants me to analyze the repository for potential issues, improvements, and enhancements. Let me start by exploring the repo structure and reading key files.
⚙ shell [command=find /Users/jochoa/Repos/gh/josemiguelo/stellasaur -type f -not -path '*/.git/*' -not -path '*/node_modules/*' | head -100, timeout=30000, cwd=]
Thinking: The user wants me to analyze the repo for potential issues, improvements, and enhancements. Let me read through the key files systematically. I'll start by reading the core build files and configuration.
~ Reading file...
Thinking: The user wants me to analyze the repository for potential issues, improvements, and enhancements. Let me read through the key files systematically. I already have the Containerfile. Let me read the build scripts, workflows, services, and ujust files.
~ Reading file...
Thinking: The user wants me to analyze the repo for potential issues, improvements, and enhancements. I've already seen the Containerfile and the orchestrator script. Let me now read all the build scripts, the Justfile, services, ujust files, and other key files to do a thorough analysis.
Tool loop guard stopped repeated failing calls to "task" after 3 attempts (limit 2). Adjust tool arguments and retry.
▣  Build · opus-4.6-thinking · 42.7s

the error pops up when cursor determines it should spawn multiple subagents after prompt (first prompt) or down the road after some analysis (second prompt)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions