Skip to content

Report actionable ChatGPT generation failures - #32

Merged
AlexBoliachiy merged 2 commits into
masterfrom
codex/chatgpt-generation-errors
Nov 16, 2026
Merged

AlexBoliachiy merged 2 commits into
masterfrom
codex/chatgpt-generation-errors

Conversation

@AlexBoliachiy

Copy link
Copy Markdown
Contributor

When ChatGPT rejects a generation request before producing an image, MōIcons currently discards the turn error and suggests checking image access or changing the description. For example, an older ChatGPT copy can accept sign-in but reject the selected model because it requires a newer client; retrying the prompt cannot resolve that failure.

Handle terminal error notifications and completed-turn errors to show actionable messages for outdated clients, usage limits, expired sign-in, and unavailable models. Unknown failures use safe generic wording without exposing raw server responses. Cancellation, completed images, and the existing no-repeat-generation behavior are preserved.

The app-layout detection fix is already merged in #26. This PR adds a regression covering the current running ChatGPT installation alongside an older mounted installer, without replacing that discovery implementation.

Validation:

  • 53 tests pass: node --test tests/codex.mjs tests/codex-discovery.mjs tests/codex-location.mjs tests/codex-startup.mjs.
  • npx --no-install tsc --noEmit, npm run dev:build, and npm run build pass with Node 22.23.4 and the committed dependencies.
  • A live read-only check selected /Applications/ChatGPT.app/Contents/Resources/codex-cli/bin/codex and confirmed the existing ChatGPT sign-in.
  • Regression cases cover outdated-client errors, limits, authentication, model availability, notification-only failures, interruption, recovered errors, temporary-directory cleanup, and no additional generation attempts.

Before release: verify end-to-end image generation from the signed/notarized installer. The local production build was unsigned.

@AlexBoliachiy AlexBoliachiy self-assigned this Nov 16, 2026
@AlexBoliachiy
AlexBoliachiy marked this pull request as ready for review November 16, 2026 13:48
@AlexBoliachiy
AlexBoliachiy merged commit f78e5d0 into master Nov 16, 2026
@AlexBoliachiy
AlexBoliachiy deleted the codex/chatgpt-generation-errors branch November 23, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants