[BUG]: "Open in Sublime Text" button on chat code artifacts fails with "Unable to open file" toast.

Open 💬 0 comments Opened Jul 2, 2026 by SolTechAI

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?

Clicking the "Open in Sublime Text" button on a code artifact in a Claude Desktop chat shows the toast "Unable to open file." The editor never launches.

Note: this is the chat artifact viewer (the code panel next to the chat, with the Opus 4.8 model selector / "Ask" box) — not the Claude Code "Code" tab.

What I ruled out (failure is isolated to the button's editor-launch step, not my config):

  • "Show in Folder" from the same dropdown works — Finder opens with the temp file present, so the file IS written to disk correctly.
  • Sublime Text is the default app for .js (verified via Get Info, "Change All" applied). Double-clicking the temp file opens it in Sublime fine.
  • The subl CLI works from Terminal (symlinked to /usr/local/bin/subl, subl --version → Build 4200).
  • tccutil reset AppleEvents + full app relaunch did not help, and no Automation permission prompt ever appeared — suggesting the button uses open -a rather than AppleEvents.

What Should Happen?

Clicking the "Open in Sublime Text" button opens the artifact file in Sublime Text.

Error Messages/Logs

UI toast: "Unable to open file." — no additional logs surfaced in the UI.

Steps to Reproduce

  1. On macOS, set Sublime Text as the default app for .js files.
  2. In Claude Desktop, generate (or open) a code artifact in a chat — e.g. a .js file.
  3. In the artifact header, click the "Open in Sublime Text" button (or pick it from the dropdown).

Result: a toast appears — "Unable to open file." Sublime Text never launches.

Note: "Show in Folder" from the same dropdown works correctly (Finder opens with the temp file), so the file is written to disk fine — only the editor-launch step fails.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Claude 1.17377.2 (e0ea9e) 2026-07-01T05:51:58.000Z

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

Diagnostics already performed (failure is isolated to the button's editor-launch step):

  • Sublime Text is the default app for .js (verified in Get Info, "Change All" applied). Double-clicking the temp file opens it in Sublime fine.
  • The subl CLI works from Terminal (symlinked to /usr/local/bin/subl; subl --version → Build 4200).
  • tccutil reset AppleEvents + full app relaunch did not help.
  • Clicking the button never triggered an Automation permission prompt — suggesting it uses open -a rather than AppleEvents.
  • "Show in Folder" (same dropdown) works, so the temp file is written to disk correctly.

Environment:

  • macOS Tahoe 26.5.1 (25F80) (Apple Silicon)
  • Sublime Text Build 4200, /Applications/Sublime Text.app
  • Claude Desktop version: Claude 1.17377.2 (e0ea9e) 2026-07-01T05:51:58.000Z

Platform note: not API-related — this is the Claude Desktop app's chat artifact "Open in editor" button on macOS.

Workaround: "Show in Folder" → double-click, or the Copy button.

View original on GitHub ↗