codex - 💡(How to fix) Fix Chat scroll jumps to center and bounces uncontrollably when scrolling up [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17169Fetched 2026-04-09 08:01:38
View on GitHub
Comments
2
Participants
3
Timeline
5
Reactions
5
Author
Timeline (top)
commented ×2labeled ×2cross-referenced ×1

After the latest update, scrolling up in a chat conversation causes the viewport to jump to the center of the message list. Once this happens, attempting to scroll down results in the scroll position bouncing up and down erratically, making it impossible to navigate the conversation.

Root Cause

After the latest update, scrolling up in a chat conversation causes the viewport to jump to the center of the message list. Once this happens, attempting to scroll down results in the scroll position bouncing up and down erratically, making it impossible to navigate the conversation.

Fix Action

Workaround

Switching to a different chat and switching back lands at the correct position initially — but the bug re-triggers as soon as you scroll up even slightly.

RAW_BUFFERClick to expand / collapse

Bug Report

App version: 26.406.31014 (1395) Platform: macOS

Description

After the latest update, scrolling up in a chat conversation causes the viewport to jump to the center of the message list. Once this happens, attempting to scroll down results in the scroll position bouncing up and down erratically, making it impossible to navigate the conversation.

Steps to Reproduce

  1. Open the Codex desktop app (version 26.406.31014)
  2. Open a conversation with a long message history
  3. Scroll up slightly from the bottom

Expected: The chat scrolls up smoothly, and scrolling down returns to the previous position.

Actual: The viewport jumps to the center of the chat list. Attempting to scroll down causes the scroll to bounce between up and down positions repeatedly. The conversation becomes unnavigable.

Workaround

Switching to a different chat and switching back lands at the correct position initially — but the bug re-triggers as soon as you scroll up even slightly.

Additional Context

This regression started with the latest update (version 26.406.31014, build 1395). Previous versions did not have this behavior. The issue occurs on long conversations and appears to be related to virtualized list scroll position anchoring.

extent analysis

TL;DR

The issue can likely be mitigated by adjusting the virtualized list scroll position anchoring logic to prevent the viewport from jumping to the center of the message list when scrolling up.

Guidance

  • Review the changes made in the latest update (version 26.406.31014, build 1395) to identify potential causes of the regression, focusing on modifications to the virtualized list scroll position anchoring logic.
  • Verify that the issue is indeed related to the virtualized list by testing with shorter conversations or disabling virtualization if possible.
  • Consider implementing a temporary workaround that resets the scroll position when switching between chats, similar to the observed behavior when switching to a different chat and back.
  • Investigate the scroll event handling to ensure that it correctly updates the scroll position without causing erratic bouncing.

Example

No specific code snippet can be provided without more context, but the fix may involve adjusting the scroll position anchoring logic to smoothly handle scrolling up in long conversations.

Notes

The provided information suggests a regression introduced in the latest update, but without access to the codebase or more detailed debugging information, the exact cause and solution remain uncertain.

Recommendation

Apply a workaround by adjusting the virtualized list scroll position anchoring logic to prevent the viewport from jumping to the center of the message list when scrolling up, as this approach directly addresses the observed behavior and is likely to mitigate the issue until a more permanent fix can be implemented.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING