{"record":{"id":"a6a9d22c9a63dda9","repo":"openclaw/openclaw","slug":"claude-session-transcript-is-unavailable","errorCode":null,"errorMessage":"Claude session transcript is unavailable","messagePattern":"Claude session transcript is unavailable","errorType":"exception","errorClass":"ClaudeCatalogParamsError","httpStatus":null,"severity":"error","filePath":"extensions/anthropic/session-catalog-terminal.ts","lineNumber":115,"sourceCode":"\nexport async function openClaudeCatalogTerminal(\n  params: {\n    api: OpenClawPluginApi;\n    hostId: string;\n    threadId: string;\n  } & ClaudeTerminalDependencies,\n): Promise<SessionCatalogTerminalPlan> {\n  const title = `claude --resume ${params.threadId.slice(0, 8)}…`;\n  if (params.hostId === CLAUDE_LOCAL_SESSION_HOST_ID) {\n    const record = (await params.listClaudeSessions()).find(\n      (candidate) => candidate.threadId === params.threadId,\n    );\n    if (!record || !isResumableClaudeSource(record.source)) {\n      throw new ClaudeCatalogParamsError(\"Claude session is unavailable\");\n    }\n    const source = await fs.stat(record.filePath).catch(() => undefined);\n    if (!source?.isFile()) {\n      throw new ClaudeCatalogParamsError(\"Claude session transcript is unavailable\");\n    }\n    const resolution = resolveClaudeTerminalExecutable();\n    if (!resolution) {\n      throw new ClaudeCatalogParamsError(\"Claude CLI is unavailable\");\n    }\n    return {\n      kind: \"local\",\n      argv: [resolution.executable, \"--resume\", params.threadId],\n      ...(record.cwd ? { cwd: record.cwd } : {}),\n      ...(resolution.pathEnv ? { pathEnv: resolution.pathEnv } : {}),\n      title,\n    };\n  }\n  if (!params.hostId.startsWith(\"node:\")) {\n    throw new ClaudeCatalogParamsError(\"hostId is invalid\");\n  }\n  const nodeId = params.hostId.slice(\"node:\".length);\n  const node = (await params.api.runtime.nodes.list()).nodes.find((candidate) => {","sourceCodeStart":97,"sourceCodeEnd":133,"githubUrl":"https://github.com/openclaw/openclaw/blob/01804a75319da4b69c9ab98ceaa30477e22b8c0b/extensions/anthropic/session-catalog-terminal.ts#L97-L133","documentation":"Error \"Claude session transcript is unavailable\" thrown in openclaw/openclaw.","triggerScenarios":"Thrown at extensions/anthropic/session-catalog-terminal.ts:115 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":"01804a75319da4b69c9ab98ceaa30477e22b8c0b","analyzedAt":"2026-08-12T04:37:58.197Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}