Skip to content

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

Closed

Description

@adspiceprospice

What version of Codex is running?

0.4.10

Which model were you using?

gpt-5-codex-medium

What platform is your computer?

macos 26

What steps can reproduce the bug?

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

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Activity

  1. added
    bug
    on Sep 17, 2025
  2. FaBeyyy commented on Sep 17, 2025

    @FaBeyyy

    run vitest runand not in watch mode

  3. nicholaswmin commented on Sep 18, 2025

    @nicholaswmin

    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.

  4. added
    extension
    on Sep 23, 2025
  5. sergx commented on Nov 1, 2025

    @sergx

    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

  6. added
    tool-calls
    and removed
    extension
    on Nov 11, 2025
  7. etraut-openai commented on Jan 17, 2026

    @etraut-openai
    Contributor

    Closing out old bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtool-calls

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions