Skip to content

Newlines in command should be preserved in ACP mode #24012

@feisuzhu

Description

@feisuzhu

Description

ACP command argument parsing in agent.ts destroys newlines. When an ACP client sends a command like /pivot prometheus\nmy multi-line prompt, the argument text arrives with all newlines replaced by spaces.

Plugins

oh-my-openagent

OpenCode version

1.14.21

Steps to reproduce

  1. Send a /command foo bar\n\nbaz\n\nquux in ACP mode, and the arguments are joined together.

Screenshot and/or share link

Image Image

Operating System

Ubuntu 24.04

Terminal

Alacritty

Metadata

Metadata

Assignees

Labels

acpbugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

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