Skip to content

Click Stop on running terminals in Codex app does not close them out #12478

Open

Description

@evoNick-A

Click stop -> Nothing happens.

Image

Activity

  1. added
    bug
    app
    on Feb 21, 2026
  2. github-actions commented on Feb 21, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. vincentkoc commented on Feb 22, 2026

    @vincentkoc
    Contributor

    I opened a draft PR for this stop/no-op behavior: #12506

    The change makes v1/v2 interrupt APIs return immediately when no turn is in progress by cleaning background terminals in that path, instead of waiting indefinitely for a TurnAborted event.

    Also included regression coverage in both app-server interrupt suites.

  4. vincentkoc commented on Feb 22, 2026

    @vincentkoc
    Contributor

    Given the updated contribution policy (invitation-only PRs), #12506 is a narrow draft patch proposal for the Stop/no-active-turn path.\n\nIf maintainers want this pursued, could someone explicitly invite that PR (or point to a preferred issue/PR to fold into)?

  5. palvaleri commented on Mar 18, 2026

    @palvaleri

    Confirmed on macOS Desktop as the stop/no-op cleanup failure case.

    Environment:

    • Codex Desktop app on macOS (Codex.app 26.313.41514)
    • local sessions on codex-cli 0.115.0

    In my case /ps showed 25 background terminals running, mostly short-lived commands like sed -n ..., rg -n ..., and python scripts/plan_lint.py ....

    The important part: an OS-level ps check right after did not show those short-lived commands as live processes anymore. So /stop here was not failing to kill still-running work; it was failing to clear already-stale background-terminal state from the UI.

    That makes this feel like a combination of two issues:

    • stale terminal entries remain in the UI after processes are already dead (#12321)
    • explicit Stop does not clean that stale state when the turn is effectively idle / there is no active turn to abort

    So if helpful for triage: this repro is a strong stop does not close them out case even when the listed terminals are already gone at OS level.

  6. RIX-Coding commented on Jul 13, 2026

    @RIX-Coding

    Still reproducible on the current ChatGPT/Codex macOS app.

    Feedback ID: 019f5b5b-5f44-7c80-9456-6c92ced0bb7f

    Environment

    • ChatGPT/Codex app: 26.707.62119 (build 5211)
    • Bundled Codex CLI: 0.144.2
    • macOS: 26.5.2 (25F84)

    Observed behavior

    A Vite development server was started by Codex with:

    npm run dev --port 5173
    

    The Background Processes panel still showed the terminal entry, but Stop was disabled. Its tooltip said:

    For this task, no running process was found.

    However, diagnostics taken immediately afterward confirmed that the server was genuinely still running:

    • npm process: PID 82464
    • Vite/Node child: PID 82485
    • listener: 127.0.0.1:5173
    • an HTTP request to http://127.0.0.1:5173 returned HTTP/1.1 200 OK
    • the npm process was still parented by the Codex app-server
    • the process working directory was the affected local project

    This is therefore not only stale UI state. The app lost its association with a live background process and could no longer terminate it, leaving the port occupied.

    Expected behavior

    The Stop action should terminate the complete process group/tree associated with the background terminal and release port 5173.

    This workflow worked correctly a few weeks ago, so this appears to be a regression in the current app/runtime.

    Potentially related: #25772

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

    appbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions