Skip to content

ci: verification run for upstream #48033 - #86

Closed
bbingz wants to merge 2 commits into
mainfrom
fix/48025-multifile-apply-patch-summary
Closed

bbingz wants to merge 2 commits into
mainfrom
fix/48025-multifile-apply-patch-summary

Conversation

@bbingz

@bbingz bbingz commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Verification run for upstream stablyai#48033 at 0fd79c82786.

Performance

None, because this pull request only runs CI for the upstream diff.

Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​29 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​29
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​76 $\color{#cf222e}{\Huge{\mathbf{−}}}$​7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​69

A multi-file edit was stored as "N files" plus the real paths, but the summary dropped that list and rendered no changed files.
Matching hunk counts can assign a truncated file's later hunk to the next path, and a file-count label with no paths list still must not invent cards.
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T04:10:10.732910Z 0fd79c8 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.

@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: 0fd79c8278

ℹ️ 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 on lines +34 to +37
const files = parts.flatMap((part) =>
summaryOnly
? (editFilesFromPatchText(part.diff, part.path, true) ?? [])
: (editFilesFromPatchText(part.diff, part.path) ?? [])

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve unparsed files instead of consuming a partial result

When a counted Codex change contains a newly added file followed by an update, the added file can contain raw text rather than a unified hunk (as handled by codexChangeFiles and the rollout projection's change.content fallback). For example, new file content\n\n@@ -1 +1 @@\n-old\n+new\n splits into two parts, but parsing the first returns null and this flatMap silently drops it. The remaining update makes normalization succeed, so buildEditCards consumes the entire original result while omitting the added file and its contents. Preserve the raw-file change metadata or fall back to the generic result whenever any part cannot be parsed.

Useful? React with 👍 / 👎.

Comment on lines +29 to +30
const body = splitMoveMarker(bounded.text).body
const parts = splitCountedFileDiffs(body, countedPaths)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep the final file's move marker until after splitting

When the last file in a counted diff is renamed, this strips its Moved to: marker before the per-file parser can interpret it. The rollout projection explicitly appends this marker to individual renamed changes, and fileChangeItem joins those changes into the counted payload. Parsing two update diffs ending in Moved to: renamed.txt therefore reports the last file under its old path with changeKind: 'edited', instead of reporting the rename; the turn-diff aggregation also receives the wrong destination. Split the payload first and let each individual parser handle its own move marker.

Useful? React with 👍 / 👎.

@bbingz

bbingz commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

Upstream stablyai#48033 recorded the success conclusion for 0fd79c8. Closing this verification PR.

@bbingz bbingz closed this Nov 24, 2026
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