openai / openai/codex

Review pane jumps to bottom and chat steals focus when adding inline comments

Open
#43,510 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug code-review
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of the Codex App are you using (From “About Codex” dialog)?

ChatGPT desktop app / Codex project interface: 26.901.51231 (build 8109), read from the installed application bundle.

What subscription do you have?

Pro

What platform is your computer?

macOS 26.5, Apple Silicon.
uname -mprs: Darwin 25.5.0 arm64 arm

What issue are you seeing?

In the review/diff pane, opening an inline comment box causes the view to jump to the end of the document. The chat also takes focus when I open the comment box. Submitting the comment causes another jump to the end.

This loses my position in the diff and interrupts line-by-line review.

What steps can reproduce the bug?
  1. Open a project with changes and open the review/diff pane.
  2. Scroll to a section above the end of the document.
  3. Open an inline comment box on a line.
  4. Observe that the chat takes focus and the review view jumps to the end of the document.
  5. Enter and submit the comment.
  6. Observe that the review view jumps to the end again.

These observations are from manual use; no automated reproduction or root-cause verification has been performed.

What is the expected behavior?

Opening an inline comment should focus its text box and preserve the current position in the diff. Submitting the comment should also preserve that position, so review can continue from the same lines.

Additional information

Related: #28725 reports review-window jumps and inline comment windows resetting during active session work. #22095 reports scroll-position loss during file/diff refreshes.

This report identifies a specific trigger: opening or submitting an inline review comment, with chat taking focus when the comment box opens. It is not yet confirmed whether these reports share a root cause. The focus transfer is an observed symptom, not a confirmed explanation for the scrolling.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the review/diff pane using the six steps described, including opening and submitting an inline comment above the document end. No source file or test is named; done means the comment box receives focus and both opening and submitting preserve the current diff position without moving focus to chat.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.