openai / openai/codex

background terminals do not time out or kill off when no longer needed

Open
#41,841 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug CLI tool-calls
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of Codex CLI is running?

0.147.0

What subscription do you have?

nvidia

Which model were you using?

5.6-sol

What platform is your computer?

linux

What terminal emulator and version are you using (if applicable)?

windows

Codex doctor report

What issue are you seeing?

Background jobs are abandoned and run forever. Some tasks like rg are resource intensive, and when run on a large filesystem, will never complete in reasonble time. This has happened repeatedly and even after telling codex that one of its core instructions is to never leave an unguarded background task running, it continues to do so.

What steps can reproduce the bug?

Uploaded thread: 01a02086-f1f1-7703-af52-1ce20d079b3c

What is the expected behavior?

timeout all background tasks, ensure that codex can tell background tasks are running

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue from the uploaded thread 01a02086-f1f1-7703-af52-1ce20d079b3c and trace how Codex CLI launches and tracks background jobs. Identify where task lifetime and status reporting are handled. Done means background tasks are timed out when appropriate and Codex clearly reports that they remain running.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.