{"record":{"id":"6460363b232eabcf","repo":"Hmbown/CodeWhale","slug":"invalid-transcript-prose-measure-detail","errorCode":null,"errorMessage":"Invalid transcript.prose_measure: {detail}.","messagePattern":"Invalid transcript\\.prose_measure: (.+?)\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/config.rs","lineNumber":5201,"sourceCode":"                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\") {\n                anyhow::bail!(\n                    \"Invalid tui.alternate_screen '{mode}': expected auto, always, or never.\"\n                );\n            }\n        }\n        if let Some(transcript) = &self.transcript\n            && let Err(detail) = transcript.prose_measure_columns()\n        {\n            anyhow::bail!(\"Invalid transcript.prose_measure: {detail}.\");\n        }\n        if let Some(auto_review) = &self.auto_review {\n            auto_review.validate()?;\n        }\n        if let Some(providers) = &self.providers {\n            providers.validate()?;\n        }\n        Ok(())\n    }\n\n    /// Resolved prose wrap cap from `[transcript] prose_measure` (#5436).\n    ///\n    /// `None` (absent or `0`) means prose uses the full content width,\n    /// consistent with tool/status cells. Invalid values are rejected by\n    /// [`Config::validate`], which every load path runs, so this resolver\n    /// cannot fail here.\n    #[must_use]\n    pub fn prose_measure(&self) -> Option<u16> {","sourceCodeStart":5183,"sourceCodeEnd":5219,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/config.rs#L5183-L5219","documentation":"`transcript.prose_measure` is parsed by `transcript.prose_measure_columns()`; if that returns Err, the config validator surfaces the underlying detail as `Invalid transcript.prose_measure: {detail}.`. The option describes a column measure for prose wrapping in transcripts and must parse to a valid measure.","triggerScenarios":"`Config::validate` calls `prose_measure_columns()` on `self.transcript` and receives an Err (non-numeric value, zero/negative columns, or otherwise unparseable measure).","commonSituations":"Setting the option to free text like `\"wide\"` instead of a number; zero or negative column counts; pasting values with units like `\"80cols\"`.","solutions":["Set `transcript.prose_measure` to a plain positive integer column count (e.g. 80).","Read the `{detail}` portion of the message — it states exactly why parsing failed.","Remove the `prose_measure` key to use the default wrapping behavior."],"exampleFix":"// before (config.toml)\n[transcript]\nprose_measure = \"80cols\"\n\n// after\n[transcript]\nprose_measure = 80","handlingStrategy":"validation","validationCode":"let v: u16 = prose_measure.parse().map_err(|e| format!(\"transcript.prose_measure: {e}\"))?;\nassert!(v > 0, \"transcript.prose_measure must be a positive column count\");","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Provide a plain positive integer of columns, with no units or words.","Read the `{detail}` in the error — it names the parse failure precisely.","Omit the option to use default wrapping."],"tags":["config","validation","transcript"],"backgroundTag":"invalid-config-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"}