-
-
Notifications
You must be signed in to change notification settings - Fork 774
Open
Labels
area/backendThis is backend onlyThis is backend onlybugSomething isn't workingSomething isn't workingpriority/highImportant, fix this weekImportant, fix this week
Description
Checklist
- I searched existing issues and this hasn't been reported
Area
Backend
Operating System
Windows
Version
OS: Windows 10 (MSYS_NT-10.0-19045) - Auto-Claude Desktop: v2.7.2-beta.10 - Claude Code CLI: 2.0.75
What happened?
Problem: Auto-Claude uses Opus during "Control request timeout: initialize" failures, even with Balanced/Sonnet profile selected.
Expected Behavior: All API calls should use Sonnet when Balanced profile is selected, including error handling/retry logic.
Actual Behavior: ~40K Opus tokens consumed during failed initialization attempts.
Steps to reproduce
- Install v2.7.2-beta.10
- Set Default Agent Profile to "Balanced" (Sonnet)
- Create and start a task
- Task fails with "Agent error: Control request timeout: initialize"
- Check Anthropic console - Opus tokens increased despite Sonnet setting
Expected behavior
All API calls should use Sonnet when Balanced profile is selected, including error handling/retry logic.
Suggested Fix
Check all error handling and retry logic paths for hardcoded Opus fallbacks. The model selection from settings/task_metadata should be used consistently across all code paths, including:
- Agent initialization retries
- Spec writing retries
- Any fallback/recovery logic
Additional Context
- Normal operation uses Sonnet correctly (PR fix(model): respect task_metadata.json model selection #415 fix working)
- Only during failures/retries does Opus get used
- This can be expensive if tasks fail repeatedl
Logs / Screenshots
Agent error: Control request timeout: initialize
Starting phase 4: HISTORICAL CONTEXT
Knowledge graph not configured, skipping
Starting phase 5: CONTEXT DISCOVERY
Starting phase 6: SPEC DOCUMENT CREATION
Agent error: Control request timeout: initialize
Agent error: Control request timeout: initialize
Agent error: Control request timeout: initialize
Phase 'spec_writing' failed: Attempt 1: Agent did not create spec.md; Attempt 2: Agent did not create spec.md; Attempt 3: Agent did not create spec.md
Phase spec_writing failed
# Anthropic Console Evidence
| Time | Opus 4.5 | Sonnet 4.5 |
|------|----------|------------|
| 17:06 | 65,112 | 0 |
| 17:10 | 106,000 | 0 |
| 17:16 | 0 | 16,700 |
~40K Opus tokens consumed during failures
## Settings Files
**settings.json** (`C:\Users\Bob\AppData\Roaming\auto-claude-ui\settings.json`):
{
"defaultModel": "sonnet",
"selectedAgentProfile": "balanced",
"featureModels": {
"insights": "haiku",
"ideation": "sonnet",
"roadmap": "sonnet"
}
}
## Related Issues
- PR #415 (merged Dec 30, 2025) fixed normal model selection - this works correctly
- This bug appears to be in error handling/retry code path that wasn't covered by PR #415Metadata
Metadata
Assignees
Labels
area/backendThis is backend onlyThis is backend onlybugSomething isn't workingSomething isn't workingpriority/highImportant, fix this weekImportant, fix this week