Hmbown/CodeWhale · error · anyhow::Error
Failed to update setting: invalid transcript spacing '{value
Error message
Failed to update setting: invalid transcript spacing '{value}'. Expected: compact, comfortable, spacious. What it means
Settings update validation for the transcript spacing key: the normalized value is not one of compact, comfortable, spacious. Mirrors the composer-density guard; spacing drives transcript layout, so only canonical values are stored.
Source
Thrown at crates/tui/src/settings.rs:1385
"composer_border" | "border" => {
self.composer_border = parse_bool(value)?;
}
"composer_multiline_mode" | "multiline_mode" | "multiline" => {
self.composer_multiline_mode = parse_bool(value)?;
}
"composer_vim_mode" | "vim_mode" | "vim" => {
let normalized = value.trim().to_ascii_lowercase();
if !["vim", "normal"].contains(&normalized.as_str()) {
anyhow::bail!(
"Failed to update setting: invalid composer vim mode '{value}'. Expected: normal, vim."
);
}
self.composer_vim_mode = normalized;
}
"transcript_spacing" | "spacing" => {
let normalized = normalize_transcript_spacing(value);
if !["compact", "comfortable", "spacious"].contains(&normalized) {
anyhow::bail!(
"Failed to update setting: invalid transcript spacing '{value}'. Expected: compact, comfortable, spacious."
);
}
self.transcript_spacing = normalized.to_string();
}
"launch_screen" | "launch" => {
self.launch_screen = parse_bool(value)?;
}
"status_indicator" | "indicator" => {
let normalized = normalize_status_indicator(value);
if !["cw", "whale", "dots", "off"].contains(&normalized) {
anyhow::bail!(
"Failed to update setting: invalid status indicator '{value}'. Expected: cw, whale, dots, off."
);
}
self.status_indicator = normalized.to_string();
}
"synchronized_output" | "sync_output" | "sync" => {View on GitHub (pinned to 0c42157ee5)
Solutions
- Set transcript spacing to compact, comfortable, or spacious
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/tui/src/settings.rs:1385 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/41b559b907d95b16.
Report an issue: GitHub.