claude-code - 💡(How to fix) Fix Pasted content in agent panel is not accessible to the agent

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…

When a user pastes text directly into a subagent's conversation panel (the agent panel introduced with the agent-teams feature), the pasted content is converted to a placeholder like [Pasted text #2 +12 lines]. The agent only sees the placeholder reference — it cannot read the actual content.

Root Cause

When a user pastes text directly into a subagent's conversation panel (the agent panel introduced with the agent-teams feature), the pasted content is converted to a placeholder like [Pasted text #2 +12 lines]. The agent only sees the placeholder reference — it cannot read the actual content.

Fix Action

Fix / Workaround

Addressing agents directly in the panel is a new feature. This paste limitation is not obvious to users who are accustomed to pasting working normally in the main session. The workaround is to relay pasted content through the main session via SendMessage, but this is not documented and not discoverable.

Suggested fix / workaround note

RAW_BUFFERClick to expand / collapse

Summary

When a user pastes text directly into a subagent's conversation panel (the agent panel introduced with the agent-teams feature), the pasted content is converted to a placeholder like [Pasted text #2 +12 lines]. The agent only sees the placeholder reference — it cannot read the actual content.

Steps to reproduce

  1. Spawn a named subagent via the Agent tool
  2. Open the agent's panel in the Claude Code UI
  3. Paste multi-line text directly into the agent's input
  4. Observe: the agent receives [Pasted text #N +M lines] and cannot access the content

Expected behavior

Pasted text is delivered inline to the agent, just as it would be in the main session.

Actual behavior

The agent receives an opaque placeholder and has no way to retrieve the pasted content, causing it to repeatedly ask the user to provide the text another way.

Context

Addressing agents directly in the panel is a new feature. This paste limitation is not obvious to users who are accustomed to pasting working normally in the main session. The workaround is to relay pasted content through the main session via SendMessage, but this is not documented and not discoverable.

Suggested fix / workaround note

Either: (a) deliver pasted content inline to the agent, or (b) display a notice in the agent panel that pasted content should be sent via the main session, or (c) document this limitation prominently in the agent panel UI.

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…

FAQ

Expected behavior

Pasted text is delivered inline to the agent, just as it would be in the main session.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING