Hmbown/CodeWhale · error
Invalid verbosity ' ': expected normal or concise.
Error message
Invalid verbosity '{v}': expected normal or concise. What it means
Config validation: the configured verbosity value is neither 'normal' nor 'concise'; the bail fires during config validation so a mistyped verbosity setting fails loudly at load instead of silently degrading output.
Solutions
- Set `verbosity = "normal"` or `verbosity = "concise"`.
- Remove the `verbosity` key to use the default.
- If you wanted more logging detail, verbosity is not the knob — check the logging/log-level configuration instead.
Example fix
// before (config.toml) verbosity = "verbose" // after verbosity = "concise"
Defensive patterns
Strategy: validation
Validate before calling
assert!(matches!(verbosity.trim().to_ascii_lowercase().as_str(), "normal" | "concise"), "bad verbosity: {verbosity}"); Prevention
- Only the two literals normal/concise are valid — do not port verbose/quiet/debug from other tools.
- Omit the key for the default instead of inventing values.
When it happens
Trigger: `Config::validate` sees a `verbosity` string whose normalized value is not `normal` or `concise`.
Common situations: Using values from other CLIs such as `verbose`, `quiet`, or `debug`; numeric verbosity levels (e.g. `2`); typos like `concice`.
Understand the failure class
Background: Invalid enum value errors: "Unknown type", "Invalid scope", "must be one of" — when a string is not on the library's allowed list — this error's family across 23 libraries.
Related errors
- Invalid approval_policy
- agent profile provider cannot be empty
- agent profile provider must be a simple provider id
- agent profile reasoning_effort must be one of: inherit…
- api_key cannot be empty string
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/c898ad1f46c1bd52.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/config.rs:5174
"Invalid configured model '{model}' for provider '{}': expected auto or a model ID this provider serves{hint}.",
provider.as_str()
);
}
if let Some(policy) = self.approval_policy.as_deref() {
let normalized = policy.trim().to_ascii_lowercase();
if !matches!(
normalized.as_str(),
"on-request" | "untrusted" | "never" | "auto" | "suggest"
) {
anyhow::bail!(
"Invalid approval_policy '{policy}': expected on-request, untrusted, never, auto, or suggest."
);
}
}
if let Some(v) = self.verbosity.as_deref() {
let normalized = v.trim().to_ascii_lowercase();
if !matches!(normalized.as_str(), "normal" | "concise") {
anyhow::bail!("Invalid verbosity '{v}': expected normal or concise.");
}
}
if let Some(mode) = self.sandbox_mode.as_deref() {
let normalized = mode.trim().to_ascii_lowercase();
if !matches!(
normalized.as_str(),
"read-only" | "workspace-write" | "danger-full-access" | "external-sandbox"
) {
anyhow::bail!(
"Invalid sandbox_mode '{mode}': expected read-only, workspace-write, danger-full-access, or external-sandbox."
);
}
}
if let Some(tui) = &self.tui
&& let Some(mode) = tui.alternate_screen.as_deref()
{
let mode = mode.to_ascii_lowercase();
if !matches!(mode.as_str(), "auto" | "always" | "never") {View on GitHub (pinned to 73e0f67d83)