Skip to content

[Windows desktop] File/image downloads fail with "Attempted to redirect, but redirect policy was 'error'" #53301

Open

Description

@KingOneSowrd

Summary

Downloads in the Codex Windows desktop client fail: clicking download shows a spinner and then returns to the original icon without saving the file. Local diagnostics on 2026-10-12 found seven image-download failures with the same error:

Attempted to redirect, but redirect policy was 'error'

The logged request entry host is chatgpt.com. The redirect destination is not present in the inspected logs, so I cannot tell whether this is an expected file redirect, an authentication redirect, or a network-related redirect. Please investigate the desktop download handler and provide a supported recovery path.

Environment and evidence limits

  • Native Windows desktop client.
  • The inspected logs include version string 0.162.0-alpha.17.2. This is a log-reported component version, not a verified About-dialog desktop build number.
  • Diagnostics were performed on 2026-10-12, approximately 07:05–07:32 UTC.
  • The download failure was previously observed by the user. This diagnostic pass inspected existing client failures; a fresh native-UI click could not be performed because remote UI tooling failed separately.
  • The seven matched log entries concern image downloads. We have not established that archive downloads have the identical error.

Network checks

  • A local proxy is configured; its listening port was reachable during an approved diagnostic run, and the actual file-download hostname resolved.
  • One actual-file HEAD request ended with URLError / SSLEOFError, without an HTTP status. That request's link was not expired at the time. This is insufficient to establish a VPN/proxy root cause.
  • No VPN, proxy, DNS, firewall, WinNAT, certificate, or security-policy configuration was changed.

Separate fallback failures

These blocked alternative diagnosis/download routes, but are not being asserted as the cause of the desktop redirect error:

  1. The current official Library consumer failed downloading a small 287,191-byte bundle at the metadata/identity-binding stage with AttributeError: module 'os' has no attribute 'setxattr'. No completed destination file was available to verify. This matches [Windows] Official Library transfer helper crashes on os.setxattr, blocking metadata-preserving materialization #49767.
  2. Native remote UI tooling failed to start with a missing Windows platform directory / 0x80070003, similar to [Windows] dot-started local tasks lack Computer Use tools while ordinary local Codex sessions work #49458. The built-in browser download navigation also failed.

The Library helper was not patched, and required metadata checks were not removed. No app files were modified or system services stopped.

Expected behavior

A supported download action should save the file successfully, or expose an actionable error. If the redirect is intentionally rejected, please identify the supported download path and whether this needs a client update, authentication refresh, or another specific action.

Please also clarify which desktop build/component version is needed for triage. This report deliberately excludes private file IDs, file contents, signed URLs, cookies, tokens, personal filesystem paths, and account details.

Activity

  1. added
    bug
    app
    windows-os
    connectivity
    on Oct 12, 2026
  2. github-actions commented on Oct 12, 2026

    @github-actions
    Contributor
  3. ccfly-hub commented on Nov 12, 2026

    @ccfly-hub

    Additional reproduction on Windows 11:

    Application version: OpenAI.Codex 26.1103.7773.0

    Observed behavior:

    • Generated ZIP and PNG attachments cannot be downloaded or previewed in the Codex Windows desktop app.
    • The UI reports "Unable to download — authorization required".
    • The same attachments work correctly in standalone Microsoft Edge using the same account.

    Relevant log entry:

    DIL response action failed errorMessage="Attempted to redirect, but redirect policy was 'error'"

    The error originates from the desktop app's async JavaScript bundle (app://-/assets/async/...).

    Troubleshooting already performed:

    • Restarted the application.
    • Signed out and signed back in.
    • Checked for application updates.
    • Used Windows Settings > Apps > Advanced options > Repair.
    • Verified that the same files download and preview successfully in standalone Edge.

    The issue persists after all these steps.

    Could the team confirm whether this is the same redirect-handling regression and provide a fixed build or a supported workaround?

    No private file IDs, signed URLs, cookies, tokens, or account credentials are included.

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

    appbugconnectivitywindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions