Hmbown/CodeWhale · info
not confirmed; nothing was written
Error message
not confirmed; nothing was written
What it means
Thrown by `confirm` in crates/tui/src/integrations/cli.rs when the user answered the y/N prompt with anything other than y/yes (case-insensitive). The command aborts and nothing is written — this is the explicit user-declined path.
Solutions
- Re-run the command and answer `y` or `yes` at the prompt to proceed
- If decline was intended, no action is needed — nothing was written
- Use `--yes` to bypass the prompt entirely if the plan is already reviewed
Example fix
// before Proceed? [y/N] n error: not confirmed; nothing was written // after Proceed? [y/N] y (ok)
Defensive patterns
Strategy: try-catch
Try / catch
if let Err(e) = run_dsh(...) {
if e.to_string().contains("not confirmed") {
println!("Operation declined; nothing changed.");
}
} Prevention
- Answer exactly `y` or `yes` to proceed; Enter means no
- Use --yes when the answer is known in advance
- Treat this as a no-op: state is unchanged on decline
When it happens
Trigger: Answering the confirmation prompt with 'n', 'no', Enter (empty), or any other string during an interactive DSH connect/update command.
Common situations: User mistypes or presses Enter intending to decline; accidental invocation of a write operation; user changes their mind after seeing the disclosed plan.
Related errors
- {}
- stdin is not a terminal; pass --yes to confirm the…
- A positive pull request number is required
- account_agent_model_unconfigured
- Account settings import is not available yet; local config…
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/aa3522dd21dfde22.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/integrations/cli.rs:59
Ok((paths, report))
}
fn confirm(yes: bool, question: &str) -> Result<()> {
if yes {
return Ok(());
}
if !std::io::stdin().is_terminal() {
anyhow::bail!("stdin is not a terminal; pass --yes to confirm the disclosed plan");
}
print!("{question} [y/N] ");
use std::io::Write;
std::io::stdout().flush().ok();
let mut answer = String::new();
std::io::stdin()
.read_line(&mut answer)
.context("read confirmation")?;
if !matches!(answer.trim().to_ascii_lowercase().as_str(), "y" | "yes") {
anyhow::bail!("not confirmed; nothing was written");
}
Ok(())
}
fn print_status(report: &DshStatusReport) {
println!("DeepSeek Harness (dsh) — {}", RELATIONSHIP_LABEL);
println!(" state: {}", report.state.label());
println!(" summary: {}", dsh::status_line(report));
match report.detection.binary.as_ref() {
Some(bin) => println!(" dsh binary: {}", bin.display()),
None => println!(" dsh binary: not on PATH"),
}
println!(
" dsh version: {} ({})",
report.detection.version.as_deref().unwrap_or("unknown"),
report.detection.compatibility.label()
);
println!(View on GitHub (pinned to 73e0f67d83)