Skip to content

Avoid cloning file changes in TUI diff rendering - #34224

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b02668074def7529ff39445e9970a1fec209f02b
Jul 19, 2026
Merged

Avoid cloning file changes in TUI diff rendering#34224
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b02668074def7529ff39445e9970a1fec209f02b

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 19, 2026

Copy link
Copy Markdown

Avoid cloning file changes in TUI diff rendering

What changed

  • Consume and sort DiffSummary entries directly when building renderables.
  • Borrow paths and FileChange values in the shared row representation used by line-based summaries.
  • Share line-count calculation between both rendering paths.

## What changed

- Consume and sort `DiffSummary` entries directly when building renderables.
- Borrow paths and `FileChange` values in the shared row representation used by line-based summaries.
- Share line-count calculation between both rendering paths.

GitOrigin-RevId: b02668074def7529ff39445e9970a1fec209f02b
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/b02668074def7529ff39445e9970a1fec209f02b branch from 7b7a982 to c86b1be Compare July 19, 2026 20:21
@copyberry
copyberry Bot merged commit c86b1be into main Jul 19, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/b02668074def7529ff39445e9970a1fec209f02b branch July 19, 2026 20:22
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants