atuinsh/atuin · error
PREVIEW_WIDTH is nonzero
Error message
PREVIEW_WIDTH is nonzero
What it means
Error "PREVIEW_WIDTH is nonzero" thrown in atuinsh/atuin.
Source
Thrown at crates/atuin-ai/src/tools/mod.rs:949
Ok(status) => status.code(),
Err(e) => {
if interrupted {
None
} else {
return ToolOutcome::Error(format!("Failed to wait for command: {e}"));
}
}
};
let duration = start.elapsed();
// Send final screen state
let final_lines = vt100_screen_lines(parser.screen());
let _ = output_tx.send(final_lines).await;
// Strip ANSI escape sequences for clean LLM output by running
// the raw bytes through a VT100 parser and extracting plain text.
let cols = NonZeroU16::new(PREVIEW_WIDTH).expect("PREVIEW_WIDTH is nonzero");
let stdout_text = ansi::to_plain_text(&full_stdout, cols);
let stderr_text = ansi::to_plain_text(&full_stderr, cols);
ToolOutcome::Structured {
stdout: stdout_text,
stderr: stderr_text,
exit_code,
duration_ms: duration.as_millis() as u64,
interrupted,
}
}
#[derive(Debug, Clone)]
pub(crate) struct AtuinHistoryToolCall {
pub filter_modes: Vec<HistorySearchFilterMode>,
pub query: String,
pub limit: i64,
pub only_failed: bool,View on GitHub (pinned to 15fe1318f1)
Solutions
- Unset PREVIEW_WIDTH or set it to 0 before running this command.
When it happens
Trigger: Fires when the preview layout invariant is violated because PREVIEW_WIDTH is nonzero where zero was required.
Common situations: See trigger scenarios.
AI-assisted analysis of atuinsh/atuin@15fe1318f1 (2026-08-19).
Data as JSON: /api/errors/b9cd5ff1e23f351f.
Report an issue: GitHub.