Claude Code links in code-server webview open as URLs instead of editor actions

Resolved 💬 2 comments Opened May 23, 2026 by SYFATP Closed May 27, 2026

Hi team,

I found a compatibility issue when using Claude Code in code-server.

Inside the Claude webview, file links and command: links are being treated as normal URLs instead of editor actions.

Repro

  1. Open Claude Code inside code-server
  2. Click a file link rendered in the chat output, or click a command link such as:
[test](command:workbench.action.quickOpen)

Actual behavior

  • File links navigate to a webview/static URL and often end in 404
  • command: links do not execute commands
  • Instead, they navigate within the webview (for example to the webview index.html)

Expected behavior

  • File links should open the target file in the editor, ideally at the correct line
  • Command-like interactions should be handled by the extension host, not as normal anchor navigation

Suggested fix

A more robust approach may be to avoid relying on raw anchor href behavior in webviews, especially in code-server.

Instead:

  • intercept link clicks in the webview
  • send a message via vscode.postMessage(...)
  • let the extension host open the file / execute the command using existing APIs

This seems especially relevant for code-server, where webview link handling differs from desktop VS Code.

Thanks!

View original on GitHub ↗

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