Repository navigation
Conversation
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.
Codex Review Summary: ✅ CompletedThis 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: 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".
| const files = parts.flatMap((part) => | ||
| summaryOnly | ||
| ? (editFilesFromPatchText(part.diff, part.path, true) ?? []) | ||
| : (editFilesFromPatchText(part.diff, part.path) ?? []) |
There was a problem hiding this comment.
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 👍 / 👎.
| const body = splitMoveMarker(bounded.text).body | ||
| const parts = splitCountedFileDiffs(body, countedPaths) |
There was a problem hiding this comment.
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 👍 / 👎.
|
Upstream stablyai#48033 recorded the success conclusion for 0fd79c8. Closing this verification PR. |
Verification run for upstream stablyai#48033 at
0fd79c82786.Performance
None, because this pull request only runs CI for the upstream diff.