File reference line links are unreliable in Codex Desktop App
Open 💬 7 comments Opened Jun 17, 2026 by musnows
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
Summary
When Codex Desktop App shows a file reference with a specific line number, clicking the reference often fails to jump to the target line.
Expected behavior
- Clicking a file reference should reliably open the file and scroll to the referenced line.
- Repeated clicks should consistently navigate to the same location.
Actual behavior
- The file may open, but the editor does not scroll to the referenced line.
- Multiple clicks sometimes still fail to reach the target line.
- The editor may remain at its previous scroll position.
Impact
This makes it difficult to inspect the exact code location that Codex is referencing, especially when reviewing plans, code explanations, or diffs.
Environment
- Codex Desktop App
- Observed repeatedly across normal usage
This appears to be a navigation/editor synchronization issue related to file reference handling.
7 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Still reproducible in Codex Desktop
26.623.41415(build4505) on macOS26.5.1(Apple Silicon).This also affects inline review code comments.
Steps to reproduce
containerEnterChain.js:63.Actual behavior
Expected behavior
This makes line-anchored review feedback effectively unusable even though the file itself opens.
same here
I can reproduce this on Codex Desktop for macOS as well.
Concrete repro from a recent thread:
codex-rs/cli/src/main.rs (line 94).3994instead of line94.This is not just a case where the viewer stays at the previous/default scroll position. The file opens and the viewer lands far away from the referenced target line, so navigation looks successful at first glance but shows unrelated code.
Expected: clicking a file reference with a line number should open the file and reveal/focus the referenced line, or at least a small surrounding range.
Actual: the correct file opens, but the line-specific scroll target is wrong by a large offset, making Codex's line-number references unreliable for code inspection.
This looks related to #30805, but my repro is on macOS Desktop rather than Windows.
here is a repro video,
https://github.com/user-attachments/assets/3f45cc65-2105-4340-bd49-4cb7785b1730
Still reproducible in Codex Desktop on macOS.
Concrete repro:
controller/user.go (line 992)targeting/Users/.../newapi/controller/user.go:992This is not just preserving the previous scroll position; the viewer appears to navigate, but to the wrong offset.
The open-source TUI parser already handles
:line,:line:col, and#L...suffixes incodex-rs/tui/src/markdown_render.rs, so this looks like a Desktop App file-reference click/editor synchronization issue.Note that the correct line is highlighted, but the file viewer fails to scroll to that line.
For me, not only does the file-viewer not open to a position which I can review the referenced line, I cannot scroll the viewer window at all.
The problem goes deeper than that, and is reproducible as follows:
./Documents/myProgram.go./Documents/myProgram.go:655Restarting the app clears the condition until an anchored link is opened again. I installed the latest available update and reproduced the issue afterward.
Expected behaviour: an anchored link should position the editor at the requested line while preserving normal scrolling; an unanchored link should open normally and should not inherit a broken anchored state.
Actual behaviour: opening an anchored local-file link appears to cache a stuck scroll position for that file path, including after the editor tab is closed.