{"record":{"id":"0771b01f4a68057d","repo":"openclaw/openclaw","slug":"codex-runtime-launcher-uses-unsupported-interprete","errorCode":null,"errorMessage":"Codex runtime launcher uses unsupported interpreter arguments","messagePattern":"Codex runtime launcher uses unsupported interpreter arguments","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"extensions/codex/src/app-server/runtime-artifact.ts","lineNumber":512,"sourceCode":"  env: NodeJS.ProcessEnv;\n  cwd: string;\n  nativeCommand?: string;\n}): Promise<string[]> {\n  const paths = [params.commandRealPath];\n  const shebang = await readShebang(params.commandRealPath);\n  if (!shebang) {\n    return paths;\n  }\n  if (!params.nativeCommand) {\n    throw new Error(\n      \"Codex runtime cannot attest a custom script launcher without its native target\",\n    );\n  }\n  const interpreter = await resolveCommandPath(shebang[0]!, params.env, params.cwd);\n  paths.push(await fs.realpath(interpreter));\n  if (path.basename(interpreter) !== \"env\") {\n    if (shebang.length !== 1) {\n      throw new Error(\"Codex runtime launcher uses unsupported interpreter arguments\");\n    }\n    return paths;\n  }\n  const envArgs = shebang.slice(1);\n  const commandIndex = envArgs[0] === \"-S\" ? 1 : 0;\n  const target = envArgs[commandIndex];\n  if (!target || target.startsWith(\"-\") || envArgs.length !== commandIndex + 1) {\n    throw new Error(\"Codex runtime launcher uses unsupported env arguments\");\n  }\n  const targetPath = await resolveCommandPath(target, params.env, params.cwd);\n  paths.push(await fs.realpath(targetPath));\n  return paths;\n}\n\nasync function resolvePackageRoot(nativePath: string): Promise<string | undefined> {\n  const binDir = path.dirname(nativePath);\n  if (path.basename(binDir) !== \"bin\") {\n    return undefined;","sourceCodeStart":494,"sourceCodeEnd":530,"githubUrl":"https://github.com/openclaw/openclaw/blob/01804a75319da4b69c9ab98ceaa30477e22b8c0b/extensions/codex/src/app-server/runtime-artifact.ts#L494-L530","documentation":"Error \"Codex runtime launcher uses unsupported interpreter arguments\" thrown in openclaw/openclaw.","triggerScenarios":"Thrown at extensions/codex/src/app-server/runtime-artifact.ts:512 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"}