Repository navigation
Preserve complete input in automated PR reviews - #926
Gajesh2007 wants to merge 6 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0b6a795017
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1a47cf1813
ℹ️ 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".
|
@codex review Please review current head |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Consolidated into #1096, the combined tooling, benchmark and E2E refactor PR. Your latest head |
Threat-model review dropped deleted files because it only recorded a
+++ b/header. It could also mistake header-looking added text for a new path, and its excerpts exceeded their declared total budget. Parse paths only in the header section, retain deleted and metadata-only changes, decode Git-quoted paths and unquoted names with spaces, and account for complete truncation markers inside the excerpt limits. Renames and copies carry the union of the source and destination threat mappings; Unicode line separators in hunk content cannot invent a diff header. File-to-threat mappings remain visible after the excerpt budget runs out.The Codex workflow also truncated or rejected PR bodies containing a standalone
EOFline. Store the metadata as compact JSON in one GitHub output, then decode it in the prompt and fetch steps; literal shell examples and trailing newlines now survive.The review prompt now describes the documented hop-by-hop encryption boundary accurately. This changes local input preparation; model choice, API credentials and workflow permissions are unchanged.
flowchart LR subgraph Before J[PR body containing EOF] --> K[Fixed-delimiter metadata outputs] K --> T[Truncated metadata or rejected output] D[Git diff] --> P[parse_diff_by_file watches every +++ line] P --> L[Deleted files omitted or hunk text changes path] P --> B[build_focused_diff appends unbudgeted markers] B --> R[Review input exceeds excerpt limit] end subgraph After J2[Same PR body] --> K2[Compact JSON metadata output] K2 --> T2[fromJSON restores exact title and body] D2[Same Git diff] --> H[Header-only path parsing and Git path decoding] H --> M[Deleted files and rename sources retain threat mapping] M --> C[Excerpts include markers within file and total limits] C --> R2[Review input retains mappings and bounded excerpts] endValidation: eight offline fixture tests pass using Python standard library, Git, Bash and jq. Baseline failures reproduce missing paths/mappings, hunk identity confusion, truncated omission markers and actual workflow metadata truncation. A temporary Git repository exercises real space, Unicode, tab and newline filename encoding; tiny excerpt budgets of 1, 2 and 16 characters preserve full omission notices. An independent source review and fixture rerun found no introduced blockers. Docs lint passes for 278 pages; Release Integrity CI runs these fixtures. No model or external API call is made by the fixtures.