Codex App fails to open files in IntelliJ IDEA 2026.2 due to CLI argument order

Open 💬 0 comments Opened Jul 29, 2026 by Xiaser

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

26.721.81911 (build 5973)

What subscription do you have?

Plus

What platform is your computer?

Darwin 25.5.0 arm64 arm (macOS 26.5.2)

What issue are you seeing?

When clicking a local file link with a line number in Codex App, IntelliJ IDEA does not open or navigate to the requested line.

The Codex desktop log reports:

[open-in-service] Failed to open file
.../IntelliJ IDEA.app/Contents/MacOS/idea exited with code 1 (--line 127 --column 1 /path/to/file.java)

Running the same command directly reproduces the error:

unrecognized option: --line

What steps can reproduce the bug?

  1. Install IntelliJ IDEA 2026.2.0.1 (build IU-262.8665.337) using JetBrains Toolbox.
  2. Select IntelliJ IDEA as the Codex App “Open in” target.
  3. Open a Codex task containing a clickable local file reference with a line number.
  4. Click the file reference.

Codex invokes:

idea --line 127 --column 1 /path/to/file.java

The IDEA process exits with code 1 and the file is not opened at the requested line.

What is the expected behavior?

Codex should open the IntelliJ project and navigate to the referenced file and line.

With IntelliJ IDEA 2026.2, the following argument order works and was verified to navigate correctly:

idea /path/to/project --line 127 --column 1 /path/to/file.java

Codex should include the project directory before the line and column options when invoking JetBrains IDEs that require this command grammar.

Additional information

Codex App Feedback ID: 019fad07-8da8-7a63-be33-2fec3a111113

IntelliJ IDEA version: 2026.2.0.1, build IU-262.8665.337.

The failure was reproduced from the exact command recorded by the Codex open-in-service. Adding the project root before --line changes the exit code to 0 and successfully navigates to the requested line.

Potential duplicates #24975, #24726, and #18315 were reviewed. They concern Windows editor routing/IDE directory locks or missing context actions, not this macOS IDEA 2026.2 CLI argument-order failure.

View original on GitHub ↗