claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Allow viewing and editing content of “pasted text” blocks before submission

Open lbguilherme opened this issue 1 year ago • 88 comments

Environment

  • Claude Code version: 1.0.51
  • Operating System: macOS 15 Sequoia
  • Terminal: Ghostty
  • Dictation software: MacWhisper

Description

When using dictation software that “pastes” spoken text into Claude Code, the content appears as a collapsed block (e.g., [Pasted text +34 lines]) with no way to preview or edit the content before submission. This creates accessibility issues for users who rely on voice-to-text software.

Use Case

I use dictation software to speak my instructions to Claude Code. The workflow is:

  1. I speak my prompt/instructions
  2. The dictation software “pastes” the transcribed text into the terminal
  3. Claude Code collapses it into [Pasted text +X lines]
  4. I cannot see what was actually transcribed before submitting
  5. I cannot edit any transcription errors or make adjustments

This forces me to either:

  • Submit potentially incorrect or incomplete prompts
  • Use alternative methods that break my accessibility workflow

Expected Behavior

  • Option 1: Keyboard shortcut to expand/view the pasted content.
  • Option 2: Configuration option to disable text collapsing for accessibility.
  • Option 3: Edit mode that allows modifying the collapsed text. Maybe opening the current prompt in $EDITOR.

Current Behavior

No way to preview or edit the content once it’s collapsed into the placeholder.

Additional Context

This impacts accessibility for users who rely on assistive technologies. The current workaround of saving to files and referencing them breaks the natural flow of voice-driven workflows.

Similar issues: #143 (Better ergonomics for long text)

lbguilherme avatar Jul 12 '25 17:07 lbguilherme

This is an issue even without the speech-to-text use case.

I frequently use the up arrow to examine my previous prompts. But all I see when I do that is "[Pasted text #3 +15 lines]" which is both opaque and unhelpful.

I need to be able to view the actual contents of my prompt history.

Looking4OffSwitch avatar Sep 10 '25 14:09 Looking4OffSwitch

This is an issue even without the speech-to-text use case.

I frequently use the up arrow to examine my previous prompts. But all I see when I do that is "[Pasted text #3 +15 lines]" which is both opaque and unhelpful.

I need to be able to view the actual contents of my prompt history.

Looking4OffSwitch avatar Sep 10 '25 14:09 Looking4OffSwitch

+1 for this feature request

I'm experiencing the same issue on Windows with VS Code terminal (Claude Code v2.0.33), so this isn't macOS-specific.

My use case: I built a custom voice recording application that:

  • Records audio in my native language
  • Transcribes via Whisper API
  • Translates and formats the output
  • Auto-pastes into Claude Code

For 2-3 minute recordings (~500-1000 chars), the text appears as [Pasted text #1] with no way to review or edit before submission. This breaks my workflow since I can't catch transcription/translation errors or refine prompts.

Current workaround: Submit + ESC ESC (uncomfortable and hacky)

This feature would benefit not just accessibility users but anyone with automated prompt generation workflows. The fact that multiple people are reporting this across different platforms and use cases suggests this is becoming a real pain point.

Would love to see any of the proposed solutions implemented - even a simple keyboard shortcut to expand the placeholder would be incredibly helpful!

balkoonline avatar Nov 05 '25 08:11 balkoonline

+1 for this feature request

I'm experiencing the same issue on Windows with VS Code terminal (Claude Code v2.0.33), so this isn't macOS-specific.

My use case: I built a custom voice recording application that:

  • Records audio in my native language
  • Transcribes via Whisper API
  • Translates and formats the output
  • Auto-pastes into Claude Code

For 2-3 minute recordings (~500-1000 chars), the text appears as [Pasted text #1] with no way to review or edit before submission. This breaks my workflow since I can't catch transcription/translation errors or refine prompts.

Current workaround: Submit + ESC ESC (uncomfortable and hacky)

This feature would benefit not just accessibility users but anyone with automated prompt generation workflows. The fact that multiple people are reporting this across different platforms and use cases suggests this is becoming a real pain point.

Would love to see any of the proposed solutions implemented - even a simple keyboard shortcut to expand the placeholder would be incredibly helpful!

balkoonline avatar Nov 05 '25 08:11 balkoonline

Current workaround: Submit + ESC ESC (uncomfortable and hacky)

I'm not able to get this to work either - I can see the full text of the cancelled prompt but if I try and cycle back to it with the ↑ key it just truncates again so I still can't edit it.

blackbird-chrisf avatar Nov 05 '25 10:11 blackbird-chrisf

Current workaround: Submit + ESC ESC (uncomfortable and hacky)

I'm not able to get this to work either - I can see the full text of the cancelled prompt but if I try and cycle back to it with the ↑ key it just truncates again so I still can't edit it.

blackbird-chrisf avatar Nov 05 '25 10:11 blackbird-chrisf

Current workaround: Submit + ESC ESC (uncomfortable and hacky)

I'm not able to get this to work either - I can see the full text of the cancelled prompt but if I try and cycle back to it with the ↑ key it just truncates again so I still can't edit it.

I’m using a Voice Agent that auto-pastes the transcription, so I never see the pasted text before submitting. When I press Escape to interrupt Claude Code, the hidden text suddenly appears — that’s how I can tell what was actually pasted. Then I copy it, split it into smaller chunks, and paste it back manually so it doesn’t get truncated. Another possible workaround would be to keep a blank text file or editor open, paste everything there first, review or edit it, and then paste the final version into Claude Code. But both ways are really inconvenient — it’s frustrating that there’s such a simple fix for this, yet we have to break our workflow like this to work around it.

balkoonline avatar Nov 05 '25 11:11 balkoonline

Current workaround: Submit + ESC ESC (uncomfortable and hacky)

I'm not able to get this to work either - I can see the full text of the cancelled prompt but if I try and cycle back to it with the ↑ key it just truncates again so I still can't edit it.

I’m using a Voice Agent that auto-pastes the transcription, so I never see the pasted text before submitting. When I press Escape to interrupt Claude Code, the hidden text suddenly appears — that’s how I can tell what was actually pasted. Then I copy it, split it into smaller chunks, and paste it back manually so it doesn’t get truncated. Another possible workaround would be to keep a blank text file or editor open, paste everything there first, review or edit it, and then paste the final version into Claude Code. But both ways are really inconvenient — it’s frustrating that there’s such a simple fix for this, yet we have to break our workflow like this to work around it.

balkoonline avatar Nov 05 '25 11:11 balkoonline

At latest support editing the long text with visual editor popuped by shortcut Ctrl+G .

whinc avatar Nov 16 '25 08:11 whinc

At latest support editing the long text with visual editor popuped by shortcut Ctrl+G .

whinc avatar Nov 16 '25 08:11 whinc

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 16 '25 10:12 github-actions[bot]

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 16 '25 10:12 github-actions[bot]

The issue is still occurring.

jziggas avatar Dec 16 '25 12:12 jziggas

i'd really love the ability to see the pasted text, and turn it off by default. especially now that we can modify the input buffer with vim.

dionysuzx avatar Jan 05 '26 19:01 dionysuzx

i'd really love the ability to see the pasted text, and turn it off by default. especially now that we can modify the input buffer with vim.

dionysuzx avatar Jan 05 '26 19:01 dionysuzx

+1, I find the current implementation extremely annoying and frustrating, I would really like the option to see the pasted text as well

HeiMaerzPS avatar Jan 07 '26 20:01 HeiMaerzPS

+1, I find the current implementation extremely annoying and frustrating, I would really like the option to see the pasted text as well

HeiMaerzPS avatar Jan 07 '26 20:01 HeiMaerzPS

omg yes... turn this feature OFFFFF

ivan-v-scopic avatar Jan 09 '26 14:01 ivan-v-scopic

omg yes... turn this feature OFFFFF

ivan-v-scopic avatar Jan 09 '26 14:01 ivan-v-scopic

Why was this issue closed without an explanation and marked as "completed" when the problem clearly persists?

I just tried the latest version of Claude Code and it's still not possible to paste longer text, as it displays it as: [Pasted text #1 +X lines]

balkoonline avatar Jan 13 '26 23:01 balkoonline