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
- Send a
/command foo bar\n\nbaz\n\nquux in ACP mode, and the arguments are joined together.
Screenshot and/or share link
Operating System
Ubuntu 24.04
Terminal
Alacritty
Description
ACP command argument parsing in
agent.tsdestroys 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
/command foo bar\n\nbaz\n\nquuxin ACP mode, and the arguments are joined together.Screenshot and/or share link
Operating System
Ubuntu 24.04
Terminal
Alacritty