{"record":{"id":"ad70d1ac575be270","repo":"xai-org/grok-build","slug":"session-not-found-locally-and-session-registry","errorCode":null,"errorMessage":"Session {} not found locally and session registry is not available (auth may be missing or registry is disabled)","messagePattern":"Session (.+?) not found locally and session registry is not available \\(auth may be missing or registry is disabled\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/codegen/xai-grok-shell/src/session/worktree.rs","lineNumber":229,"sourceCode":"            kind = ?resolved.resolution_kind,\n            \"RESUME_LOCAL_RESOLVED: session found via repo-wide lookup\"\n        );\n        return resume_local_session_in_worktree(\n            req,\n            ops,\n            &resolved.session_id,\n            &resolved.cwd,\n            worktree_type_default,\n            restore_code_default,\n            registry_client,\n            auth_manager,\n            agent_id,\n            grove_worktree,\n        )\n        .await;\n    }\n    let client = registry_client.ok_or_else(|| {\n        anyhow::anyhow!(\n            \"Session {} not found locally and session registry is not available \\\n             (auth may be missing or registry is disabled)\",\n            req.session_id,\n        )\n    })?;\n    tracing::info!(\n        session_id = %req.session_id,\n        \"Restoring remote session: creating worktree first to keep source clean\"\n    );\n    let worktree_type = req\n        .worktree_type\n        .map(ShellWorktreeType::from)\n        .unwrap_or(worktree_type_default);\n    let wt_resp = create_worktree_for_resume(\n        &req.source_cwd,\n        req.copy_mode,\n        worktree_type,\n        req.git_ref.clone(),","sourceCodeStart":211,"sourceCodeEnd":247,"githubUrl":"https://github.com/xai-org/grok-build/blob/bc7f02eddd3d84085849dc19ed216f11c23b0571/crates/codegen/xai-grok-shell/src/session/worktree.rs#L211-L247","documentation":"Error \"Session {} not found locally and session registry is not available (auth may be missing or registry is disabled)\" thrown in xai-org/grok-build.","triggerScenarios":"Thrown at crates/codegen/xai-grok-shell/src/session/worktree.rs:229 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"}