Skip to content

fix(scan): keep diff previews inside the repository - #372

Open
mldangelo-oai wants to merge 3 commits into
mainfrom
mdangelo/codex/foo-2197-confine-legacy-diff-previews
Open

fix(scan): keep diff previews inside the repository#372
mldangelo-oai wants to merge 3 commits into
mainfrom
mdangelo/codex/foo-2197-confine-legacy-diff-previews

Conversation

@mldangelo-oai

@mldangelo-oai mldangelo-oai commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

Keep working-tree diff previews inside the selected repository without changing committed-revision previews.

Changes

  • Preserve the current Git-blob preview path for committed revision ranges.
  • Return an empty preview for local changed symlinks or files reached through an out-of-repository directory link.
  • Keep every changed path, including deleted files and symlinks, in the review inventory.
  • Update the focused cross-platform regression to exercise the actual local-patch path.
  • Merge the latest main without rewriting the existing branch history.

Testing

  • bun test --timeout 30000 tests-ts/diff-rank-input.test.ts tests-ts/compact-diff-scan.test.ts — 6 passed, 47 assertions.
  • pnpm --pm-on-fail=ignore run types — passed.
  • pnpm --pm-on-fail=ignore exec prettier --check tests-ts/diff-rank-input.test.ts — passed.
  • Python AST parsing, git diff --cached --check, and verification of zero remaining merge conflicts — passed.

Risk and rollout

Low risk. The extra containment check applies only to local working-tree previews. Committed revision ranges continue to use immutable Git blobs, and unsafe paths remain present for review with an empty preview instead of disappearing from coverage.

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.

Copy link
Copy Markdown
Collaborator Author

@codex review

@mldangelo-oai
mldangelo-oai requested a review from ianw-oai August 12, 2026 23:51
@github-actions github-actions Bot added the bug Something isn't working label Aug 12, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 1cf9c4cb5e

ℹ️ 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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Security Review

Here are some automated security review suggestions for this pull request.

Reviewed commit: 1cf9c4cb5e

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.

Comment thread sdk/typescript/_bundled_plugin/scripts/generate_rank_input.py Outdated

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 53ad0168e4

ℹ️ 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: 53ad0168e4

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.

@mldangelo-oai
mldangelo-oai marked this pull request as ready for review August 13, 2026 00:01
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 64a61b22c2

ℹ️ 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: 64a61b22c2

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.

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.

1 participant