Skip to content

Repetitive responses and multiple API calls for single conversational turnsΒ #6581

@nishan-paul-2022

Description

@nishan-paul-2022

App Version

v3.25.4

API Provider

Google Gemini

Model Used

gemini-2.5-pro

Roo Code Task Links (Optional)

https://app.roocode.com/share/696ff2fa-ce3d-4247-b994-d8e607b1d403

πŸ” Steps to Reproduce

01. Setup

  • OS: Ubuntu 24.04.2 LTS
  • Roo Code Version: v3.25.4
  • Roo Code Settings: ❓ Ask Mode.

2. Exact Actions & Outcomes

  • [ Case A ]

  • Action 01: Ask a question that results in a conversational response from the agent. So the agent doesn't need any internal tool to use for this prompt. For example, ask "how to master problem solving?".

  • Outcome 01: The agent provides same ans three times in a row, so making API request three times for a single prompt.

  • [ Case B ]

  • Action 02: Reply with a prompt that requires minimum one internal tool to use by the agent. Such as "why u r generating same ans three times in a row? So, u r making API request thrice for a single prompt, when it could be done through only one?". This prompt requires <ask_followup_question> tool to use.
    Outcome 02: Agent provides ans one time only.

πŸ’₯ Outcome Summary

Roo Code has a strict rule. It must use one of its available tools in every single response. These tools are things like ask_followup_question, read_file, codebase_search etc.

Sometimes, a simple conversational answer doesn't naturally require a tool. When Roo Code provides a response without wrapping it in a tool, its internal system flags it as an error. It then forces the agent to "retry" the turn, and it goes on until one of the tools needs to be used.

Image

πŸ“„ Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions