{"record":{"id":"c898ad1f46c1bd52","repo":"Hmbown/CodeWhale","slug":"invalid-verbosity-v-expected-normal-or-concis","errorCode":null,"errorMessage":"Invalid verbosity '{v}': expected normal or concise.","messagePattern":"Invalid verbosity '(.+?)': expected normal or concise\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/config.rs","lineNumber":5174,"sourceCode":"                \"Invalid configured model '{model}' for provider '{}': expected auto or a model ID this provider serves{hint}.\",\n                provider.as_str()\n            );\n        }\n        if let Some(policy) = self.approval_policy.as_deref() {\n            let normalized = policy.trim().to_ascii_lowercase();\n            if !matches!(\n                normalized.as_str(),\n                \"on-request\" | \"untrusted\" | \"never\" | \"auto\" | \"suggest\"\n            ) {\n                anyhow::bail!(\n                    \"Invalid approval_policy '{policy}': expected on-request, untrusted, never, auto, or suggest.\"\n                );\n            }\n        }\n        if let Some(v) = self.verbosity.as_deref() {\n            let normalized = v.trim().to_ascii_lowercase();\n            if !matches!(normalized.as_str(), \"normal\" | \"concise\") {\n                anyhow::bail!(\"Invalid verbosity '{v}': expected normal or concise.\");\n            }\n        }\n        if let Some(mode) = self.sandbox_mode.as_deref() {\n            let normalized = mode.trim().to_ascii_lowercase();\n            if !matches!(\n                normalized.as_str(),\n                \"read-only\" | \"workspace-write\" | \"danger-full-access\" | \"external-sandbox\"\n            ) {\n                anyhow::bail!(\n                    \"Invalid sandbox_mode '{mode}': expected read-only, workspace-write, danger-full-access, or external-sandbox.\"\n                );\n            }\n        }\n        if let Some(tui) = &self.tui\n            && let Some(mode) = tui.alternate_screen.as_deref()\n        {\n            let mode = mode.to_ascii_lowercase();\n            if !matches!(mode.as_str(), \"auto\" | \"always\" | \"never\") {","sourceCodeStart":5156,"sourceCodeEnd":5192,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/config.rs#L5156-L5192","documentation":"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.","triggerScenarios":"`Config::validate` sees a `verbosity` string whose normalized value is not `normal` or `concise`.","commonSituations":"Using values from other CLIs such as `verbose`, `quiet`, or `debug`; numeric verbosity levels (e.g. `2`); typos like `concice`.","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."],"exampleFix":"// before (config.toml)\nverbosity = \"verbose\"\n\n// after\nverbosity = \"concise\"","handlingStrategy":"validation","validationCode":"assert!(matches!(verbosity.trim().to_ascii_lowercase().as_str(), \"normal\" | \"concise\"), \"bad verbosity: {verbosity}\");","typeGuard":null,"tryCatchPattern":null,"preventionTips":["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."],"tags":["config","validation","enum"],"backgroundTag":"invalid-enum-value","analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}