Codex app file viewer should preserve scroll position and support Page Up/Page Down

Open 💬 4 comments Opened May 11, 2026 by suhailnajeeb

What variant of Codex are you using?

Codex app

What feature would you like to see?

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

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗