Codex passes VSCode the wrong path for opening files

Codex passes space characters as %20 when passing the file path to VSCode. This happens on macOS.

For example, if the file is at ‘/Users/mainuser/Code/Xcode Projects/project.swift’ it will open the ‘/Users/mainuser/Code/Xcode%20Projects/project.swift’ file in VSCode, which does not exist.

Well, In web development and internet communication, %20 is the URL-encoded representation of a space character

Ok, its still wrong and a bug.

1 Like

See here:

Ok, we’re supposed to report bugs on github. I found an issue already filed: Issue 11102

4 Likes

Hi @E-Roll

This is a known issue, Codex is URL-encoding spaces in file paths (%20), which breaks how VS Code resolves them.

Avoiding spaces in folder names or opening files directly from within VS Code should work as a workaround.