You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex gets stuck while performing pnpm test, since after running the tests vitest requires the user to press q to exit the testing dialog #3775
When the agent is working on a project with vitest testing suite and has to run the test suite to validate its work, it will get stuck after running the test, not moving on to the next step
Always mention in your AGENTS.md that it should use timeout <seconds> <cmd> for running commands, otherwise it ill get stuck; especially true on test suites. node is notorious for it's quirky exit behaviour and there's a lot of people that don't know any better leaving open handles - that's bound to happen.
On macOS you have to install it by brew install coreutils.
Activity
FaBeyyy commentedon Sep 17, 2025
run
vitest runand not in watch modenicholaswmin commentedon Sep 18, 2025
Always mention in your
AGENTS.mdthat it should usetimeout <seconds> <cmd>for running commands, otherwise it ill get stuck; especially true on test suites.nodeis notorious for it's quirky exit behaviour and there's a lot of people that don't know any better leaving open handles - that's bound to happen.On macOS you have to install it by
brew install coreutils.sergx commentedon Nov 1, 2025
You can set time limit like this for 20 seconds
"test:unit": "(vitest && exit 0) & pid=$!; sleep 20 && kill $pid 2>/dev/null & wait $pid"Or as a better option:
"test:unit": "vitest run"in this case tests will be closed right after executing
etraut-openai commentedon Jan 17, 2026
Closing out old bugs.