[BUG] Desktop app intercepts Windows screenshot shortcuts and triggers file-association errors on Windows 11.
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?
When the Claude Code desktop app (v2.1.143) has window focus on Windows 11, pressing any standard screenshot shortcut (PrtSc, Win+Shift+S, Win+PrtSc) or attempting to open an image file triggers the following Windows error instead of performing the expected action:
▎ This file does not have an app associated with it for performing this action. Please, install an app or, if one is
▎ already installed, create an association in the Default app settings page.
The error does not occur when Claude Code is minimized or defocused, confirming that the app is the trigger.
What Should Happen?
Expected Behavior
Windows system shortcuts and image-file opens should be handled by the OS normally, regardless of whether Claude Code has focus. Screenshots should be taken, files should open in their default viewer.
Actual Behavior
Claude Code appears to be consuming or intercepting these system-level events and then attempting to hand image data off via a Windows file-type association lookup. When that lookup fails (or the app handles it incorrectly), Windows displays the file-association error dialog. The net effect is that users cannot take screenshots or open images while Claude Code is focused.
Error Messages/Logs
This file does not have an app associated with it for performing this action. Please, install an app or, if one is already installed, create an association in the Default app settings page.
Steps to Reproduce
- Open the Claude Code desktop app and ensure the window has focus.
- Press Win + Shift + S (Snipping Tool shortcut).
- The Snipping Tool does not launch. Instead, the Windows file-association error dialog appears.
- Repeat with PrtSc — same error.
- Repeat with Win + PrtSc, then navigate to Pictures\Screenshots and attempt to open the resulting .png file — same error.
- Minimize or defocus Claude Code and repeat steps 2–5 — everything works correctly.
Claude Model
Other
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.143
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
<img width="1917" height="871" alt="Image" src="https://github.com/user-attachments/assets/b6d501aa-36c5-4a91-82f6-a2b21f70f2ea" />
Root Cause Hypothesis
The desktop app likely registers a clipboard hook or global input handler (possibly related to paste/image-paste
detection) that preempts Windows' normal handling of these shortcuts. When an image is detected, the app attempts to
process it through a Windows shell file-association pathway that is either unregistered or incorrectly configured,
resulting in the file-association error dialog.
Impact
- Screenshots cannot be taken while Claude Code has focus
- Image files cannot be opened from File Explorer while Claude Code has focus
- The only workaround is minimizing or switching away from Claude Code first, which disrupts normal workflow
Additional Notes
- Verified against clean configuration: no keybindings.json, no hooks.json, no non-default settings.json
- Screenshot of the error is available but could not be attached inline; can be provided separately
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗