BUG: Codex does not look at project type, assumes python project
Resolved 💬 3 comments Opened Jun 26, 2025 by guidedways Closed Aug 7, 2025
💡 Likely answer: A maintainer (guidedways, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
0.1.2505172129
Which model were you using?
gpt-4.1-mini-2025-04-14
What platform is your computer?
macOS
What steps can reproduce the bug?
First prompt and I get this the following. This is inside of a Swift Project folder. It did not even check what the type of project is, assumed it's python. Claude Code with the same command knows what to do, it looks at the code, finds where the tests are, runs them successfully using xcodebuild.
user
Run all the unit tests to confirm they all pass
command
$ pytest -q --tb\=short
command.stdout (code: 5, duration: 1.6s)
no tests ran in 0.28s
codex
It looks like no tests were found or run in the current directory. Could you please confirm where the tests are located or provide more details about the test framework and setup? This
will help me run the tests properly.
What is the expected behavior?
I expect codex to first look at the file / folder structure, figure out what the project does, how the tests are configured, what language / stack this is.
What do you see instead?
Zero effort in trying to even see what the project is or does and assumed this is a python project.
Additional information
Claude Code does the entire thing in the first prompt (without further hints) and produces a summary of all the tests that passed, including a full count.
3 Comments
After prompting it to look at the project type and look for tests, it finally found them but lazily gave up before trying:
And after asking it to run all tests and count them, still being lazy, tells me
there are roughly over a hundred test cases.... This certainly does not feel agentic. Makes me feel guilty I'm making it do all that work when I should be the one doing it.In contrast though, Claude Code does the entire thing in the first prompt (without further hints) and produces a summary of all the tests that passed, including a full count.
Thank you for the feedback! Please try again on the latest version of Codex CLI. We're primarily focused on the native/Rust implementation of Codex CLI and would love to see if this issue persists there. If it does, we're happy to investigate further.