Hmbown/CodeWhale · error
No saved sessions found for workspace
Error message
No saved sessions found for workspace {}. Use `codewhale sessions` to list all sessions, or `codewhale resume <SESSION_ID>` to resume one explicitly. What it means
resolve_session_id found no saved sessions scoped to the current workspace; the error doubles as guidance, pointing at workspace-wide listing and explicit id resume, because the interactive workspace-scoped picker has nothing to offer.
Solutions
- Resume by explicit id: codewhale resume <SESSION_ID>.
- Run from the workspace that owns the sessions, or use `codewhale sessions` to list all and pick from there.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/tui/src/lib.rs:8463 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/ebbba32bcfb709ec.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/lib.rs:8463
let activation = crate::oauth::activate_login(pending, config_path, None)?;
println!(
"ChatGPT OAuth is ready; activated {} via {}",
codewhale_config::quote_os_path(&activation.auth_path),
codewhale_config::quote_os_path(&activation.config_path)
);
Ok(())
}
fn run_chatgpt_pkce_revoke(config_path: Option<&Path>) -> Result<()> {
crate::oauth::revoke_owned_login(crate::oauth::OAuthProvider::Chatgpt, config_path, None)?;
println!("Revoked Codewhale-owned ChatGPT tokens. Codex CLI consent is unchanged.");
Ok(())
}
fn resolve_session_id(session_id: Option<String>, last: bool, workspace: &Path) -> Result<String> {
if last {
return latest_session_id_for_workspace(workspace)?.ok_or_else(|| {
anyhow!(
"No saved sessions found for workspace {}. Use `codewhale sessions` to list all sessions, or `codewhale resume <SESSION_ID>` to resume one explicitly.",
workspace.display()
)
});
}
if let Some(id) = session_id {
return Ok(id);
}
pick_session_id()
}
fn latest_session_id_for_workspace(workspace: &Path) -> std::io::Result<Option<String>> {
let manager = SessionManager::default_location()?;
Ok(manager
.get_latest_session_for_workspace(workspace)?
.map(|session| session.id))
}
View on GitHub (pinned to 73e0f67d83)