codex icon indicating copy to clipboard operation
codex copied to clipboard

Error creating task or Error starting conversation

Open Urkman opened this issue 10 months ago • 14 comments

What version of Codex is running?

VS Code extension version: 0.5.58

What subscription do you have?

ChatGPT Pro

Which model were you using?

gpt-5.2-codex low

What platform is your computer?

MacOS 26.2

What issue are you seeing?

When I start a prompt, I only get one of the two messages: "Error creating task" or "Error starting conversation".

Two days ago it was working fine and without any change on the project it stoped working. Codex CLI is working for the same project. And also the VS Code extension is working for an other project.

I tried a lot:

  • logout / login
  • disable / enable extension
  • disable Copilot extension

What steps can reproduce the bug?

  • Open project
  • execute a prompt
  • or open an old task

What is the expected behavior?

No response

Additional information

No response

Urkman avatar Jan 09 '26 21:01 Urkman

If you're able to repro this, please use the /feedback slash command to upload your logs and session data and post your thread ID here. We'll need this additional information to help diagnose the problem you're seeing.

etraut-openai avatar Jan 09 '26 22:01 etraut-openai

Did you try restarting the Codex IDE extension? It sounds like that instance of the extension is in a bad state.

etraut-openai avatar Jan 09 '26 22:01 etraut-openai

Yes, restarted all. Extension, VS Code, Mac. Nothing helps.

Thread ID: 019ba4ab-a7f6-7523-a929-47325cf6f6e4

Urkman avatar Jan 09 '26 22:01 Urkman

The logs weren't of much help unfortunately.

By any chance, are you trying to start a cloud task? That would explain why I'm not seeing any relevant local logs. In the lower left part of the extension panel, you should see a menu that allows you to select between cloud environments and your local workspace. Unless you intend to start a cloud task, make sure this is set to "Local Workspace".

etraut-openai avatar Jan 10 '26 00:01 etraut-openai

No, it's a local task. A cloud task is working, but only one time, a followup als gives an error.

Urkman avatar Jan 10 '26 09:01 Urkman

Here is a small video showing the problem. https://github.com/user-attachments/assets/e6742199-d06a-4f14-8dda-8c3936dc822d

Urkman avatar Jan 10 '26 10:01 Urkman

I found the problem with the help of Codex CLI 0.80. This version showed me an error a skill file. Codex in VS Code silently failed.

/.codex/skills/implement-rate-limiting/SKILL.md: invalid YAML: mapping values are not allowed in this context at line 2 column 53

After fixing this Codex in VS Code worked again.

Urkman avatar Jan 11 '26 10:01 Urkman

Thanks for the analysis. Codex should be more resilient here — or at least provide a better error message.

etraut-openai avatar Jan 11 '26 16:01 etraut-openai

@Urkman, thanks for reporting this. When you have a moment, could you try reproducing the issue again by breaking the SKILL.md file? If it reproduces, could you also share the exact line that’s invalid in your skill definition? I have trouble to to reproduce it on my side.

xl-openai avatar Jan 12 '26 20:01 xl-openai

Similar issues with New Agent tab, reported in 019c53e3-1b7c-7f03-9720-d54ef213e315

VSCode 1.109.2 WSL codex-cli 0.98.0 - 0.101.0 extension 0.4.74 and 0.5.74

Errors:

  • Failed to resume task
  • Error creating task
  • To continue, return to the window where this conversation started.

May also be relevent: At about the same time as these New Agent windows stopped working, I was getting HTTP 403 errors in the GitHub output window. Somehow the repo that I was working on had become un-authorized for use with the Codex Extension. I checked the GH account and the repo wasn't listed as authorized. I re-authed it and the local connection resumed. No one else uses the account. There was no log of the disconnection. It simply lost that relationship. Maybe the conversations are linked with the repo ID and all of that config info was lost at the same time?

TonyGravagno avatar Feb 12 '26 22:02 TonyGravagno

Moving my focus to #11727 and #11721, which are current and seem more relevant.

TonyGravagno avatar Feb 16 '26 20:02 TonyGravagno

I had this issue too, i fixed it;

Hopefully this works for you;

Depending on your IDE, mine was windsurf, the ide's openai codex extension fails because codex could not parse the local agent config files in '~/.codex/agents/*.toml'

Those files used TOML multiline basic strings and contained shell patterns like |, which made the config invalid. That broke conversation startup and led to the localhost:57017 refusal symptoms i saw.

What I changed (I had these installed which caused some failures) I patched all of these to use TOML literal multiline strings instead:

gsd-codebase-mapper.toml gsd-debugger.toml gsd-executor.toml gsd-integration-checker.toml gsd-phase-researcher.toml gsd-plan-checker.toml gsd-planner.toml gsd-project-researcher.toml gsd-research-synthesizer.toml gsd-roadmapper.toml gsd-verifier.toml Backups were created as *.toml.bak.

Verification I verified Codex can now load config again:

codex features list codex mcp list So the parse error is resolved.

Then i restarted my ide completely and codex worked.

alzweidi avatar Mar 15 '26 19:03 alzweidi

Still happening on latest version.

steveepreston avatar Apr 10 '26 10:04 steveepreston

I am currently on v26.513, I simply reinstalled the IDE extension and it worked again. To my surprise when the session resumed it detected something went wrong with the previous thread

Boxboy14 avatar May 16 '26 07:05 Boxboy14