openai / openai/codex-security
Canceling a scan with Ctrl-C can leave it marked as RUNNING indefinitely
Nobody has claimed this yet.
- 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
- Start a deep scan.
- Cancel it once with Ctrl-C.
- Wait for the CLI to exit.
- Confirm that no related processes remain.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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