codex - 💡(How to fix) Fix Codex Desktop: clicking a file reference opens the right-side code pane but does not jump to the referenced line [1 comments, 2 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#17526Fetched 2026-04-12 13:27:03
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
1
Timeline (top)
labeled ×2commented ×1
RAW_BUFFERClick to expand / collapse

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

Codex 26.409.20454

What subscription do you have?

ChatGPT Pro

What platform is your computer?

Darwin 25.3.0 arm64 arm

What issue are you seeing?

I noticed an inconsistency in Codex Desktop when opening code references from the response.

When I click a code/file reference normally, Codex opens the file in the built-in right-side code pane, but it does not automatically jump to the referenced line number. It seems always open at the beginning of the file.

However, if I right-click the same reference and choose Open in VSCode, VS Code opens the file and correctly jumps to the target line.

This suggests the reference itself contains valid location information, but the built-in right-side preview/editor path is not applying that location when opening the file.

What steps can reproduce the bug?

  1. Ask Codex to reference a specific file location in its response, for example a path with a line number such as foo.rs:123 or a clickable file link with a line suffix.
  2. Click the reference normally so it opens in the built-in right-side code pane.
  3. Observe that the file opens, but the view stays at the default position instead of jumping to the referenced line.

What is the expected behavior?

  • When opening a file in the built-in right-side code pane, Codex Desktop should automatically reveal the referenced line.
  • Ideally, the target line should also be temporarily highlighted so it is easy to locate visually.

Additional information

No response

extent analysis

TL;DR

The issue can be worked around by using the "Open in VSCode" option, which correctly jumps to the referenced line number.

Guidance

  • Verify that the reference contains valid location information by checking the link or path provided by Codex.
  • Try using the "Open in VSCode" option to open the file, as this seems to work correctly.
  • Check if the issue persists when using different file types or locations.
  • Consider reporting the issue to the Codex development team, as this may be a bug in the built-in code pane.

Notes

The cause of the issue is unclear, but it seems to be related to the built-in code pane not applying the location information from the reference.

Recommendation

Apply workaround: Use the "Open in VSCode" option to open files, as this seems to work correctly and provides the expected behavior.

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

codex - 💡(How to fix) Fix Codex Desktop: clicking a file reference opens the right-side code pane but does not jump to the referenced line [1 comments, 2 participants]