codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex just not working at all.

Open JarrettOneSource opened this issue 1 year ago โ€ข 16 comments

What version of Codex is running?

codex-cli 0.16.0

Which model were you using?

Any

What platform is your computer?

Windows Subsystem Linux Ubuntu 24.04 LTS

What steps can reproduce the bug?

I install ubuntu distro fresh I update the OS with build tools and what not I install nvm and npm and node I install codex

I run codex and when I say something to the agent nothing happens and after some time it throws the error.

What is the expected behavior?

I expect it to respond saying something.

What do you see instead?

jjohnson@Workstation20:/mnt/c/Users/David Johnson/Documents/GitHub$ codex -m "gpt-5"

>_ You are using OpenAI Codex in /mnt/c/Users/David Johnson/Documents/GitHub

 To get started, describe a task or try one of these commands:

 /init - create an AGENTS.md file with instructions for Codex
 /status - show current session configuration and token usage
 /diff - show git diff (including untracked files)
 /prompts - show example prompts

/status
๐Ÿ“‚ Workspace
  โ€ข Path: /mnt/c/Users/David Johnson/Documents/GitHub
  โ€ข Approval Mode: on-request
  โ€ข Sandbox: workspace-write

๐Ÿง  Model
  โ€ข Name: gpt-5
  โ€ข Provider: OpenAI
  โ€ข Reasoning Effort: Medium
  โ€ข Reasoning Summaries: Auto

๐Ÿ“Š Token Usage
  โ€ข Input: 0
  โ€ข Output: 0
  โ€ข Total: 0

user
test

๐Ÿ– error sending request for url (https://api.openai.com/v1/responses)

Additional information

If I install codex version v0.1.2505172129 it works like a charm on the same machine with nothing else different.

If I install v0.16.0 on Windows directly it works but the commands pop out a new powershell window every single time and it's goofy and the commands don't return anything to the model so it technically fails.

JarrettOneSource avatar Aug 07 '25 19:08 JarrettOneSource

I am seeing the same issue in Windows where it will try to run commands in a separate window, then say it can't access a sandbox even though WSL2 is running - have tried both docker and ubuntu backends - tested in their respective terminals and all files can be accessed, but codex always fails.

4r7 avatar Aug 08 '25 03:08 4r7

I'm also experiencing basic errors. It can write files, but not read them. Just in regular vscode's terminal, not in a dev container or remote server or something. Just my regular desktop.

25May2025 avatar Aug 08 '25 05:08 25May2025

Just upgraded Codex and not seeing responses whatsoever. The very same endpoint works with Cline. If I ask it about the project, I can see some output of attempting to run file system commands, but that is about it.

0.19.0

pdemro avatar Aug 08 '25 10:08 pdemro

The workaround I found is to uninstall codex and reinstall this specific version until they fix the newer versions.

npm uninstall -g @openai/codex
npm install -g @openai/[email protected]

JarrettOneSource avatar Aug 08 '25 12:08 JarrettOneSource

The codex app is unstable across all platforms. I've seen the configuration instructions on the README change several times, which is anecdotal evidence, sure, but you'd think they'd have this software more polished for the gpt-oss release. Of course local LLM users are going to immediately try running OpenAI's OSS model on OpenAI's OSS agentic CLI toolkit. It's a shame the cli toolkit wasn't in a more stable place when they released the model.

stickyfingies avatar Aug 12 '25 16:08 stickyfingies

Seeing this on Arch Linux as well. This might be a duplicate with https://github.com/openai/codex/issues/1995

pdemro avatar Aug 13 '25 09:08 pdemro

Looks like this is solved with 21 for me.

pdemro avatar Aug 13 '25 10:08 pdemro

The issue of it not doing anything is still present with me.

JarrettOneSource avatar Aug 13 '25 12:08 JarrettOneSource

The latest version is 0.22.0 and the version could behave much better. Could you try the latest version and let us know how it goes? You can upgrade the version by npm -g i @openai/codex@latest.

seratch avatar Aug 18 '25 13:08 seratch

It is still not working. I updated and sent a simply "Hi!" message and it times out.

jjohnson@Workstation20:/mnt/c/Users/David Johnson/Documents/GitHub/SmartSync2.0$ npm -g i @openai/codex@latest

added 6 packages, removed 217 packages, and changed 5 packages in 7s
jjohnson@Workstation20:/mnt/c/Users/David Johnson/Documents/GitHub/SmartSync2.0$ codex

>_ You are using OpenAI Codex in /mnt/c/Users/David Johnson/Documents/GitHub/SmartSync2.0

 To get started, describe a task or try one of these commands:

 /init - create an AGENTS.md file with instructions for Codex
 /status - show current session configuration and token usage
 /diff - show git diff (including untracked files)
 /prompts - show example prompts

user
Hi!

๐Ÿ– error sending request for url (https://api.openai.com/v1/responses)

/status
๐Ÿ“‚ Workspace
  โ€ข Path: /mnt/c/Users/David Johnson/Documents/GitHub/SmartSync2.0
  โ€ข Approval Mode: on-request
  โ€ข Sandbox: workspace-write
  โ€ข Session ID: 8649a652-0672-46d1-8bfa-8ba142662040

๐Ÿง  Model
  โ€ข Name: gpt-5
  โ€ข Provider: OpenAI
  โ€ข Reasoning Effort: Medium
  โ€ข Reasoning Summaries: Auto

๐Ÿ“Š Token Usage
  โ€ข Input: 0
  โ€ข Output: 0
  โ€ข Total: 0

โ–Œ Ask Codex to do anything
 โŽ send   Ctrl+J newline   Ctrl+C quit                                                                                                                                                                                                                                                                                                                                        ```

JarrettOneSource avatar Aug 18 '25 13:08 JarrettOneSource

thanks for sharing this. just in case, could you share the output of codex --version?

seratch avatar Aug 18 '25 13:08 seratch

jjohnson@Workstation20:/mnt/c/Users/David Johnson/Documents/GitHub/SmartSync2.0$ codex --version
codex-cli 0.22.0

JarrettOneSource avatar Aug 18 '25 14:08 JarrettOneSource

I think the last update that fixed the issue where commands would pop out a separate powershell window has fixed it so I can now run the most recent version directly on my Windows machine.

However the WSL version is still not working for me.

user
Hello
โš โ€Š stream error: error sending request for url (https://api.openai.com/v1/responses); retrying 1/5 in 216msโ€ฆ

โš โ€Š stream error: error sending request for url (https://api.openai.com/v1/responses); retrying 2/5 in 420msโ€ฆ

โš โ€Š stream error: error sending request for url (https://api.openai.com/v1/responses); retrying 3/5 in 864msโ€ฆ

โš โ€Š stream error: error sending request for url (https://api.openai.com/v1/responses); retrying 4/5 in 1.507sโ€ฆ

โš โ€Š stream error: error sending request for url (https://api.openai.com/v1/responses); retrying 5/5 in 3.438sโ€ฆ


๐Ÿ–โ€Š error sending request for url (https://api.openai.com/v1/responses)

โ–Œ Improve documentation in @filename
 โŽ send   Ctrl+J newline   Ctrl+T transcript   Ctrl+C quit          

JarrettOneSource avatar Aug 27 '25 13:08 JarrettOneSource

Works great on Windows now although the pwsh.exe commands seem to bypass the nice Linux parsing and what not "Exploring ...", "Reading ..." etc.

It still does not work at all on WSL. The older version I referenced earlier did work on WSL.

JarrettOneSource avatar Sep 16 '25 13:09 JarrettOneSource

Newest version tells me to run it on WSL windows for best performance but it still doesn't work lol

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ

  /init - create an AGENTS.md file with instructions for Codex
  /status - show current session configuration
  /approvals - choose what Codex can do without approval
  /model - choose what model and reasoning effort to use
  /review - review any changes and find issues

โ€ข Model changed to gpt-5 with high reasoning


โ€บ Look at the agent threads html page and ensure that attached images / files are supported on this page. I should be
  able to click to download images and other files from the agent thread page.


โš ๏ธโ€Šstream error: error sending request for url (https://api.openai.com/v1/responses); retrying 1/5 in 204msโ€ฆ

/status

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚  >_ OpenAI Codex (v0.45.0)                                                   โ”‚
โ”‚                                                                              โ”‚
โ”‚  Model:            gpt-5 (reasoning high, summaries auto)                    โ”‚
โ”‚  Directory:        /mnt/c/Users/David Johnson/Documents/GitHub/VanguardAI-v2 โ”‚
โ”‚  Approval:         never                                                     โ”‚
โ”‚  Sandbox:          danger-full-access                                        โ”‚
โ”‚  Agents.md:        AGENTS.md                                                 โ”‚
โ”‚  Account:          API key configured (run codex login to use ChatGPT)       โ”‚
โ”‚  Session:          0199bf8b-b5d0-7f43-a30d-83eb8c4ec4ec                      โ”‚
โ”‚                                                                              โ”‚
โ”‚  Token usage:      0 total  (0 input + 0 output)                             โ”‚
โ”‚  Context window:   100% left (0 used / 272K)                                 โ”‚
โ”‚  Limits:           send a message to load usage data                         โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

โ—ฆ Working (52s โ€ข esc to interrupt)


โ€บ Explain this codebase

  ? for shortcuts

JarrettOneSource avatar Oct 07 '25 16:10 JarrettOneSource

Please open new issues specifically for frictions on windows. Going to mark this one as closed as other issues referenced here should all be resolved.

tibo-openai avatar Oct 17 '25 05:10 tibo-openai