Skip to content

/stop does not clear background terminals shown by /ps #17311

@nbros

Description

@nbros

What version of Codex CLI is running?

v0.118.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.4 fast

What platform is your computer?

macOS 26.4

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

Ghostty

What issue are you seeing?

/stop says it stopped all background terminals, but /ps still shows the same zombie terminal afterward.

What steps can reproduce the bug?

  1. Ask codex to run a task that creates a background terminal
  2. Run /ps
  3. Run /stop
  4. Run /ps again

The same background terminal is still listed after /stop.

What is the expected behavior?

After /stop, /ps should no longer show that terminal.

Additional information

• Stopping all background terminals.

/ps

Background terminals

  • ls && find . -maxdepth 2 -name '*.csproj' -o -name '*.sln' && dotnet build -nolo [...]

• Stopping all background terminals.

/ps

Background terminals

  • ls && find . -maxdepth 2 -name '*.csproj' -o -name '*.sln' && dotnet build -nolo [...]
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingtool-callsIssues related to tool calling

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions