openai / openai/codex-security

Canceling a scan with Ctrl-C can leave it marked as RUNNING indefinitely

Open
#44 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:cli area:reports bug priority:p2
Dominant language
TypeScript
Stars
10.8k
Forks
801
Avg merge
1d 8h
Merged PRs (30d)
257

Description

Canceling a scan with Ctrl-C can leave the scan permanently marked as RUNNING in the history, even though the CLI exits and no related processes remain.

The CLI prints:

  codex-security: Scan canceled by Ctrl-C.
  codex-security: Partial output was kept at <output-directory>.

However, codex-security scans list continues to show:

  RUNNING · deep
  COVERAGE 0 of 0 reviewed · <file-count> files

No codex-security or codex exec processes are still running.

Environment
  • Codex Security CLI: 0.1.1
  • Node.js: 22.23.1
  • npm: 10.9.8
  • OS: macOS
  • Authentication: stored ChatGPT credentials
  • Scan mode: deep
Steps
  1. Start a deep scan.
  2. Cancel it once with Ctrl-C.
  3. Wait for the CLI to exit.
  4. Confirm that no related processes remain.
  5. Run codex-security scans list.
Expected

The scan should be recorded as canceled or failed.

Actual

The scan remains permanently marked as RUNNING.

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

Reproduce the issue by starting a deep scan, canceling it with Ctrl-C, and checking codex-security scans list after the CLI exits. Trace the scan history update and cancellation handling; done means canceled scans no longer remain marked RUNNING and are recorded as canceled or failed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.