{"record":{"id":"2b58dfaa6ea0a4f3","repo":"openclaw/openclaw","slug":"claude-cli-is-unavailable","errorCode":null,"errorMessage":"Claude CLI is unavailable","messagePattern":"Claude CLI is unavailable","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"extensions/anthropic/session-catalog-node-commands.ts","lineNumber":75,"sourceCode":"  return JSON.stringify(await listLocalClaudeSessionPage(parseNodeParams(paramsJSON)));\n}\n\nexport async function readClaudeSession(paramsJSON?: string | null): Promise<string> {\n  return JSON.stringify(await readLocalClaudeTranscriptPage(parseNodeParams(paramsJSON)));\n}\n\nexport async function resumeClaudeSession(\n  paramsJSON: string | null | undefined,\n  io: OpenClawPluginNodeHostCommandIo | undefined,\n): Promise<string> {\n  if (!io) {\n    throw new Error(\"Claude terminal command requires duplex transport\");\n  }\n  const params = decodeNodePtyResumeParams(paramsJSON, validateClaudeSessionId);\n  const record = await requireLocalResumableClaudeSession(params.threadId);\n  const resolution = resolveClaudeTerminalExecutable();\n  if (!resolution) {\n    throw new Error(\"Claude CLI is unavailable\");\n  }\n  return JSON.stringify(\n    await runNodePtyCommand(\n      {\n        file: resolution.executable,\n        args: [\"--resume\", params.threadId],\n        cwd: record.cwd,\n        ...(resolution.pathEnv ? { pathEnv: resolution.pathEnv } : {}),\n        cols: params.cols,\n        rows: params.rows,\n      },\n      io,\n    ),\n  );\n}\n","sourceCodeStart":57,"sourceCodeEnd":91,"githubUrl":"https://github.com/openclaw/openclaw/blob/01804a75319da4b69c9ab98ceaa30477e22b8c0b/extensions/anthropic/session-catalog-node-commands.ts#L57-L91","documentation":"Error \"Claude CLI is unavailable\" thrown in openclaw/openclaw.","triggerScenarios":"Thrown at extensions/anthropic/session-catalog-node-commands.ts:75 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-12T13:17:24.610Z"}