You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex app file viewer should preserve scroll position and support Page Up/Page Down #22095
I would like the Codex app's in-app file viewer to preserve scroll position and support keyboard paging.
Currently, when reviewing longer files, the file viewer often jumps back to the beginning of the file. I have noticed this when:
the file is edited
Codex modifies the file
I switch to another chat/thread and then return
the file view refreshes
This makes it difficult to continue reviewing from the same section in long Markdown, code, or planning files.
I would like the file viewer to:
remember the last scroll position for each open file where possible
avoid resetting to the top after edits or when returning to a chat
support Page Up and Page Down when the file viewer has focus
This would make long-file review much smoother, especially when checking Codex edits across large documents.
Additional information
The current behavior creates a lot of friction in review workflows. When the file jumps back to the top, Page Up and Page Down also do not appear to work in the file viewer, so I have to manually scroll back to the relevant section with the mouse.
Expected behavior:
file scroll position is preserved after edits where possible
switching away from and back to a chat does not reset the file viewer to the top
Page Up / Page Down scroll the file viewer when focused
Actual behavior:
the file viewer resets to the beginning
keyboard paging does not work
recovering the previous location requires manual mouse scrolling
Reacted by Kendon Bell, Josh McKinney and Mark Bourgeault
+1. I’m hitting this specifically in the app diff/file viewer while Codex is still working.
It is useful to keep a diff open and review the current changes while Codex continues editing, so I can steer if the change is going off track. When the file/diff view refreshes after updates, it resets back to the top and I lose the section I was reviewing.
The ideal behavior would be: refresh the displayed content when Codex edits the file, but preserve the current scroll anchor/position where possible instead of remounting or resetting the viewer to the top.
For anyone else running into this, hit the thumbs-up reaction on the issue as well; that is used for prioritization signal.
Adding a current Windows reproduction of the diff-pane variant. This makes the Review pane effectively unusable for a large working tree.
Environment
Codex Desktop: 26.707.9981.0
Bundled Codex CLI: 0.144.2
Windows 11: 10.0.26200
Git: 2.55.0.windows.2
Working tree: 203 changed entries (129 tracked, 74 untracked)
Tracked diff: about 551 KB, 3,431 insertions / 3,612 deletions across 128 files
Reproduction
Open a local Git repository with a substantial working-tree diff.
Open the Review/diff pane.
Scroll down into the diff and start reviewing.
Leave the pane open while the Codex task is active.
Every few seconds the pane refreshes/re-renders and jumps back to the top of the overall diff.
The scroll reset repeats, so it is not practically possible to review anything below the first part of the diff.
Additional evidence
I checked whether actual repository changes explained the refresh. Over a six-second observation window, both the complete porcelain status fingerprint and the tracked binary-diff fingerprint remained identical. Despite that stable Git state, a separate 15-second process trace observed 95 new git.exe processes and 108 new conhost.exe processes. A shorter trace observed 18 git.exe processes in six seconds, with 10 directly parented by ChatGPT.exe.
That process churn appears related to the repeated Git polling reported in #26812 and may be the trigger for the diff-pane refresh, although the exact UI cause still needs maintainer confirmation.
Expected behavior
The diff content may update when repository state genuinely changes, but the viewer should preserve the current scroll anchor/position. An unchanged repository state should not remount or reset the diff viewer.
Actual behavior
The pane repeatedly refreshes and resets to the first diff, even while the working-tree status and diff content are unchanged.
Workaround
I did not find a durable workaround in the docs or existing issue comments. The only practical options are to close the Review pane while Codex is active, review after the task stops, or use an external diff viewer.
Also experiencing loss of document reading position after changes/refreshes in the PDF reading workflow on macOS 15.7.4, ChatGPT desktop app (com.openai.codex) 26.1016.62342, build 21477.
When reading later in a document alongside the chat, a change-triggered refresh pulls the view back to the beginning. This repeatedly interrupts reading and requires navigating back to the previous location.
Expected: preserve the current page, zoom, and scroll position across document refreshes, restoring the nearest valid position if pagination changes.
This is a user-observed report from October 23, 2026; the precise refresh trigger has not been independently isolated. Tab-switch behavior is not asserted here. Related PDF-specific tab-switch report: #31704.
Reporting here rather than opening a duplicate. No private documents, screenshots, local paths, or logs attached.
Activity
kendonB commentedon May 30, 2026
page up page down + up and down should also work to scroll the chat window
suhailnajeeb commentedon May 31, 2026
@kendonB Good point, seems like the page up / down behavior is also finicky and inconsistent at the moment with chats. Hope they patch this soon 🙏
joshka commentedon Jul 4, 2026
+1. I’m hitting this specifically in the app diff/file viewer while Codex is still working.
It is useful to keep a diff open and review the current changes while Codex continues editing, so I can steer if the change is going off track. When the file/diff view refreshes after updates, it resets back to the top and I lose the section I was reviewing.
The ideal behavior would be: refresh the displayed content when Codex edits the file, but preserve the current scroll anchor/position where possible instead of remounting or resetting the viewer to the top.
For anyone else running into this, hit the thumbs-up reaction on the issue as well; that is used for prioritization signal.
frankbonnet commentedon Jul 16, 2026
Adding a current Windows reproduction of the diff-pane variant. This makes the Review pane effectively unusable for a large working tree.
Environment
26.707.9981.00.144.210.0.262002.55.0.windows.2Reproduction
The scroll reset repeats, so it is not practically possible to review anything below the first part of the diff.
Additional evidence
I checked whether actual repository changes explained the refresh. Over a six-second observation window, both the complete porcelain status fingerprint and the tracked binary-diff fingerprint remained identical. Despite that stable Git state, a separate 15-second process trace observed 95 new
git.exeprocesses and 108 newconhost.exeprocesses. A shorter trace observed 18git.exeprocesses in six seconds, with 10 directly parented byChatGPT.exe.That process churn appears related to the repeated Git polling reported in #26812 and may be the trigger for the diff-pane refresh, although the exact UI cause still needs maintainer confirmation.
Expected behavior
The diff content may update when repository state genuinely changes, but the viewer should preserve the current scroll anchor/position. An unchanged repository state should not remount or reset the diff viewer.
Actual behavior
The pane repeatedly refreshes and resets to the first diff, even while the working-tree status and diff content are unchanged.
Workaround
I did not find a durable workaround in the docs or existing issue comments. The only practical options are to close the Review pane while Codex is active, review after the task stops, or use an external diff viewer.
realjcli commentedon Oct 24, 2026
Also experiencing loss of document reading position after changes/refreshes in the PDF reading workflow on macOS 15.7.4, ChatGPT desktop app (
com.openai.codex) 26.1016.62342, build 21477.When reading later in a document alongside the chat, a change-triggered refresh pulls the view back to the beginning. This repeatedly interrupts reading and requires navigating back to the previous location.
Expected: preserve the current page, zoom, and scroll position across document refreshes, restoring the nearest valid position if pagination changes.
This is a user-observed report from October 23, 2026; the precise refresh trigger has not been independently isolated. Tab-switch behavior is not asserted here. Related PDF-specific tab-switch report: #31704.
Reporting here rather than opening a duplicate. No private documents, screenshots, local paths, or logs attached.