Skip to content

Codex stuck on bash task, that finished, but not quited #6068

Closed

Description

@sergx

What version of Codex is running?

VSCode extension 0.4.34

What subscription do you have?

Plus

Which model were you using?

gpt-5-codex medium

What platform is your computer?

No response

What issue are you seeing?

This step of solving a task is stuck for 5 min+ And did not end untill i did not press stop.

Running npm run test:unit

$ bash -lc 'npm run test:unit'

> frontend@0.0.0 test:unit
> vitest


 DEV  v2.1.9 E:/platform_boilerplate/frontend

 � tests/unit/formatters.spec.js (4 tests) 24ms
 � tests/unit/AppAlert.spec.js (2 tests) 15ms

 Test Files  2 passed (2)
      Tests  6 passed (6)
   Start at  07:58:08
   Duration  696ms (transform 45ms, setup 0ms, collect 119ms, tests 39ms, environment 669ms, prepare 131ms)

 PASS  Waiting for file changes...
       press h to show help, press q to quit

What steps can reproduce the bug?

...

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bugSomething isn't working
    on Nov 1, 2025
  2. carboni123 commented on Nov 12, 2025

    @carboni123

    try setting "pool":"threads" in vitest config
    Here is my vitest.config.ts file for reference

    /// <reference types="vitest" />
    
    import { defineConfig, mergeConfig } from "vitest/config";
    import viteConfig from "./vite.config";
    
    export default mergeConfig(
      viteConfig,
      defineConfig({
        test: {
          globals: true,
          environment: "jsdom",
          include: ["src/**/*.{test,spec}.{ts,tsx}"],
          exclude: ["e2e/**"],
          setupFiles: ["./vitest.setup.ts"],
          pool: "threads", // avoid fork workers crashing in Node 22 sandbox
        },
        // Remove the plugins array here, as it will inherit from vite.config.ts
        // The resolve alias is also inherited, so you can remove it if identical
      }),
    );
  3. added
    tool-callsIssues related to tool calling
    and removed
    extensionIssues related to the VS Code extension
    on Nov 15, 2025
  4. etraut-openai commented on Nov 15, 2025

    @etraut-openai
    Contributor

    We recently fixed a bug that I suspect is the cause of this. It affects tools that open a child process and share the stderr/stdout handle with their child. The logic in the CLI was waiting (indefinitely) for these to be closed. We've added a hard timeout to work around this issue. I'm going to close this. If you see similar problems in the future, please open a new bug report and use the recently-added /feedback slash command if you're using the CLI. We're planning to add support for /feedback in the extension soon.

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

    bugSomething isn't workingtool-callsIssues related to tool calling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions