Skip to content

fix(plugin): return the Deep Scan ID in structured output - #1026

Merged
ianw-oai merged 1 commit into
mainfrom
fix/deep-scan-structured-scan-id
Sep 24, 2026
Merged

ianw-oai merged 1 commit into
mainfrom
fix/deep-scan-structured-scan-id

Conversation

@ianw-oai

Copy link
Copy Markdown
Collaborator

Summary

Deep Scan returned its authoritative scan ID only in text. Hosts that prefer MCP structured output could not use that ID to complete the scan. Codex uses non-null structured output instead of text content.

Changes

  • Add scanId beside manifestPath in the successful Deep Scan response.
  • Extend the existing stdio lifecycle test to check both structured fields. Keep the text-response check.

Testing

  • Stdio lifecycle regression: failed on the base code because structured scanId was missing; passed with the fix.
  • node --test plugins/codex-security/mcp-app/tests/test_deep_scan_stdio_lifecycle.mjs — passed with synthetic workers, using a private temporary directory and real filesystem ownership.
  • pnpm --dir plugins/codex-security/mcp-app run typecheck — passed.
  • Prettier check on both changed files — passed.
  • Ruff lint and format checks for plugins/codex-security, using the pinned Ruff version — passed.
  • pnpm --dir sdk/typescript run build:ci — passed.
  • Plugin source compatibility check and its nine tests — passed.
  • git diff --check — passed.

Risk and rollout

This adds one response field. The text response and manifestPath are unchanged. It does not change worker execution, scan ownership, or completion checks. A plugin release is still required.

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 Sep 24, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-24T21:49:20.438797Z 666a82e PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@daneschneider-oai daneschneider-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.

Can you also check that no other required data got lost in this text to structured output change?

@ianw-oai
ianw-oai merged commit aa2f40b into main Sep 24, 2026
57 checks passed
@ianw-oai
ianw-oai deleted the fix/deep-scan-structured-scan-id branch September 24, 2026 22:01
@github-actions github-actions Bot mentioned this pull request Sep 24, 2026
3 tasks
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