Hmbown/CodeWhale · error
Failed to update setting: invalid sandbox_mode '{value}'. Ex
Error message
Failed to update setting: invalid sandbox_mode '{value}'. Expected: read-only, workspace-write, danger-full-access, or external-sandbox. What it means
Settings update validation for the sandbox-mode key: normalize_sandbox_mode returned None — the value matches none of the four accepted sandbox profiles. Same guard as the config-file loader, applied to the interactive settings setter.
Source
Thrown at crates/tui/src/settings.rs:1489
);
};
self.default_model = Some(model);
}
"reasoning_effort" | "effort" => {
self.reasoning_effort = normalize_reasoning_effort_setting(value)?;
}
"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/releaseView on GitHub (pinned to 0c42157ee5)
Solutions
- Set sandbox mode to read-only, workspace-write, danger-full-access, or external-sandbox
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/tui/src/settings.rs:1489 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/07ff83a45e8007ec.
Report an issue: GitHub.