Hmbown/CodeWhale · error
Failed to update setting: unknown setting '{key}'.
Error message
Failed to update setting: unknown setting '{key}'. What it means
The generic settings-update setter fell through every known key arm: the requested setting name (with its aliases) does not exist. The key itself is echoed; this is the catch-all unknown-key error for the /set-style surface.
Source
Thrown at crates/tui/src/settings.rs:1495
}
"permission_posture" | "permissions" => {
self.permission_posture = normalize_permission_posture(value);
if self.permission_posture.is_none() {
anyhow::bail!(
"Failed to update setting: invalid permission posture '{value}'. Expected: ask, auto-review, or full-access."
);
}
}
"sandbox_mode" | "sandbox" | "filesystem_sandbox" => {
self.sandbox_mode = normalize_sandbox_mode(value);
if self.sandbox_mode.is_none() {
anyhow::bail!(
"Failed to update setting: invalid sandbox_mode '{value}'. Expected: read-only, workspace-write, danger-full-access, or external-sandbox."
);
}
}
_ => {
anyhow::bail!("Failed to update setting: unknown setting '{key}'.");
}
}
Ok(())
}
/// Apply a named settings preset (#3478).
///
/// Presets are the first bundled-settings mechanism: a single name applies a
/// coherent group of presentation knobs. `calm` is the "beautiful/calm
/// transcript" preset — it quiets motion and verbose tool output while
/// **keeping evidence reachable**: thinking stays visible and tool runs stay
/// expandable (only their inline detail is collapsed), so maintainer/release
/// work is never blind to failures. Presentation only — no model, provider,
/// routing, or safety setting is touched. Reuses [`Settings::set`] so each
/// field goes through the same validation as a single-key set.
///
/// Returns the keys changed, or an error for an unknown preset.
pub fn apply_preset(&mut self, name: &str) -> Result<Vec<&'static str>> {View on GitHub (pinned to 0c42157ee5)
Solutions
- Check the setting name for typos
- List available settings to see valid keys
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/tui/src/settings.rs:1495 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Hmbown/CodeWhale@0c42157ee5 (2026-08-20).
Data as JSON: /api/errors/afbde4dc97ce2f8b.
Report an issue: GitHub.