{"record":{"id":"12758652ce0129a5","repo":"diegosouzapw/OmniRoute","slug":"aborted","errorCode":"aborted","errorMessage":"Device flow aborted","messagePattern":"Device flow aborted","errorType":"exception","errorClass":"CodexDeviceFlowError","httpStatus":null,"severity":"error","filePath":"src/lib/oauth/codexDeviceFlow.ts","lineNumber":95,"sourceCode":"  refresh_token: string;\n  id_token: string;\n  expires_in: number;\n}\n\ninterface RunOptions {\n  /** Public Codex CLI client id; defaults to the embedded public value. */\n  clientId?: string;\n  /** Called once the user code is obtained, so the UI can display / copy / open it. */\n  onUserCode?: (userCode: CodexUserCode) => void;\n  /** Abort the flow (e.g. modal closed). */\n  signal?: AbortSignal;\n  /** Override the overall timeout (defaults to 15 minutes). */\n  timeoutMs?: number;\n}\n\nfunction throwIfAborted(signal?: AbortSignal): void {\n  if (signal?.aborted) {\n    throw new CodexDeviceFlowError(\"aborted\", \"Device flow aborted\");\n  }\n}\n\nfunction delay(ms: number, signal?: AbortSignal): Promise<void> {\n  return new Promise((resolve, reject) => {\n    const timer = setTimeout(() => {\n      cleanup();\n      resolve();\n    }, ms);\n    const onAbort = () => {\n      cleanup();\n      reject(new CodexDeviceFlowError(\"aborted\", \"Device flow aborted\"));\n    };\n    function cleanup() {\n      clearTimeout(timer);\n      signal?.removeEventListener(\"abort\", onAbort);\n    }\n    if (signal) {","sourceCodeStart":77,"sourceCodeEnd":113,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/oauth/codexDeviceFlow.ts#L77-L113","documentation":"Error \"Device flow aborted\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/oauth/codexDeviceFlow.ts:95 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":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}