Skip to content

Text gets truncated when pasting or typing large content into the prompt field #48

@jalpizarTechnosoft

Description

@jalpizarTechnosoft

Title: Text gets truncated when pasting or typing large content into the prompt field
Description:
When entering text into the "Prompt / Paste Image" input field (top panel), the content sent to the Claude Code console (bottom panel) sometimes arrives incomplete/truncated. The full prompt is never fully received by the Claude Code CLI.
Steps to Reproduce:

Open the Claude Code Extension panel in Visual Studio 2022
Either paste a large block of copied text or manually type a long prompt into the input field
Press Enter to submit
Observe the text received in the Claude Code console below

Expected Behavior:
The full content should be transmitted to the Claude Code console exactly as entered.
Actual Behavior:
The text is cut off — only a partial portion reaches the console. The truncation point appears to be non-deterministic (doesn't always cut at the same place).
Reproducibility:
Intermittent — no consistent pattern identified yet. It occurs sporadically across different input methods (paste and manual typing).
Environment:

Extension: Claude Code Extension for Visual Studio by Daniel Carvalho Liedke
IDE: Visual Studio 2022
Claude Code version: v2.1.132
Model: Sonnet 4.6 · Claude Team

Additional Context:
Unable to determine a reliable reproduction path. No specific character threshold or character type has been identified as a trigger. It occurs sporadically.
If helpful for debugging, consider adding input length logging on both ends (prompt field dispatch and console receive) to capture the delta when truncation occurs. Possible root causes to investigate: input stream buffer size limit, async write race condition, or newline/encoding handling during input events.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions