claude-code - 💡(How to fix) Fix [BUG] claude.ai input box auto-converts filenames to hyperlinks when spacebar is pressed [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#55130Fetched 2026-05-01 05:45:28
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Error Message

Error Messages/Logs

Code Example

n/a
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

In the claude.ai chat input box, any text ending in a country-code TLD extension (such as .sh, .md) is automatically converted to a clickable hyperlink when the spacebar is pressed after typing it. This also occurs in the Claude desktop app.When users copy Terminal output containing filenames and paste into the chat box, the filenames are corrupted into markdown link syntax before being sent. This breaks AI-assisted workflows where shell commands need to be relayed accurately between Terminal and Claude.

What Should Happen?

copy and paste should operate as usual

Error Messages/Logs

n/a

Steps to Reproduce

Open claude.ai in Chrome or the Claude desktop app In the message input box type: watchdog.sh Press spacebar The text immediately turns blue and becomes a hyperlink

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

I can't pinpoint but this is relatively new

Claude Code Version

2.1.81

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

Disable automatic hyperlink conversion for text ending in country-code TLD extensions in the Claude Code chat input box to prevent corruption of filenames.

Guidance

  • Investigate the Claude Code configuration to see if there's an option to disable automatic hyperlink conversion for specific text patterns, such as country-code TLD extensions.
  • Consider adding a feature request to the Claude Code issue tracker to enhance the handling of text pasted from Terminal output.
  • Test the behavior with different types of text and TLD extensions to understand the scope of the issue.
  • Verify if this issue occurs in other browsers or platforms besides Chrome and macOS.

Example

No code snippet is provided as the issue is related to the Claude Code application behavior.

Notes

The issue seems to be specific to the Claude Code application and its handling of text input. The fact that it's a regression suggests that a previous version of the application did not exhibit this behavior.

Recommendation

Apply workaround: Manually remove the hyperlink conversion by editing the text after pasting it into the chat box, until a more permanent solution is found. This is because the issue is causing corruption of filenames and breaking AI-assisted workflows.

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 [BUG] claude.ai input box auto-converts filenames to hyperlinks when spacebar is pressed [1 participants]