claude-code - 💡(How to fix) Fix [Feature Request] Add setting to disable Preview feature entirely [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#51636Fetched 2026-04-22 07:56:56
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Code Example

{
  "preview": {
    "enabled": false
  }
}
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Problem

The "Link to [domain] was blocked. Preview only supports localhost URLs" toast appears persistently in Claude Desktop, even outside of active Claude Code sessions (e.g., while chatting in regular conversations on claude.ai desktop app). It triggers on any non-localhost URL that appears in the conversation, which is constant during development work where Claude outputs URLs to docs, GitHub, Stack Overflow, etc.

Closing the Preview panel does not stop the toast. Restarting the app only helps temporarily.

Current state

There is no way to disable the Preview feature:

  • No UI setting
  • No flag in settings.json / .claude/settings.local.json
  • No documented environment variable
  • No CLI argument

Request

Add an explicit setting to fully disable the Preview feature for users who don't use it, e.g.:

{
  "preview": {
    "enabled": false
  }
}

Alternatively, ensure the Preview URL interception only activates when a Preview panel is explicitly opened, and fully deactivates when closed.

Environment

  • Claude Desktop version: [completá con tu versión — la ves en Settings/About]
  • OS: [Windows / macOS / Linux + versión]

Related issues

  • #27263 (external URL allowlist)
  • #27511 (custom domain allowlist)
  • #29354 (multiple tabs/URLs support)

These address adjacent problems but none offer a way to simply turn the feature off.

Proposed Solution

Option to disable preview

Alternative Solutions

No response

Priority

Critical - Blocking my work

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

Im using claude code (desktop), and can't disable the message about bloking url

<img width="596" height="342" alt="Image" src="https://github.com/user-attachments/assets/16ca488f-86dd-46d1-9c26-4cf276a396eb" />

extent analysis

TL;DR

The user needs a way to disable the Preview feature in Claude Desktop to prevent persistent "Link to [domain] was blocked" toasts.

Guidance

  • The issue seems to be related to the Preview feature's URL interception, which is currently always active.
  • To mitigate this, the user could try to only use localhost URLs in their conversations, but this is not a practical solution for development work.
  • The proposed solution is to add an explicit setting to disable the Preview feature, such as the suggested JSON configuration: json { "preview": { "enabled": false } }.
  • Another possible solution could be to modify the Preview feature to only activate when a Preview panel is explicitly opened and deactivate when closed.

Example

No code snippet is provided as the issue is more related to the feature's behavior rather than a specific code implementation.

Notes

The issue lacks information about the current version of Claude Desktop and the operating system used, which could be relevant for providing a more specific solution.

Recommendation

Apply workaround: The user could try to use a different approach, such as using a localhost URL proxy or a browser extension to bypass the Preview feature's URL interception, until an official solution is implemented.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Feature Request] Add setting to disable Preview feature entirely [1 participants]