Skip to content

Still unusable for daily work on 💙 Windows #2794

Closed

Description

@tomasmarekk

What version of Codex is running?

codex-cli 0.25.0

Which model were you using?

gpt-5

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What steps can reproduce the bug?

Codex CLI is still unusable for me on Windows, even though the model is excellent. I hoped it would be fixed in version 0.25.0, but unfortunately it was not.

Here are the problems:

  • Pasting images into the command line does not work
  • The apply_patch safety gate cannot be disabled, every file change asks for confirmation
  • Copying Windows paths does not work, backslashes get stripped

Without fixes for these three, I cannot use Codex on Windows in a professional setting. Please assign a higher priority to this.

Image Image Image

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Activity

  1. added
    bug
    on Aug 27, 2025
  2. jamneutrino commented on Aug 28, 2025

    @jamneutrino

    Yea windows version has never worked imo use WSL and run it through linux.

    Images dont work but the rest of it works solid

  3. tomasmarekk commented on Aug 28, 2025

    @tomasmarekk
    Author

    I tried installing the IDE extension, and it fixes the path issue and also allows pasting images (the model really reads them, tested).

    However, the safety gate still cannot be disabled. So this is a temporary workaround for 2/3 problems.

    Image

    @jamneutrino

    Yea windows version has never worked imo use WSL and run it through linux.

    Images dont work but the rest of it works solid

    Sure, WSL is an option, but it is not native support. It is a workaround in a sandboxed Linux environment. I also run into many issues there with MCP servers that I run locally. For example, Playwright MCP does not work properly with the Chromium browser in WSL, etc. That is why native support needs to be improved.

  4. jamneutrino commented on Aug 28, 2025

    @jamneutrino

    I tried installing the IDE extension, and it fixes the path issue and also allows pasting images (the model really reads them, tested).

    However, the safety gate still cannot be disabled. So this is a temporary workaround for 2/3 problems.

    Image [@jamneutrino](https://github.com/jamneutrino)

    Yea windows version has never worked imo use WSL and run it through linux.
    Images dont work but the rest of it works solid

    Sure, WSL is an option, but it is not native support. It is a workaround in a sandboxed Linux environment. I also run into many issues there with MCP servers that I run locally. For example, Playwright MCP does not work properly with the Chromium browser in WSL, etc. That is why native support needs to be improved.

    How do you get the codex extension to even see your repo?

    im getting:

    I tried to scan the repo, but shell access isn’t available in this session, so I can’t read the files to identify it yet.

    If you paste the top-level file list (and any README), I can tell you exactly what this project is. Quick ways to gather that:

    PowerShell (top-level): Get-ChildItem -Force
    PowerShell (key manifests): Get-ChildItem -Recurse -File -Name | Select-String -Pattern 'README|package.json|pnpm-lock|yarn.lock|pyproject.toml|poetry.lock|requirements.txt|Pipfile|go.mod|Cargo.toml|Gemfile|composer.json|Dockerfile|Makefile|vite.config|next.config|angular.json|astro.config|nuxt.config|gatsby-config|svelte.config'
    Show contents if present: type README*, type package.json, type pyproject.toml, etc.
    What I’ll look for:

    package manifests (e.g., package.json, pyproject.toml, go.mod) to detect language/framework
    framework markers (e.g., next.config.mjs, vite.config.ts, astro.config.mjs)
    build/deploy files (Dockerfile, Makefile, CI configs)
    app structure (e.g., src/, pages/, public/, templates/)
    Share that output (or the README), and I’ll summarize the project clearly.

  5. added
    windows-os
    on Aug 28, 2025
  6. bolinfest commented on Aug 28, 2025

    @bolinfest
    Collaborator

    @marektomas-cz Windows is not my primary OS, but I am invested in making Codex work well on Windows, so to help me understand:

    • Is cmd.exe your primary shell (as opposed to PowerShell)
    • Do you expect Codex to run "batch scripts" and/or PowerShell scripts?
    • Do you have Git for Windows installed such that you have Git Bash installed and expect Codex to be able to use POSIX utilities?
  7. tomasmarekk commented on Aug 28, 2025

    @tomasmarekk
    Author

    @bolinfest

    • I use Nushell, but I see the same problem in any shell on Windows, so this is not related to the shell.
      // I am not sure I fully understand the other questions or how they relate. Git for Windows is installed.

    The problem is in "codex-rs/apply-patch/src/lib.rs". The check looks for apply_patch at index 0, but in a Windows shell index 0 is pwsh, so the check never passes.

    pwsh is there because of the bridge defined in "codex-rs/core/src/shell.rs".

    So I think the fix is to update "codex-rs/apply-patch/src/lib.rs" so it does not only look for apply_patch at index 0, but instead walks the AST and finds the apply_patch call even when it is inside the shell.

    If you need any other details, let me know.

  8. aibrahim-oai commented on Sep 8, 2025

    @aibrahim-oai
    Contributor

    Those should be fixed.

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

Metadata

Metadata

Labels

bugwindows-os

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions