Skip to content

[diffs] Improve Invalid Diff Parsing - #1095

Merged
amadeus merged 5 commits into
mainfrom
amadeus/parse-diff-bug
Aug 24, 2026
Merged

[diffs] Improve Invalid Diff Parsing#1095
amadeus merged 5 commits into
mainfrom
amadeus/parse-diff-bug

Conversation

@amadeus

@amadeus amadeus commented Aug 24, 2026

Copy link
Copy Markdown
Member

This is a series of improvements related to #1094

The actual fix will involve #1055 and its related stack to merge.

At a high level this PR improves the non-strict diff patch parsing to handle invalid line counts (it will make its best effort to correct them and at least show a console error.

The core issue in #1094 is actually related to the auto generated cache keys from file names

@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierre-diffshub Ready Ready Preview Aug 24, 2026 9:28pm
pierre-docs-diffs Ready Ready Preview Aug 24, 2026 9:28pm
pierre-docs-trees Ready Ready Preview Aug 24, 2026 9:28pm
pierrejs-diff-demo Ready Ready Preview Aug 24, 2026 9:28pm

Request Review

@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 Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2fa93d168e

ℹ️ 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".

Comment thread packages/diffs/src/utils/parsePatchFiles.ts
@amadeus

amadeus commented Aug 24, 2026

Copy link
Copy Markdown
Member Author

@codex review

@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 Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5e232be0ce

ℹ️ 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".

Comment thread packages/diffs/src/utils/parsePatchFiles.ts
@amadeus

amadeus commented Aug 24, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 1f41a93c2c

ℹ️ 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".

@amadeus
amadeus merged commit 9c4fc2f into main Aug 24, 2026
8 checks passed
@amadeus
amadeus deleted the amadeus/parse-diff-bug branch August 24, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant