Skip to content

# Bug Report: Opus Used During Initialization Failures (v2.7.2-beta.10) #433

@azrlb

Description

@azrlb

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

  1. Install v2.7.2-beta.10
  2. Set Default Agent Profile to "Balanced" (Sonnet)
  3. Create and start a task
  4. Task fails with "Agent error: Control request timeout: initialize"
  5. 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

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 #415

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/backendThis is backend onlybugSomething isn't workingpriority/highImportant, fix this week

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions