Hmbown/CodeWhale · error
agent profile {} reasoning_effort {value:?} must be one of:
Error message
agent profile {} reasoning_effort {value:?} must be one of: inherit, auto, off, low, medium, high, max What it means
Error "agent profile {} reasoning_effort {value:?} must be one of: inherit, auto, off, low, medium, high, max" thrown in Hmbown/CodeWhale.
Source
Thrown at crates/tui/src/fleet/profile.rs:497
}
fn normalize_agent_profile_reasoning_effort(
path: &Path,
value: Option<&str>,
) -> Result<Option<String>> {
let Some(value) = non_empty_trimmed(value) else {
return Ok(None);
};
if matches!(
value.to_ascii_lowercase().as_str(),
"inherit" | "parent" | "same" | "current" | "default" | "unset"
) {
return Ok(None);
}
ReasoningEffort::parse_strict(value)
.map(|effort| Some(effort.as_setting().to_string()))
.map_err(|_| {
anyhow!(
"agent profile {} reasoning_effort {value:?} must be one of: inherit, auto, off, low, medium, high, max",
path.display()
)
})
}
fn is_agent_profile_token_char(ch: char) -> bool {
ch.is_ascii_alphanumeric() || matches!(ch, '-' | '_' | '.')
}
fn is_model_hint(value: &str) -> bool {
let trimmed = value.trim();
!trimmed.is_empty()
&& trimmed == value
&& trimmed
.chars()
.all(|ch| ch.is_ascii_graphic() && !matches!(ch, '=' | '\'' | '"'))
}View on GitHub (pinned to 8880682c63)
When it happens
Trigger: Thrown at crates/tui/src/fleet/profile.rs:497 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Hmbown/CodeWhale@8880682c63 (2026-08-16).
Data as JSON: /api/errors/6cdca193d0afe1e6.
Report an issue: GitHub.