{"record":{"id":"2d767ea2822a475d","repo":"xai-org/grok-build","slug":"session-session-state-archive-was-unavailable","errorCode":null,"errorMessage":"Session {} session-state archive was unavailable -- conversation history cannot be recovered. Retry in a few moments.","messagePattern":"Session (.+?) session-state archive was unavailable -- conversation history cannot be recovered\\. Retry in a few moments\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/codegen/xai-grok-shell/src/session/worktree.rs","lineNumber":284,"sourceCode":"        ))\n    };\n    let (memory_dl, state_dl) = {\n        let _ = restore_code;\n        tokio::join!(memory_dl_future, state_dl_future)\n    };\n    let codebase_ok = false;\n    let _memory_result =\n        crate::session::restore::apply_memory_download(memory_dl, &wt_resp.worktree_path).await;\n    let (session_state_result, local_session_id) =\n        crate::session::restore::apply_session_state_download(\n            state_dl,\n            &req.session_id,\n            &wt_resp.worktree_path,\n        )\n        .await;\n    if session_state_result.is_skipped() {\n        cleanup_worktree_on_failure(&req.source_cwd, &wt_resp.worktree_path).await;\n        anyhow::bail!(\n            \"Session {} session-state archive was unavailable -- \\\n             conversation history cannot be recovered. Retry in a few moments.\",\n            req.session_id,\n        );\n    }\n    let worktree_root = std::path::Path::new(&wt_resp.worktree_path);\n    let source_path = std::path::Path::new(&req.source_cwd);\n    let source_git_root = wt_resp.source_git_root.as_deref().map(std::path::Path::new);\n    let effective_cwd = effective_worktree_path(worktree_root, source_path, source_git_root)\n        .to_string_lossy()\n        .to_string();\n    let restore_summary = None;\n    let restore_degree = if codebase_ok {\n        Some(xai_grok_workspace::session::git::RestoreDegree::Full)\n    } else {\n        None\n    };\n    Ok(ResumeSessionInWorktreeResponse {","sourceCodeStart":266,"sourceCodeEnd":302,"githubUrl":"https://github.com/xai-org/grok-build/blob/bc7f02eddd3d84085849dc19ed216f11c23b0571/crates/codegen/xai-grok-shell/src/session/worktree.rs#L266-L302","documentation":"Error \"Session {} session-state archive was unavailable -- conversation history cannot be recovered. Retry in a few moments.\" thrown in xai-org/grok-build.","triggerScenarios":"Thrown at crates/codegen/xai-grok-shell/src/session/worktree.rs:284 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bc7f02eddd3d84085849dc19ed216f11c23b0571","analyzedAt":"2026-08-31T04:59:42.031Z","schemaVersion":2},"datasetVersion":"2026-08-31T09:17:48.483Z"}