Hmbown/CodeWhale · error
Invalid transcript.prose_measure
Error message
Invalid transcript.prose_measure: {detail}. What it means
`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.
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.
Example fix
// before (config.toml) [transcript] prose_measure = "80cols" // after [transcript] prose_measure = 80
Defensive patterns
Strategy: validation
Validate before calling
let v: u16 = prose_measure.parse().map_err(|e| format!("transcript.prose_measure: {e}"))?;
assert!(v > 0, "transcript.prose_measure must be a positive column count"); Prevention
- 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.
When it happens
Trigger: `Config::validate` calls `prose_measure_columns()` on `self.transcript` and receives an Err (non-numeric value, zero/negative columns, or otherwise unparseable measure).
Common situations: Setting the option to free text like `"wide"` instead of a number; zero or negative column counts; pasting values with units like `"80cols"`.
Understand the failure class
Background: "Invalid value" and "allowed values are" config errors: what your library rejected and how to fix it — this error's family across 41 libraries.
Related errors
- agent profile provider cannot be empty
- agent profile provider must be a simple provider id
- api_key cannot be empty string
- approval_policy ' ' is not allowed by requirements ( )
- budget document_kind must be
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/6460363b232eabcf.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/config.rs:5201
anyhow::bail!(
"Invalid sandbox_mode '{mode}': expected read-only, workspace-write, danger-full-access, or external-sandbox."
);
}
}
if let Some(tui) = &self.tui
&& let Some(mode) = tui.alternate_screen.as_deref()
{
let mode = mode.to_ascii_lowercase();
if !matches!(mode.as_str(), "auto" | "always" | "never") {
anyhow::bail!(
"Invalid tui.alternate_screen '{mode}': expected auto, always, or never."
);
}
}
if let Some(transcript) = &self.transcript
&& let Err(detail) = transcript.prose_measure_columns()
{
anyhow::bail!("Invalid transcript.prose_measure: {detail}.");
}
if let Some(auto_review) = &self.auto_review {
auto_review.validate()?;
}
if let Some(providers) = &self.providers {
providers.validate()?;
}
Ok(())
}
/// Resolved prose wrap cap from `[transcript] prose_measure` (#5436).
///
/// `None` (absent or `0`) means prose uses the full content width,
/// consistent with tool/status cells. Invalid values are rejected by
/// [`Config::validate`], which every load path runs, so this resolver
/// cannot fail here.
#[must_use]
pub fn prose_measure(&self) -> Option<u16> {View on GitHub (pinned to 73e0f67d83)