claude-code - 💡(How to fix) Fix [DOCS] Interactive mode docs don't clarify that pasted text starting with `/` is treated as literal input [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#56885Fetched 2026-05-07 03:42:50
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

  • Or the application treated it like a slash command invocation and replied with an "Unknown command" error

Code Example

| `Ctrl+V` or `Cmd+V` (iTerm2) or `Alt+V` (Windows) | Paste from clipboard | Text: inserts content into the prompt, even when it begins with `/`. Image: inserts an `[Image #N]` chip at the cursor so you can reference it positionally in your prompt |
RAW_BUFFERClick to expand / collapse

Documentation Type

Other

Documentation Location

https://code.claude.com/docs/en/interactive-mode

Section/Topic

"Paste image from clipboard" shortcut row (line 34), or a new section on pasting text vs. invoking commands

Current Documentation

The Interactive mode keyboard shortcut table shows:

Ctrl+V or Cmd+V (iTerm2) or Alt+V (Windows) | Paste image from clipboard | Inserts an [Image #N] chip at the cursor...

The table only documents image pasting. There is no documentation of what happens when you paste text (plain text, not an image) into the prompt — particularly when that text begins with /.

What's Wrong or Missing?

In versions before v2.1.132, pasting text that started with / (for example, a file path, shell snippet, or plain text that happened to begin with /) could behave unexpectedly:

  • The pasted input was silently swallowed and never sent to Claude
  • Or the application treated it like a slash command invocation and replied with an "Unknown command" error

As of v2.1.132, that broken behavior is fixed. The docs still do not explain what users should expect when they paste plain text that begins with /.

What should be documented

The Interactive mode page should clarify:

  1. Pasting text vs. invoking commands: When you paste plain text (as opposed to an image), the content is inserted into the prompt instead of being swallowed or misparsed as a slash command.

  2. How to submit pasted text: Press Enter to send the pasted content after it is inserted.

This behavior is now consistent with what most users would expect, but without explicit documentation users who encountered the pre-v2.1.132 bug may still believe that pasting /something is unsafe or behaves differently from typing it.

Suggested Improvement

Add a clarification note to the Ctrl+V / Cmd+V shortcut row in interactive-mode:

| `Ctrl+V` or `Cmd+V` (iTerm2) or `Alt+V` (Windows) | Paste from clipboard | Text: inserts content into the prompt, even when it begins with `/`. Image: inserts an `[Image #N]` chip at the cursor so you can reference it positionally in your prompt |

Alternatively, add a brief "Pasting text" subsection under a new or existing section that explains how pasted plain text is handled vs. typed input.

Impact

High - Prevents users from completing a task

Additional Context

Changelog entry (v2.1.132):

Fixed pasting text starting with / silently swallowing the input or triggering an unknown-command reply

Related entries in same version:

  • "Added a 'Pasting…' footer hint while a Ctrl+V image paste is being read from the clipboard" — same version adds a visual indicator for image paste; text paste behavior fix is in the same release
  • "Fixed pasting dumping stray escape sequences into the prompt when focus events or mouse-tracking reports interleave with the bracketed paste" — related paste fix in v2.1.132

No prior docs coverage: No page in docs/code.claude.com/ documents the behavior of pasting plain text vs. invoking slash commands. The slash-commands.md page only covers how commands are invoked via typing, not the paste scenario.

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 [DOCS] Interactive mode docs don't clarify that pasted text starting with `/` is treated as literal input [1 participants]