{"record":{"id":"e910f650089c6b1c","repo":"earendil-works/pi","slug":"login-cancelled-e910f6","errorCode":null,"errorMessage":"Login cancelled","messagePattern":"Login cancelled","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/coding-agent/src/modes/interactive/interactive-mode.ts","lineNumber":5835,"sourceCode":"\t\t\t);\n\t\t\tthis.editorContainer.clear();\n\t\t\tthis.editorContainer.addChild(selector);\n\t\t\tthis.ui.setFocus(selector);\n\t\t\tthis.ui.requestRender();\n\t\t});\n\t}\n\n\tprivate async showAuthPrompt(dialog: LoginDialogComponent, prompt: AuthPrompt): Promise<string> {\n\t\tlet response: Promise<string>;\n\t\tif (prompt.type === \"select\") {\n\t\t\tresponse = this.showAuthSelect(dialog, prompt);\n\t\t} else if (prompt.type === \"manual_code\") {\n\t\t\tresponse = dialog.showManualInput(prompt.message);\n\t\t} else {\n\t\t\tresponse = dialog.showPrompt(prompt.message, prompt.placeholder);\n\t\t}\n\t\tif (!prompt.signal) return response;\n\t\tif (prompt.signal.aborted) throw new Error(\"Login cancelled\");\n\t\tconst signal = prompt.signal;\n\t\tlet onAbort: (() => void) | undefined;\n\t\tconst aborted = new Promise<string>((_resolve, reject) => {\n\t\t\tonAbort = () => reject(new Error(\"Login cancelled\"));\n\t\t\tsignal.addEventListener(\"abort\", onAbort, { once: true });\n\t\t});\n\t\ttry {\n\t\t\treturn await Promise.race([response, aborted]);\n\t\t} finally {\n\t\t\tif (onAbort) signal.removeEventListener(\"abort\", onAbort);\n\t\t}\n\t}\n\n\tprivate notifyAuthDialog(dialog: LoginDialogComponent, event: AuthEvent): void {\n\t\tif (event.type === \"auth_url\") {\n\t\t\tdialog.showAuth(event.url, event.instructions);\n\t\t} else if (event.type === \"device_code\") {\n\t\t\tdialog.showDeviceCode(event);","sourceCodeStart":5817,"sourceCodeEnd":5853,"githubUrl":"https://github.com/earendil-works/pi/blob/4af9d21d3b4d664e4a29fcabfec85171077248e3/packages/coding-agent/src/modes/interactive/interactive-mode.ts#L5817-L5853","documentation":"Error \"Login cancelled\" thrown in earendil-works/pi.","triggerScenarios":"Thrown at packages/coding-agent/src/modes/interactive/interactive-mode.ts:5835 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":"4af9d21d3b4d664e4a29fcabfec85171077248e3","analyzedAt":"2026-08-24T13:07:14.692Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}