{"record":{"id":"90f96af9f3ab530c","repo":"openclaw/openclaw","slug":"codex-app-server-auth-profile-profileid-was-n","errorCode":null,"errorMessage":"Codex app-server auth profile \"${profileId}\" was not found.","messagePattern":"Codex app-server auth profile \"(.+?)\" was not found\\.","errorType":"exception","errorClass":"CodexAppServerAuthProfileUnavailableError","httpStatus":null,"severity":"error","filePath":"extensions/codex/src/app-server/auth-bridge.ts","lineNumber":683,"sourceCode":"}\n\nclass CodexAppServerAuthProfileUnavailableError extends Error {}\n\nasync function resolveCodexAppServerAuthProfileLoginParams(params: {\n  agentDir: string;\n  authProfileId?: string;\n  authProfileStore?: AuthProfileStore;\n  config?: AuthProfileOrderConfig;\n}): Promise<CodexLoginAccountParams | undefined> {\n  const store = resolveCodexAppServerAuthProfileStore(params);\n  const profileId = resolveCodexAppServerAuthProfileId({\n    authProfileId: params.authProfileId,\n    store,\n    config: params.config,\n  });\n  const profile = profileId ? store.profiles[profileId] : undefined;\n  if (profileId && !profile) {\n    throw new CodexAppServerAuthProfileUnavailableError(\n      `Codex app-server auth profile \"${profileId}\" was not found.`,\n    );\n  }\n  if (profileId && profile && !isCodexAppServerAuthProfileCredential(profile)) {\n    throw new CodexAppServerAuthProfileUnavailableError(\n      `Codex app-server auth profile \"${profileId}\" must use the canonical OpenAI auth provider; run \"openclaw doctor --fix\" to migrate legacy provider IDs.`,\n    );\n  }\n  return await resolveCodexAppServerAuthProfileLoginParamsInternal({\n    ...params,\n    authProfileStore: store,\n  });\n}\n\nexport async function refreshCodexAppServerAuthTokens(params: {\n  agentDir: string;\n  authProfileId?: string;\n  authProfileStore?: AuthProfileStore;","sourceCodeStart":665,"sourceCodeEnd":701,"githubUrl":"https://github.com/openclaw/openclaw/blob/01804a75319da4b69c9ab98ceaa30477e22b8c0b/extensions/codex/src/app-server/auth-bridge.ts#L665-L701","documentation":"Error \"Codex app-server auth profile \"${profileId}\" was not found.\" thrown in openclaw/openclaw.","triggerScenarios":"Thrown at extensions/codex/src/app-server/auth-bridge.ts:683 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-13T14:17:21.547Z"}