[BUG] Context menu dismisses when hovering/clicking the "Open in" submenu (file reference right-click menu)

Resolved 💬 3 comments Opened Jun 15, 2026 by huangrenwei79 Closed Jun 18, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Title: Context menu dismisses when hovering/clicking the "Open in" submenu (file reference right-click menu)

Body:

Description
When right-clicking (or double-clicking) a file reference in the chat transcript, a context menu appears with options like Attach as context, Copy path, Copy relative path, Copy filename, and Open in. As soon as I try to interact with the "Open in" submenu item, the entire context menu disappears instead of expanding the submenu. This makes the "Open in" action unusable.

Steps to Reproduce
In a chat session, have an assistant message that contains a clickable file reference (e.g. a generated .html file).
Right-click (or double-click) the file link to bring up the context menu.
Move the cursor to the "Open in" item, which has a › submenu indicator.
Attempt to click it / open the submenu.
Expected Behavior
The "Open in" submenu should expand and show the available applications/targets to open the file with.

Actual Behavior
The entire context menu closes immediately. The submenu never opens, so "Open in" cannot be used.

Environment
App: Claude Code (desktop app)
App version: <请填写你的版本号,在 app 设置 / About 里能看到>
OS: macOS (Darwin kernel 25.1.0)
Architecture: <Apple Silicon / Intel,请确认>
Additional Notes
The other menu items (Copy path, Copy relative path, Copy filename) appear to work as expected; the issue is specific to the nested "Open in" submenu. Reproducible every time.

What Should Happen?

Title: Context menu dismisses when hovering/clicking the "Open in" submenu (file reference right-click menu)

Body:

Description
When right-clicking (or double-clicking) a file reference in the chat transcript, a context menu appears with options like Attach as context, Copy path, Copy relative path, Copy filename, and Open in. As soon as I try to interact with the "Open in" submenu item, the entire context menu disappears instead of expanding the submenu. This makes the "Open in" action unusable.

Steps to Reproduce
In a chat session, have an assistant message that contains a clickable file reference (e.g. a generated .html file).
Right-click (or double-click) the file link to bring up the context menu.
Move the cursor to the "Open in" item, which has a › submenu indicator.
Attempt to click it / open the submenu.
Expected Behavior
The "Open in" submenu should expand and show the available applications/targets to open the file with.

Actual Behavior
The entire context menu closes immediately. The submenu never opens, so "Open in" cannot be used.

Environment
App: Claude Code (desktop app)
App version: <请填写你的版本号,在 app 设置 / About 里能看到>
OS: macOS (Darwin kernel 25.1.0)
Architecture: <Apple Silicon / Intel,请确认>
Additional Notes
The other menu items (Copy path, Copy relative path, Copy filename) appear to work as expected; the issue is specific to the nested "Open in" submenu. Reproducible every time.

Error Messages/Logs

Steps to Reproduce

Title: Context menu dismisses when hovering/clicking the "Open in" submenu (file reference right-click menu)

Body:

Description
When right-clicking (or double-clicking) a file reference in the chat transcript, a context menu appears with options like Attach as context, Copy path, Copy relative path, Copy filename, and Open in. As soon as I try to interact with the "Open in" submenu item, the entire context menu disappears instead of expanding the submenu. This makes the "Open in" action unusable.

Steps to Reproduce
In a chat session, have an assistant message that contains a clickable file reference (e.g. a generated .html file).
Right-click (or double-click) the file link to bring up the context menu.
Move the cursor to the "Open in" item, which has a › submenu indicator.
Attempt to click it / open the submenu.
Expected Behavior
The "Open in" submenu should expand and show the available applications/targets to open the file with.

Actual Behavior
The entire context menu closes immediately. The submenu never opens, so "Open in" cannot be used.

Environment
App: Claude Code (desktop app)
App version: <请填写你的版本号,在 app 设置 / About 里能看到>
OS: macOS (Darwin kernel 25.1.0)
Architecture: <Apple Silicon / Intel,请确认>
Additional Notes
The other menu items (Copy path, Copy relative path, Copy filename) appear to work as expected; the issue is specific to the nested "Open in" submenu. Reproducible every time.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.161

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗