Answer: Pass ScanOptions callbacks to track a scan's startup, worker progress, and connection retries, and pass an AbortSignal from your request or job controller to cancel a scan. An interrupted scan can leave partial output in scanDir, which should be preserved when the result needs investigation. Status: Confirmed Entry: tool/codex/features/track-cancel-scan Revision: 2 Digest: sha256:dfc263ec907f700f (changes whenever the content changes) Timeline: Created: 2026-11-13T03:53:52Z Last changed: 2026-11-17T14:07:46Z (Interrupted output location: — → scanDir) Last verified: 2026-11-20T13:42:25Z Next check: 2026-11-21T13:42:25Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of Tracking method | Pass `ScanOptions` callbacks | | [1] | 2026-11-20 Cancellation method | Pass an `AbortSignal` from your request or job controller to cancel a scan. | | [1] | 2026-11-20 Example timeout | 30 minutes | minutes | [1] | 2026-11-20 Interrupted output location | scanDir | | [1] | 2026-11-20 Sources: [1] OpenAI. "Codex Security TypeScript SDK". https://learn.chatgpt.com/docs/security/sdk.md Role: primary. Accessed: 2026-11-20T13:42:25Z Quote: "Pass `ScanOptions` callbacks to report scan startup, worker progress, and" (Supports: Tracking method) Quote: "Pass an `AbortSignal` from your request or job controller to cancel a scan." (Supports: Cancellation method) Quote: "If the scan is still running after 30 minutes, this example interrupts it and" (Supports: Example timeout) Quote: "An interrupted scan can leave partial output in `scanDir`." (Supports: Interrupted output location) Snapshot SHA-256: e3edd6a6028564a55a3b57aa22f470079e659955017b0e8c18087940c6b27015 (captured 2026-11-17T14:07:44Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-17T14:07:46Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:42:25Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:42:25Z Last attempt: 2026-11-20T13:42:25Z Notes and limitations: Extracted automatically from a single official source (section "Track or cancel a scan"). Related: https://latestn.com/tool/codex/features/triage-vs-validation How is Codex backlog triage different from validation? https://latestn.com/tool/codex/features/worktrees-parallel-chats How do I use Git worktrees in Codex to run multiple chats in parallel? https://latestn.com/tool/codex/ide-and-apps/choose-cloud-mode How do I choose Cloud instead of local in Codex on web, desktop, or mobile? https://latestn.com/tool/codex/features/start-first-task How do I start my first task with Codex CLI? https://latestn.com/tool/codex/features/start-tasks-mobile How do I start a new Codex task from the ChatGPT mobile app? https://latestn.com/tool/codex/features/supported-surfaces Which ChatGPT and Codex surfaces support plugins? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T14:07:46Z | changed | Interrupted output location: — → scanDir | [1] 2026-11-17T14:07:46Z | changed | Example timeout: — → 30 minutes | [1] 2026-11-17T14:07:46Z | changed | Cancellation method: — → Pass an `AbortSignal` from your request or job controller to cancel a scan. | [1] 2026-11-17T14:07:46Z | changed | Tracking method: — → Pass `ScanOptions` callbacks | [1] 2026-11-17T14:07:46Z | changed | interrupted output: scanDir → — | [1] 2026-11-17T14:07:46Z | changed | timeout example: 30 minutes → — | [1] 2026-11-17T14:07:46Z | changed | cancellation method: Pass an `AbortSignal` from your request or job controller to cancel a scan. → — | [1] 2026-11-17T14:07:46Z | changed | tracking method: Pass `ScanOptions` callbacks → — | [1] 2026-11-13T03:53:52Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/features/track-cancel-scan/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/features/track-cancel-scan POST: https://latestn.com/dispute/tool/codex/features/track-cancel-scan with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/features/track-cancel-scan?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I track or cancel a running Codex Security scan? Revision 2, last verified 2026-11-20T13:42:25Z. https://latestn.com/tool/codex/features/track-cancel-scan (accessed 2026-11-21T09:54:42Z). @misc{LatestN_tool_codex_features_track_cancel_scan_r2, title = {How do I track or cancel a running Codex Security scan?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/features/track-cancel-scan}}, note = {Revision 2; digest sha256:dfc263ec907f700f; last verified 2026-11-20T13:42:25Z; accessed 2026-11-21T09:54:42Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/features/track-cancel-scan