mirror of
https://github.com/openai/codex.git
synced 2026-10-23 18:08:45 +00:00
## Why Consecutive user prompts in the rich transcript have extra blank spacing that breaks up their shared background. ## What changed - Join adjacent visible user prompts into one background block, skipping hidden entries when determining adjacency. - Keep prompts separated when intervening content becomes visible through detailed mode or search, and restore grouping when it is hidden again. - Preserve selectable source offsets and joined spacing when text is rewrapped, and reuse cached layouts when checking adjacency. ## Testing Add regression tests for prompt grouping, layout cache reuse, source offsets across rewrapping, detailed reasoning, and search-driven visibility. Update transcript snapshots to reflect the tighter spacing. GitOrigin-RevId: faca8001244b0ac883d9d670864c8f7856ac2bad