Description
Introduce a hard limit on how many times the agent can automatically retry a failed tool call (like a failing search_replace or a syntax error fix) without user intervention.
Use Case
If an agent gets stuck in a loop trying to fix a bug, it can quickly consume a massive amount of API tokens. Users want a safeguard to prevent runaway costs.
Proposed Solution
Add a maxRetries setting (defaulting to 3) in agents.config.json that pauses execution and asks the user how to proceed once hit.
Alternatives Considered
Relying on the user to manually hit Ctrl+C in time, which is error-prone.
Additional Context
Description
Introduce a hard limit on how many times the agent can automatically retry a failed tool call (like a failing
search_replaceor a syntax error fix) without user intervention.Use Case
If an agent gets stuck in a loop trying to fix a bug, it can quickly consume a massive amount of API tokens. Users want a safeguard to prevent runaway costs.
Proposed Solution
Add a
maxRetriessetting (defaulting to 3) inagents.config.jsonthat pauses execution and asks the user how to proceed once hit.Alternatives Considered
Relying on the user to manually hit
Ctrl+Cin time, which is error-prone.Additional Context