Files
codex/codex-rs
Benjamin Carlsson a847c71a15 Limit inline diff previews in the TUI (#41143)
## Why

Large or minified diffs can require substantial work to allocate wrapped rows and syntax-highlighted spans in the inline patch view.

## What changed

- Limit inline patch previews to 12 rendered rows across all changed files, while retaining file summaries and directing users to the transcript when content is omitted.
- Preserve complete diff content in transcript and raw views.
- Bound preview source scanning to 64 KiB so zero-width content cannot bypass the row budget.

## Testing

Add coverage for added, deleted, updated, renamed, minified, narrow-width, wide-character, combining-character, and multi-file diffs, including preservation of complete transcript and raw output.

GitOrigin-RevId: 1899129ab548771c29d226ff624549573fb2f688
2026-08-27 14:09:15 +00:00
..
…
…
…