{"record":{"id":"4f5dcb962a3d33c1","repo":"xai-org/grok-build","slug":"session-does-not-exist","errorCode":null,"errorMessage":"Session does not exist: {}","messagePattern":"Session does not exist: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/codegen/xai-grok-pager/src/app/session_startup.rs","lineNumber":1017,"sourceCode":"                id: session_id.to_string(),\n                original_cwd: None,\n                title: None,\n                deferred_local_miss,\n                suppress_code_restore: !ctx.restore_code,\n            })\n        }\n        RemoteMissPlan::RejectInPlaceCodeRestore { title_miss_hint } => {\n            if title_miss_hint {\n                anyhow::bail!(\n                    \"{REMOTE_RESTORE_NEEDS_WORKTREE}; {}\",\n                    super::session_title_resolve::title_miss_hint(session_id)\n                );\n            }\n            anyhow::bail!(\"{REMOTE_RESTORE_NEEDS_WORKTREE}\")\n        }\n        RemoteMissPlan::NotFound { title_miss_hint } => {\n            if title_miss_hint {\n                anyhow::bail!(\n                    \"Session does not exist: {}\",\n                    super::session_title_resolve::title_miss_hint(session_id)\n                );\n            }\n            anyhow::bail!(\"Session does not exist\")\n        }\n        RemoteMissPlan::RestoreConversation => {\n            let restored =\n                restore_session_from_remote(session_id, cwd, ctx.restore_progress_on_stdout).await;\n            if arg_is_uuid {\n                return restored;\n            }\n            restored.map_err(|e| {\n                anyhow::anyhow!(\n                    \"{e:#}; {}\",\n                    super::session_title_resolve::title_miss_hint(session_id)\n                )\n            })","sourceCodeStart":999,"sourceCodeEnd":1035,"githubUrl":"https://github.com/xai-org/grok-build/blob/bc7f02eddd3d84085849dc19ed216f11c23b0571/crates/codegen/xai-grok-pager/src/app/session_startup.rs#L999-L1035","documentation":"Thrown during remote session restore when the remote store has no session matching the given id/title and a title-resolution hint is available. This is the 'not found, with hint' variant of the remote miss plan: the argument was not found remotely, and `session_title_resolve::title_miss_hint(session_id)` suggests why the title lookup failed (e.g. no similar titles exist).","triggerScenarios":"`grok --resume <arg>` where the remote backend returns no match for the session id/title AND `title_miss_hint` is true (argument was treated as a title with no fuzzy/local match), producing `Session does not exist: <arg> <hint>`.","commonSituations":"Typo in a session id; resuming a session that was deleted or expired on the remote; referencing a session from another machine/account; stale shell history pointing at a purged session.","solutions":["Copy the session id again from `grok --resume` (list view) or the original session output.","Check you are authenticated to the same remote account/machine where the session was created.","If the session was deleted, start a new session instead of resuming."],"exampleFix":"// before\ngrok --resume my-sesion-typo\n// after\ngrok --resume        # list sessions, copy exact id\ngrok --resume 9c1d4e2a-1234-5678-9abc-def012345678","handlingStrategy":"validation","validationCode":"// Confirm the id exists before resuming\nlet listed = grok_list_sessions()?; // or run `grok --resume` interactively\nif !listed.iter().any(|s| s.id == requested_id) {\n    eprintln!(\"Session {requested_id} not found on this backend\");\n}","typeGuard":null,"tryCatchPattern":"if let Err(e) = grok_resume(id) {\n    let msg = e.to_string();\n    if msg.starts_with(\"Session does not exist\") {\n        eprintln!(\"{msg}\\nList sessions with `grok --resume` and copy a valid id.\");\n    } else { return Err(e); }\n}","preventionTips":["Copy session ids directly from `grok --resume` listing output","Verify you are on the same remote account/machine the session was created on","Don't rely on shell history ids after sessions are purged or expire"],"tags":["session-restore","not-found","cli"],"backgroundTag":"session-not-found","analyzedSha":"bc7f02eddd3d84085849dc19ed216f11c23b0571","analyzedAt":"2026-08-31T04:59:42.031Z","schemaVersion":2},"datasetVersion":"2026-08-31T09:17:48.483Z"}