Hmbown/CodeWhale · info

No session selected.

Error message

No session selected.

What it means

On Windows, bare `codewhale resume` cannot show a fuzzy picker, so it lists sessions and prompts `Session id/prefix (Enter to cancel):`. Reading the line with `read_line` succeeds even for empty input, so an empty trimmed answer — the documented cancel gesture — surfaces as this bail. The session id or a unique prefix is required to proceed, or `--last` skips the prompt.

Source

Thrown at crates/cli/src/lib.rs:4673

            0
        } else {
            1
        })
    }

    println!();
    println!("Windows note: enter a session id or prefix from the list above.");
    println!("You can also run `codewhale resume --last` to skip this prompt.");
    print!("Session id/prefix (Enter to cancel): ");
    io::stdout().flush()?;

    let mut input = String::new();
    io::stdin()
        .read_line(&mut input)
        .context("failed to read session selection")?;
    let session_id = input.trim();
    if session_id.is_empty() {
        bail!("No session selected.");
    }

    run_tui_in_process(
        cli,
        resolved_runtime,
        vec!["resume".to_string(), session_id.to_string()],
    )
}

fn should_pick_resume_in_dispatcher(passthrough: &[String], is_windows: bool) -> bool {
    is_windows && passthrough == ["resume"]
}

fn run_tui_in_process(
    cli: &Cli,
    resolved_runtime: &ResolvedRuntimeOptions,
    passthrough: Vec<String>,
) -> Result<()> {

View on GitHub (pinned to 0c42157ee5)

Solutions

  1. Type a session id or a unique prefix from the printed list and press Enter
  2. Skip the prompt entirely: `codewhale resume --last`
  3. For scripts, pass the session explicitly: `codewhale resume <session-id>`

Example fix

# before
Session id/prefix (Enter to cancel): <Enter>
# No session selected.

# after
$ codewhale resume --last
Defensive patterns

Strategy: validation

Validate before calling

#!/usr/bin/env bash
# on Windows or in scripts, never rely on the picker prompt
if [ -n "${SESSION_ID:-}" ]; then
  exec codewhale resume "$SESSION_ID"
else
  exec codewhale resume --last
fi

Prevention

When it happens

Trigger: Running `codewhale resume` on Windows and pressing Enter at the selection prompt; typing only whitespace; stdin closed/EOF so the read returns an empty line.

Common situations: Users testing the prompt and pressing Enter to 'skip'; terminal paste issues; scripts calling `codewhale resume` non-interactively on Windows where stdin yields EOF.

Related errors


AI-assisted analysis of Hmbown/CodeWhale@0c42157ee5 (2026-08-20). Data as JSON: /api/errors/8c3a01cfb832ec5a. Report an issue: GitHub.