Skip to content

Chat file links are not clickable, and Open in PyCharm fails #14883

Open

Description

@kopes18

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

26.313.41036

What subscription do you have?

team

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Summary
In the Windows Codex desktop app, file links inside the chat do nothing when clicked. Also, clicking Open in PyCharm fails if PyCharm is already running, even though the PyCharm process is healthy and responsive.

Environment

Windows 11
Codex desktop app for Windows
PyCharm 2025.3.3
Workspace: C:\Users\xxzz\code\quant-ai
Primary issue: chat file links do nothing
Examples:

plain path references like data/exchanges/byb_perp.py:136 are not clickable
even local file links rendered by the assistant also do nothing when clicked
Actual result

no action
no error
file is not opened in Codex
file is not opened in PyCharm
Expected result

clicking a file link in chat should open the target file, ideally in the configured editor
Secondary issue: Open in PyCharm fails
If PyCharm is already running and the project is already open, Open in PyCharm shows:

Internal error

com.intellij.platform.ide.bootstrap.DirectoryLock$CannotActivateException: Process "C:\Program Files\JetBrains\PyCharm 2025.3.3\bin\pycharm64.exe" (...) is still running and does not respond.
Important observation
PyCharm itself is not actually hung. Launching a file directly from the command line works:

& 'C:\Program Files\JetBrains\PyCharm 2025.3.3\bin\pycharm64.exe' --line 136 'C:\Users\xxzz\code\quant-ai\data\exchanges\byb_perp.py'
PyCharm logs also show that external commands are sometimes received successfully, and the existing project is reused. So this looks like a Codex integration / error-handling issue rather than a dead PyCharm process.

What I already tried

restarted PyCharm
removed JetBrains lock/state files
reinstalled PyCharm
updated Codex local config to point to PyCharm 2025.3.3 instead of an old PyCharm install
The chat file-link issue still remains, and Open in PyCharm still fails.

What steps can reproduce the bug?

  1. Open Codex desktop app on Windows.
  2. Open a workspace, for example C:\Users\xxzz\code\quant-ai.
  3. Start or continue a chat where the assistant references a local file.
  4. Click a file reference in the chat.
  5. Observe that nothing happens.

For the related PyCharm issue:

  1. Open PyCharm 2025.3.3.
  2. Open the same project/workspace in PyCharm.
  3. Go back to Codex.
  4. Click Open in PyCharm in the top-right corner.
  5. Observe the DirectoryLock$CannotActivateException error saying the running PyCharm process “does not respond.”

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Mar 17, 2026
  2. added
    bug
    windows-os
    on Mar 17, 2026
  3. changed the title [-]Windows Codex app: chat file links are not clickable, and Open in PyCharm fails against an already-running PyCharm instance[/-] [+]Chat file links are not clickable, and Open in PyCharm fails[/+] on Mar 26, 2026
  4. InnovationLou commented on Mar 26, 2026

    @InnovationLou

    Hi, I’m encountering the exact same issue in my environment, and it’s currently blocking my workflow.
    Is there any update or ETA on a fix for this?
    Happy to provide additional logs or help with testing if needed.
    Thanks!

  5. JuliGame commented on Apr 20, 2026

    @JuliGame

    same issue here

  6. michaelmcl1960 commented on Sep 19, 2026

    @michaelmcl1960

    Additional Windows reproduction and verified workaround

    Reproduced on 18 September 2026 with the ChatGPT/Codex desktop package OpenAI.Codex 26.908.4834.0, PyCharm 2025.2.3, and bundled JetBrains Runtime 21.0.9+1-b1038.78 amd64.

    With a responsive PyCharm project already open, clicking a local .py link and then the file panel’s Open button starts another PyCharm process and produces DirectoryLock$CannotActivateException. The nested errors are java.net.SocketException: Invalid argument: bind and Invalid argument: connect in sun.nio.ch.UnixDomainSockets, through DirectoryLock.tryListen / tryConnect. The existing IDE was not hung.

    Directly launching pycharm64.exe with the file path and --line 1 from the desktop app’s execution context also failed.

    Verified workaround

    Obtain an existing Windows Explorer window from Shell.Application.Windows(), then invoke that window’s Document.Application.ShellExecute with the PyCharm executable and file arguments. This opened the file in the original PyCharm process without restarting the IDE. Its log confirmed receipt of the file, line, and column.

    Calling ShellExecute on a newly created Shell.Application object alone did not work in our test; using the existing Explorer window’s Document.Application was the important difference.

    We installed this route as a custom file handler, selected it as the default destination, and restarted the desktop app to load the setting. The user confirmed that the actual file-panel Open button then worked. The workaround remained configured after the app updated to 26.915.4065.0.

    Please fix the built-in Windows JetBrains launcher so users do not have to create a custom handler individually. The observations suggest a launch-context or activation-handoff problem; they do not establish the underlying cause.

    Related JetBrains report: https://youtrack.jetbrains.com/issue/IJPL-237935

    No private source files or full logs are attached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions