Hmbown/CodeWhale · error
Invalid input
Error message
Invalid input
What it means
Picker guard in pick_session_id: the interactive input parsed as a number (non-empty), but the parse to usize failed — the user typed something that is not a valid integer (e.g. 'a3' or '1.5'). The session list is unchanged; re-running the picker is enough.
Solutions
- Enter a plain integer matching a listed session number.
- Re-run the command and choose again; press Enter to cancel.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/tui/src/lib.rs:8576 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/cc4edb5e96c06d83.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/lib.rs:8576
bail!("No saved sessions found.");
}
println!("Select a session to resume:");
for (idx, session) in sessions.iter().enumerate() {
println!(" {:>2}. {} ({})", idx + 1, session.title, session.id);
}
print!("Enter a number (or press Enter to cancel): ");
io::stdout().flush()?;
let mut input = String::new();
io::stdin().read_line(&mut input)?;
let input = input.trim();
if input.is_empty() {
bail!("No session selected.");
}
let idx: usize = input
.parse()
.map_err(|_| anyhow::anyhow!("Invalid input"))?;
let session = sessions
.get(idx.saturating_sub(1))
.ok_or_else(|| anyhow::anyhow!("Selection out of range"))?;
Ok(session.id.clone())
}
async fn run_review(config: &Config, args: ReviewArgs) -> Result<()> {
initialize_cloud_facts(config);
use crate::client::CodewhaleClient;
// Resolved before anything is fetched or billed so an unknown
// `--provider` fails fast with the provider vocabulary hint.
let (config, force_configured_route) = review_execution_route(config, &args)?;
let config = &config;
validate_review_receipt_args(&args)?;
if args.pr.is_some() && !is_command_available("gh") {
bail!(View on GitHub (pinned to 73e0f67d83)