Skip to content

Built-in image generation repeatedly fails with network error after July 9 desktop update #32297

Open

Description

@woodenxyz

What version of the Codex App are you using?

Current Codex Desktop build installed after the July 9, 2026 update. The exact About-dialog version was not available in this session.

What subscription do you have?

ChatGPT subscription using the normal Codex Desktop sign-in.

What platform is your computer?

macOS, Apple Silicon.

What issue are you seeing?

The built-in image_gen tool repeatedly fails while sending the generation request to the Codex image endpoint.

The returned error is:

image generation failed: network error: error sending request for url
(https://chatgpt.com/backend-api/codex/images/generations)

Ordinary text conversations and other Codex operations continue to work in the same session. This appears specific to the built-in image-generation route rather than a general loss of connectivity.

Two separate image-generation attempts failed in the same way. Each request remained in a generating state for several minutes before returning the network error.

What steps can reproduce the bug?

  1. Open Codex Desktop.
  2. Start a normal local task.
  3. Ask Codex to use its built-in image generation tool to create a new image.
  4. The request stays in the generating state for several minutes.
  5. It eventually fails with the network error shown above.
  6. Retry with a different, shorter prompt; the same failure occurs.

What is the expected behavior?

The built-in image generation request should complete and display or save the generated image. If the image service is unavailable, the app should fail promptly with a useful status instead of waiting several minutes.

Additional information

Activity

  1. added
    bugSomething isn't working
    appIssues related to the Codex desktop app
    connectivityIssues involving networking or endpoint connectivity problems (disconnections)
    on Jul 11, 2026
  2. LastFlowerSociety commented on Jul 11, 2026

    @LastFlowerSociety

    Same issue.

  3. weijie-he commented on Jul 11, 2026

    @weijie-he

    Same issue.

  4. leo678910 commented on Jul 12, 2026

    @leo678910

    same issue

  5. zq123123667 commented on Jul 13, 2026

    @zq123123667

    same issue

  6. zmq2163 commented on Jul 13, 2026

    @zmq2163

    same issue, anybody solve it?

  7. jfbergado commented on Jul 13, 2026

    @jfbergado

    I got same issue, my alternative is Product Design plugin to generate image.

  8. ivanchiu12 commented on Jul 14, 2026

    @ivanchiu12

    same here

  9. acsghsc commented on Jul 14, 2026

    @acsghsc

    Same issue here (Windows 11 Pro, CLI 0.142.4 / desktop 26.707.8168.0, started ~July 13 after auto-update). I did some local log digging and found what appears to be the root cause — it may not actually be a network problem. Full analysis in #32937 (also related: #32440).

    Summary:

    1. .codex/.sandbox/sandbox.<date>.log shows the sandbox setup failing repeatedly with SetNamedSecurityInfoW failed: 5 (ERROR_ACCESS_DENIED) when granting write ACEs on project folders and even read ACEs on Codex's own install dir under C:\Program Files\WindowsApps\. Zero occurrences in logs before the update, dozens per day after.

    2. Windows Application event log (Event ID 1509) shows the trigger: the sandbox now provisions dedicated local accounts (CodexSandboxOnline / CodexSandboxOffline), and profile initialization for them fails while copying TrustedInstaller-protected WindowsApps app-execution-alias reparse points from C:\Users\Default ("Access is denied").

    3. The broken sandbox then can't run any tool — image generation surfaces this as a generic "network error" (the request likely never leaves the machine), and file-reading tools fail with "tool execution environment failed to start".

    Ruled out on my machine: antivirus/Controlled Folder Access (none active), proxy (none), TCP 443 connectivity to chatgpt.com/api.openai.com (fine). Reinstalling / running elevated does not help, consistent with reports here.

  10. Evolan-wu commented on Jul 15, 2026

    @Evolan-wu

    same issue

  11. InfiniteRandomVariable commented on Jul 15, 2026

    @InfiniteRandomVariable

    Temporarily solution is to use Gpt-5.5 for image generating tasks by reverting back to pre GPT-5.6 versions such as 0.138 or equivalent. The 0.144 is highly unstable, sometimes work, mostly not working for imagegen.

  12. tuantuanmeow commented on Jul 15, 2026

    @tuantuanmeow

    I used Qoder to fix the Codex, and it seems to be working.

    C:\Users\admin.codex\config.toml
    find:
    [windows]
    sandbox = "elevated"

    change to:
    [windows]
    sandbox = "unelevated"

    This can bypass the problematic sandbox permission initialization. Note: This will reduce the security of sandbox isolation, but can restore image generation functionality, suitable as a temporary solution before waiting for an official fix.

  13. xm2by commented on Jul 15, 2026

    @xm2by

    same issue

  14. waitingformywind commented on Jul 15, 2026

    @waitingformywind

    Additional Windows reproduction on 2026-07-15.

    Environment

    • Codex Desktop: 26.707.9981.0
    • Windows NT build: 26200.8655, x64
    • Built-in image_gen using the normal ChatGPT sign-in (no API/CLI fallback)
    • Windows sandbox config: [windows] sandbox = "elevated"

    Observed behavior

    A new-image request with no reference images and an ordinary prompt remained in the generating state for roughly 3–4 minutes, then failed with the exact error reported here:

    image generation failed: network error: error sending request for url
    https://chatgpt.com/backend-api/codex/images/generations
    

    Normal Codex conversation and other tools continued to work in the same task.

    Read-only checks

    • An unauthenticated HEAD request reached the same endpoint and returned HTTP 403, so basic DNS/TCP/TLS connectivity to chatgpt.com was available.
    • The three most recent Windows sandbox logs contained zero occurrences of:
      • SetNamedSecurityInfoW failed: 5
      • setup refresh had errors
      • helper_unknown_error
      • ERROR_ACCESS_DENIED
    • Those logs contained three successful WFP setup entries for the sandbox.
    • No Windows Application Event ID 1509 matching CodexSandboxOnline or CodexSandboxOffline was found in the previous seven days.

    This confirms that the failure is still reproducible on a newer Desktop build. On this machine it does not match the sandbox-account provisioning failure described in #32937, so there may be more than one failure mode behind the same generic image-generation network error. The original report here is also on macOS.

    It would help if the app exposed the underlying HTTP/auth/service error or a request correlation ID instead of collapsing these failures into a generic network error.

  15. okokelly commented on Jul 19, 2026

    @okokelly

    same issue today with my Mac version codex

  16. tapingdance commented on Jul 21, 2026

    @tapingdance

    same issue

  17. yangcai0731 commented on Jul 23, 2026

    @yangcai0731

    Additional macOS reproduction on 2026-07-23.

    Environment

    • ChatGPT/Codex desktop app: 26.715.72359 (build 5718)
    • Bundled Codex CLI: 0.145.0-alpha.30
    • macOS: 15.4 (build 24E248)
    • Architecture: Apple Silicon / arm64
    • Image path: built-in Codex image generation; no API-key fallback

    Observed behavior

    A built-in image-generation request fails with the same caller-visible error reported in this issue:

    image generation failed: network error: error sending request for url
    https://chatgpt.com/backend-api/codex/images/generations
    

    Normal Codex text conversation remains usable. The caller-visible failure is limited to the built-in image-generation request.

    This app/runtime combination is newer than several builds already reported in this thread, so the problem remains reproducible on a later macOS build. The generic error does not expose an HTTP status, backend reason, or request/correlation ID, making it impossible to distinguish transport failure, queue timeout, rate limiting, authentication, or result-delivery failure from the client side.

    Please expose the underlying structured error or a safe request ID, and investigate the Codex-specific image-generation request lifecycle.

  18. tonycky commented on Jul 24, 2026

    @tonycky
  19. Mindy2000 commented on Jul 26, 2026

    @Mindy2000

    I have the same issue, and my version is the latest one. Sometimes it works, sometimes not

  20. njiangk commented on Jul 29, 2026

    @njiangk

    Additional reproduction from macOS on 2026-07-29 (UTC+8).

    Environment

    • Product: Codex Desktop / ChatGPT-authenticated built-in image_gen
    • OS: macOS 27.0 (build 26A5388g), Apple Silicon (arm64)
    • Codex CLI/runtime visible in the environment: 0.145.0
    • Exact Desktop host build was not exposed by the current environment
    • No OPENAI_API_KEY was used; this was the built-in image tool

    Observed behavior

    A complete text-only UI concept generation succeeded once earlier in the same workflow. After that, at least seven attempts failed across both endpoints:

    image generation failed: network error: error sending request for url
    (https://chatgpt.com/backend-api/codex/images/generations)
    

    and, when editing the previously generated local PNG:

    image generation failed: network error: error sending request for url
    (https://chatgpt.com/backend-api/codex/images/edits)
    

    The failures reproduced with:

    • a detailed UI mockup prompt;
    • a shorter equivalent prompt;
    • text-only generations with no reference images;
    • an edit using a readable PNG produced by an earlier successful built-in generation;
    • retries across multiple turns.

    Normal Codex conversation, shell tools, web access, and GitHub operations continued to work.

    Local connectivity checks

    Unauthenticated probes from the same Mac showed that the relevant hosts were reachable:

    • chatgpt.com/backend-api/codex/images/generations: DNS/TCP/TLS completed; HTTP 403 without session credentials, as expected for an unauthenticated probe
    • api.openai.com/v1/models: DNS/TCP/TLS completed; HTTP 401 without an API key
    • status.openai.com: HTTP 200
    • OpenAI's public status page reported no known incident at the time

    These probes do not validate the authenticated long-running image request, but they make a general local DNS/TLS outage less likely.

    Impact and request

    This blocks a UI redesign workflow that requires an image concept before implementation. Please investigate whether the built-in image route is intermittently losing ChatGPT authentication/entitlement state, timing out in the image backend, or collapsing a structured backend response into a generic transport error.

    It would help if failures exposed a safe correlation/request ID, the underlying HTTP/status category, and retry guidance rather than only error sending request for url.

  21. JarvisArt commented on Jul 29, 2026

    @JarvisArt

    I'm encountering the same issue; I hope it can be fixed quickly.

  22. seancheung commented on Aug 1, 2026

    @seancheung

    Can't generate a single image in the mac desktop app. I have to interrupt it and ask for the prompts to generate images on website and copy it back. So annoying. When will this be fixed?

  23. tf511421-ctrl commented on Aug 13, 2026

    @tf511421-ctrl

    同样的问题

  24. 1968532942-collab commented on Aug 13, 2026

    @1968532942-collab

    I can reproduce what appears to be the same issue on the Codex Windows App.

    Environment:

    • Codex App: 26.803.10989.0
    • Windows 11 Home 25H2, OS Build 26200.9168
    • ChatGPT Plus

    Previously, built-in image generation usually completed in about 2 minutes. Recently, the same type of image-generation task often takes 20+ minutes. Sometimes it eventually succeeds, while other attempts fail with a network send error.

    I have observed failures on both routes:

    /codex/images/generations → network send failed

    /codex/images/edits → network send failed

    Additional troubleshooting:

    • Restarting Codex does not help.
    • Signing out and back in does not help.
    • The same Codex image-generation issue reproduces on another computer using the same account.
    • Image generation in regular ChatGPT works normally with the same account and completes at normal speed.
    • Normal Codex conversations continue to work.

    So this does not appear to be limited to macOS, and in my case the issue affects Windows as well. The requests sometimes eventually succeed after 20+ minutes rather than always failing immediately.

  25. cph748963966 commented on Sep 4, 2026

    @cph748963966

    Additional macOS reproduction with unusually consistent ~5-minute failures.

    Environment

    • ChatGPT/Codex desktop app: 26.901.20858 (build 7658)
    • Bundled Codex CLI: 0.153.0-alpha.5
    • macOS 26.6.1 (build 25G76), Apple Silicon (arm64)
    • ChatGPT-authenticated built-in image_gen; no API-key fallback

    Observed behavior

    On 2026-09-04, built-in image generation repeatedly failed after approximately 5 minutes with:

    image generation failed: network error: error sending request for url
    (https://chatgpt.com/backend-api/codex/images/generations)
    

    A fresh diagnostic generation used a text-only, policy-safe historical illustration prompt with no reference images. It remained in progress for about 303 seconds, then returned the same network error.

    Earlier attempts in the same environment showed the same pattern on both routes:

    • images/generations: failures after approximately 310, 310, and 326 seconds
    • images/edits: failures after approximately 311 and 312 seconds

    There was no moderation-blocked result, HTTP status, structured backend reason, or safe request/correlation ID in the caller-visible failure.

    Useful comparison

    This is intermittent rather than a total loss of image capability:

    • In another Codex project, three built-in text-only image generations completed successfully in approximately 60, 128, and 189 seconds.
    • Three built-in image edits also completed successfully in approximately 52, 55, and 123 seconds.
    • ChatGPT web image generation completed successfully for the same intended historical-comic page on the same Mac and network.
    • Ordinary Codex conversations and local tools continued to work.

    The successfully returned PNG was about 3.0 MiB, only modestly larger than successful Codex-generated images, so result size alone does not explain the failures.

    Request

    Please investigate whether the Codex-specific image request is being terminated by an upstream/backend deadline near 300 seconds, or whether a completed result is being lost during response delivery. It would help to:

    1. expose a safe image request/correlation ID and structured failure category;
    2. distinguish backend deadline, client transport timeout, authentication, and result-download failures;
    3. support a pollable/background image job or a configurable image-request timeout;
    4. document whether retrying can create a completed but orphaned image job.

    I can provide narrowly scoped, redacted timestamps if a maintainer identifies the exact diagnostic fields needed.

  26. yxspace commented on Sep 5, 2026

    @yxspace

    Additional macOS reproduction on Sep 5, 2026.

    Environment

    • Codex desktop app: 26.901.41123
    • macOS, Apple Silicon
    • ChatGPT-authenticated built-in image_gen; no API-key fallback

    Observed behavior

    • Multiple consecutive attempts to generate a square, text-only ecommerce poster with no reference images.
    • Tried both a detailed prompt and a substantially shortened prompt.
    • Each request remained pending for roughly 2–5 minutes, then failed with the exact error:
    image generation failed: network error: error sending request for url (https://chatgpt.com/backend-api/codex/images/generations)
    

    Ordinary Codex operations and browser access continued to work during the failures. No generated image file was returned or saved. The prompt was a benign Excel learning-material poster and explicitly avoided logos, fake sales, and outcome claims.

    This looks consistent with an intermittent Codex image endpoint/backend deadline or response-delivery problem rather than a general local connectivity or prompt-policy issue. A structured failure reason, request ID, and retry guidance would make this much easier to diagnose.

  27. flickerfox commented on Sep 5, 2026

    @flickerfox

    Additional macOS reproduction in Work (local task): built-in image editing repeatedly fails

    Environment

    • Desktop app: 26.901.41123
    • Bundled Codex runtime: 0.153.3
    • Platform: macOS, Apple Silicon
    • Context: the Work experience in the ChatGPT desktop app, running a local Codex task on the Mac, not Work Cloud or an ordinary ChatGPT Chat conversation
    • Authentication: normal ChatGPT sign-in; built-in image tool, not the public Image API
    • Reproduced: September 5–6, 2026

    Observed behavior

    Multiple attempts to edit one valid, readable JPEG with the built-in image tool inside this Work/local task failed after several minutes. No edited image or partial result was returned. Text conversation within the task and local tools continued to work.

    This report concerns the Work/local-task image tool specifically. A same-image comparison with ordinary ChatGPT Chat has not yet been performed in this environment. The Work context is supplied for routing and reproduction, not as a confirmed cause.

    The exact error was:

    image generation failed: network error: error sending request for url (https://chatgpt.com/backend-api/codex/images/edits)
    

    One instrumented call showed five internal request failures roughly 61–63 seconds apart, producing a total wait of about five minutes. This means the overall duration should not be assumed to represent one continuous five-minute generation. The client reported failure before receiving HTTP response headers and did not expose a status code, detailed transport cause, or image request/job ID.

    Expected behavior / request

    Please investigate the built-in image-edit request lifecycle and expose a structured failure reason and a safe correlation ID. If a job can continue after the connection ends, a way to resume or retrieve its result would help avoid repeating the entire request.

    No images, account identifiers, local paths, session transcripts, or raw logs are attached. The exact underlying cause has not been established.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)imagen

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions