Hmbown/CodeWhale · error · anyhow::Error

Failed to update setting: invalid synchronized_output '{valu

Error message

Failed to update setting: invalid synchronized_output '{value}'. Expected: auto, on, off.

What it means

Validation failure in the settings update path: the value supplied for the synchronized_output setting was not one of the three accepted keywords auto, on, or off after normalization. A generic enumerated-value guard; fires on typos or unsupported values passed to the setting updater, mirroring the adjacent status_indicator check.

Source

Thrown at crates/tui/src/settings.rs:1406

                }
                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" => {
                let normalized = normalize_synchronized_output(value);
                if !["auto", "on", "off"].contains(&normalized) {
                    anyhow::bail!(
                        "Failed to update setting: invalid synchronized_output '{value}'. Expected: auto, on, off."
                    );
                }
                self.synchronized_output = normalized.to_string();
            }
            "workspace_follow_symlinks" | "follow_symlinks" => {
                self.workspace_follow_symlinks = parse_bool(value)?;
            }
            "default_mode" | "mode" => {
                // Act (wire: agent), Plan, and Operate are valid startup modes.
                // yolo remains a permission-migration alias, not a mode write.
                self.default_mode = match value.trim().to_ascii_lowercase().as_str() {
                    "agent" | "normal" | "act" | "work" | "edit" => "agent".to_string(),
                    "plan" => "plan".to_string(),
                    "operate" | "operation" | "ops" => "operate".to_string(),
                    _ => anyhow::bail!(
                        "Failed to update setting: invalid mode '{value}'. Expected: act (agent), plan, or operate."
                    ),

View on GitHub (pinned to 0c42157ee5)

Solutions

  1. Set synchronized-output to auto, on, or off
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/tui/src/settings.rs:1406 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/df01dc536ba6f938. Report an issue: GitHub.