Pasted content in agent panel is not accessible to the agent
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
- Spawn a named subagent via the Agent tool
- Open the agent's panel in the Claude Code UI
- Paste multi-line text directly into the agent's input
- 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.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗