Skip to content

Multi-line paste is split into multiple messages and sent separately #23524

@panchinpeng

Description

@panchinpeng

Description

When pasting multi-line text into the OpenCode input field in Visual Studio Code (via OpenCode extension), the content is incorrectly split and submitted as multiple messages instead of a single block.

Steps to Reproduce
Open VS Code with OpenCode extension
Focus on the OpenCode input box

Copy a multi-line text, e.g.:
line 1
line 2
line 3

Paste it into the input field
Observe the behavior

Actual Behavior
The pasted text is split into multiple parts
Each line (or each \n) triggers a separate submit event
Result: multiple messages are sent instead of one

Expected Behavior
Multi-line pasted content should be treated as a single input block
No automatic submission should occur on paste
Only explicit submit action (e.g. Ctrl+Enter / Enter depending on config) should send the message

Plugins

No response

OpenCode version

0.0.13

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

windows 10

Terminal

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions