Hmbown/CodeWhale · error

Fleet task ` ` requests thinking tier ` ` for ` ` / ` `…

Error message

Fleet task `{}` requests thinking tier `{effort}` for `{}` / `{}`, but that exact model route does not support thinking; choose inherit, auto, or off, or select a reasoning-capable model

What it means

validate_fleet_reasoning_effort rejects an explicit thinking tier (e.g. `high`) when the exact resolved model route's provider_capability reports thinking_supported == false. `inherit`, `auto`, and `off` are accepted on every route because they never force a reasoning payload; only concrete tiers are checked, deliberately at run creation so the UI cannot save a profile that silently downgrades or fails at spawn (#4866).

Solutions

  1. Change the task/profile reasoning effort to `inherit`, `auto`, or `off`.
  2. Select a reasoning-capable model for the route (one whose provider_capability reports thinking_supported).
  3. Switch the model's provider to one that supports thinking for that wire model ID.
  4. Drop the explicit tier and let the session default govern reasoning.

Example fix

// before
[worker]
reasoning_effort = "high"
model = "claude-haiku-fast"

// after
[worker]
reasoning_effort = "off"
model = "claude-haiku-fast"
Defensive patterns

Strategy: validation

Validate before calling

if !matches!(effort.as_str(), "inherit"|"auto"|"off") && !provider_capability(provider, wire_model_id).thinking_supported {
    return Err(format!("{wire_model_id} does not support thinking tier {effort}"));
}

Prevention

When it happens

Trigger: A task or agent profile sets reasoning effort to a concrete tier (not inherit/auto/off), resolve_fleet_route_with_config yields a route whose provider_kind/wire_model_id maps to a provider without thinking support (e.g. a plain completion model), and provider_capability(provider, wire_model_id).thinking_supported is false.

Common situations: Assigning `high` reasoning to a non-reasoning model like a fast/cheap tier; reusing a profile that set a thinking tier for one model with another provider's model that lacks reasoning support; role aliases like consultant that lock high reasoning onto an incompatible model.

Understand the failure class

Background: UnsupportedOperationException and "is not supported" errors: when a library deliberately refuses a call — this error's family across 30 libraries.

Related errors


AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22). Data as JSON: /api/errors/8c900d8f882f4ee5. Report an issue: GitHub.

Appendix: source

Thrown at crates/tui/src/fleet/worker_runtime.rs:371

        effective_fleet_reasoning_effort_for_role(task.worker.as_ref(), agent_profile)
    else {
        return Ok(());
    };
    if matches!(effort.as_str(), "inherit" | "auto" | "off") {
        return Ok(());
    }
    let Some(route) = resolve_fleet_route_with_config(task, agent_profiles, session_model, config)
    else {
        // The model-route validator owns unresolved-route errors and produces
        // the more useful provider/model diagnosis.
        return Ok(());
    };
    let provider = ApiProvider::parse(&route.provider_kind).unwrap_or(ApiProvider::Custom);
    let capability = crate::config::provider_capability(provider, &route.wire_model_id);
    if capability.thinking_supported {
        return Ok(());
    }
    bail!(
        "Fleet task `{}` requests thinking tier `{effort}` for `{}` / `{}`, but that exact model route does not support thinking; choose inherit, auto, or off, or select a reasoning-capable model",
        task.id,
        route.provider_id,
        route.wire_model_id,
    );
}

/// Build a sub-agent worker spec after resolving workspace Fleet profile input.
///
/// This keeps Fleet and sub-agents on the same runtime substrate: profile files
/// and task-level role/loadout intent are composed into the existing
/// `AgentWorkerSpec` / `WorkerRuntimeProfile` pair, then optionally intersected
/// with a parent profile when the caller has one.
/// A worker workspace is isolated when it is a linked git worktree that sits
/// outside the coordinating manager's workspace (and does not contain it):
/// its mutations cannot overlap the shared checkout, so its launch manifest
/// must not claim the shared-workspace coordination scope (#5036).
fn worker_workspace_is_isolated(

View on GitHub (pinned to 73e0f67d83)