Problem
When a Qoder agent run hits the server-side tool-call rate limit (error 40429), the IDE suspends execution and displays “Tool usage limit reached. Click to resume.” The run stays suspended indefinitely until a human manually clicks the Continue button. This happens regardless of how many credits the user has remaining — I’ve seen it trigger at 9% credit usage with 18,000+ credits left.
The IDE’s built-in auto-continue mechanism does not fire for this error code. The result: long automated runs (backtest optimization, multi-file refactors, full pipeline rebuilds) that should complete in 30-60 minutes stretch to hours or overnight, requiring constant human supervision. Each suspension also costs context: the agent must re-establish its position after resume, wasting additional tool calls and accelerating the next rate-limit hit.
Solution
Add a user-controllable setting (e.g., agent.autoResumeOnRateLimit, default: off) that automatically resolves the Continue permission request when error 40429 is detected. The setting should include:
- Configurable delay (default: 10 seconds) before auto-resuming, to avoid interrupting active user interaction.
- Hourly cap (default: 20 auto-resumes/hour) to prevent runaway behaviour if the rate limit is hit in a tight loop.
- Scope restriction: only auto-resume error 40429 (tool-call rate limit). Never auto-resume credit-limit errors (112/113), which require user action.
- Visibility: log each auto-resume to a local file (e.g.,
%LOCALAPPDATA%\Qoder\auto-resume.log) so users can audit what happened.
The setting should live in Settings → Agent (or similar), alongside other agent behaviour controls. Users who prefer manual control keep the current behaviour; users who run long unattended tasks can enable it.
Use Case
This blocks the core value proposition of an AI coding agent: the ability to run complex, multi-step tasks without constant human supervision. Without it, long runs are impractical.
During long automated agent runs — backtest optimization across multiple regimes, multi-file refactoring, full test suite generation, or any task that generates >40,000 tool calls — the agent deterministically hits the rate limit and suspends. Without auto-resume, the user must either:
- Monitor the IDE constantly and click Continue every 30-60 minutes, or
- Split the task into smaller chunks, which reduces agent effectiveness and increases total wall-clock time.
This affects every user who runs multi-step automated tasks, not just edge cases. The feature would make long unattended runs practical for the first time.
Priority
-
High - Blocking issue -
Medium - Important improvement -
Low - Nice to have
Additional Info
![]()
Reproduction: Run any multi-step agent task that generates >40,000 tool calls (e.g., large-scale refactoring, full test suite generation, multi-file search-and-replace across a large codebase). The suspension occurs deterministically.
Current workaround: Users must either (a) manually monitor and click Continue every ~30-60 minutes, or (b) split tasks into smaller chunks, which reduces agent effectiveness and increases total wall-clock time.
Environment: Qoder IDE on Windows, Ultra plan with 20,000 monthly credits. Rate limit is independent of credit balance.
Suggested implementation: Add a setting agent.autoResumeOnRateLimit (default: false) that, when enabled, automatically resolves the Continue permission request after a configurable delay (default: 10 seconds). The delay prevents accidental auto-resume during active user interaction. Cap auto-resumes at e.g., 20 per hour to prevent runaway behaviour.
Related: The IDE’s built-in auto-continue for permission requests does not fire for error 40429. This appears to be an intentional design decision (the client deliberately does not auto-retry), but it should be user-controllable.