{"record":{"id":"ebbba32bcfb709ec","repo":"Hmbown/CodeWhale","slug":"no-saved-sessions-found-for-workspace-use-cod-ebbba3","errorCode":null,"errorMessage":"No saved sessions found for workspace {}. Use `codewhale sessions` to list all sessions, or `codewhale resume <SESSION_ID>` to resume one explicitly.","messagePattern":"No saved sessions found for workspace (.+?)\\. Use `codewhale sessions` to list all sessions, or `codewhale resume <SESSION_ID>` to resume one explicitly\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/lib.rs","lineNumber":8463,"sourceCode":"    let activation = crate::oauth::activate_login(pending, config_path, None)?;\n    println!(\n        \"ChatGPT OAuth is ready; activated {} via {}\",\n        codewhale_config::quote_os_path(&activation.auth_path),\n        codewhale_config::quote_os_path(&activation.config_path)\n    );\n    Ok(())\n}\n\nfn run_chatgpt_pkce_revoke(config_path: Option<&Path>) -> Result<()> {\n    crate::oauth::revoke_owned_login(crate::oauth::OAuthProvider::Chatgpt, config_path, None)?;\n    println!(\"Revoked Codewhale-owned ChatGPT tokens. Codex CLI consent is unchanged.\");\n    Ok(())\n}\n\nfn resolve_session_id(session_id: Option<String>, last: bool, workspace: &Path) -> Result<String> {\n    if last {\n        return latest_session_id_for_workspace(workspace)?.ok_or_else(|| {\n            anyhow!(\n                \"No saved sessions found for workspace {}. Use `codewhale sessions` to list all sessions, or `codewhale resume <SESSION_ID>` to resume one explicitly.\",\n                workspace.display()\n            )\n        });\n    }\n    if let Some(id) = session_id {\n        return Ok(id);\n    }\n    pick_session_id()\n}\n\nfn latest_session_id_for_workspace(workspace: &Path) -> std::io::Result<Option<String>> {\n    let manager = SessionManager::default_location()?;\n    Ok(manager\n        .get_latest_session_for_workspace(workspace)?\n        .map(|session| session.id))\n}\n","sourceCodeStart":8445,"sourceCodeEnd":8481,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/lib.rs#L8445-L8481","documentation":"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.","triggerScenarios":"Thrown at crates/tui/src/lib.rs:8463 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}