(error, i18n = createI18n())
| 20836 | } |
| 20837 | |
| 20838 | function formatCodexLoginError(error, i18n = createI18n()) { |
| 20839 | const message = formatUserError(error); |
| 20840 | if (/just a moment|cloudflare/iu.test(message) || /auth\.openai\.com\/oauth\/device\/code/iu.test(message)) { |
| 20841 | return i18n.t('coordinator.login.cloudflareBlocked'); |
| 20842 | } |
| 20843 | return truncateCoordinatorText(message, 240); |
| 20844 | } |
| 20845 | |
| 20846 | function readRecentCodexRuntimeError(logPath = path.join(os.homedir(), '.codex', 'log', 'codex-tui.log'), i18n = createI18n()) { |
| 20847 | try { |
no test coverage detected