mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
## Why The full-screen diff pager takes the conversation off screen. A sidebar tab lets users review working-tree changes alongside the conversation. ## What changed - Open a read-only `Diff` tab when the sidebar is available, and fall back to the full-screen pager otherwise. - Reuse the tab on repeated runs. Keep the previous patch visible while Git runs, preserve the reading position on refresh, and apply only the latest result without stealing focus. - Render large patches in chunks and derive scroll indicators from visible rows so redraws can skip layout of the off-screen tail. ## Testing Cover tab reuse, stale result handling, and the visibility of the last hunk across resize and refresh. Verify that scroll indicators render without laying out the off-screen tail. GitOrigin-RevId: 812ea99896dfd3131af9cf356cb844f4f0f7c267