You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Canceling a scan with Ctrl-C can leave it marked as RUNNING indefinitely #44
area:artifactsSaved scan state, storage, sealing, recovery, history, and artifact integrity.area:deep-scanDeep Scan coordination, worker scheduling, coverage, convergence, and resume.bugSomething isn't workingpriority:p2Significant defect or product gap with narrower impact or a workaround
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.
Related: merged #393 corrects the scan’s cancellation instructions. Open #1260 waits for Deep cancellation to be saved before returning; the original stuck-RUNNING case still needs confirmation.
Thanks for the clear reproduction. #1260 fixed the Deep Scan cancellation lifecycle and is included in 0.4.0. Cancellation now waits for worker cleanup and saved-state publication before returning, and the current cancellation lifecycle tests pass.
I'm closing the original stuck-RUNNING report as fixed. If it still happens on 0.4.0 or later, please follow up with the CLI version, OS, scan mode, and whether you pressed Ctrl-C once or more than once. #735 tracks the separate distinction between recording a cancellation and recording a failure.
area:artifactsSaved scan state, storage, sealing, recovery, history, and artifact integrity.area:deep-scanDeep Scan coordination, worker scheduling, coverage, convergence, and resume.bugSomething isn't workingpriority:p2Significant defect or product gap with narrower impact or a workaround
Activity
mldangelo-oai commentedon Oct 8, 2026
Related: merged #393 corrects the scan’s cancellation instructions. Open #1260 waits for Deep cancellation to be saved before returning; the original stuck-RUNNING case still needs confirmation.
mldangelo-oai commentedon Oct 19, 2026
Thanks for the clear reproduction. #1260 fixed the Deep Scan cancellation lifecycle and is included in 0.4.0. Cancellation now waits for worker cleanup and saved-state publication before returning, and the current cancellation lifecycle tests pass.
I'm closing the original stuck-RUNNING report as fixed. If it still happens on 0.4.0 or later, please follow up with the CLI version, OS, scan mode, and whether you pressed Ctrl-C once or more than once. #735 tracks the separate distinction between recording a cancellation and recording a failure.