Skip to content

fix: route explicit scan cancellation through its lifecycle tool - #393

Merged
mldangelo-oai merged 1 commit into
mainfrom
mdangelo/codex/correct-scan-cancellation-prompt
Aug 13, 2026
Merged

mldangelo-oai merged 1 commit into
mainfrom
mdangelo/codex/correct-scan-cancellation-prompt

Conversation

@mldangelo-oai

Copy link
Copy Markdown
Collaborator

Summary

Route an explicitly canceled security scan through the existing cancellation tool instead of incorrectly recording it as an ordinary failure.

Changes

  • Correct the two shared preflight instructions that previously selected the failure tool after explicit cancellation.
  • Preserve the existing failure tool for confirmed unrecoverable blockers.
  • Add a real workbench lifecycle regression distinguishing canceled scans from failed scans.

Testing

  • bun test --timeout 30000 tests-ts/scan-recovery.test.ts — 28 passed.
  • Focused cancellation regression verifies the existing canceled status, cancellation timestamp, and absent failure message.
  • pnpm run types.
  • pnpm run format.

Risk and rollout

Prompt guidance and regression coverage only. The workbench database representation, cancellation implementation, recovery behavior, and scan lifecycle are unchanged.

Public disclosure review

  • No customer, partner, prospect, or user identities, data, or identifying details are included.
  • No credentials, personal data, private source, scan findings, or nonpublic links or tickets are included.
  • I reviewed the branch name, title, description, commits, changes, comments, logs, screenshots, attachments, and links for public disclosure.

@github-actions github-actions Bot added the bug Something isn't working label Aug 13, 2026
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: edfaddec8c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

Security review completed. No security issues were found in this pull request.

Reviewed commit: edfaddec8c

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@zcrab-oai zcrab-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Explicit scan cancellation now uses the proper lifecycle tool and preserves canceled scan state.

@mldangelo-oai
mldangelo-oai merged commit 03442b0 into main Aug 13, 2026
34 checks passed
@mldangelo-oai
mldangelo-oai deleted the mdangelo/codex/correct-scan-cancellation-prompt branch August 13, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants