opencode
opencode copied to clipboard
`/compact` fails in ACP
Description
If you try to run the /compact command through ACP, it will fail:
{"code":-32603,"message":"Internal error","data":{}}
OpenCode version
1.0.138
Steps to reproduce
- Set up an ACP session with Opencode
- Send any message
- Send
/compact - You get an error ``{"code":-32603,"message":"Internal error","data":{}}`
Small JS repro: https://gist.github.com/r1bilski/a3cb7c16868169b22dd6e787f53be067
Screenshot and/or share link
No response
Operating System
Alpine Linux edge
Terminal
st
This issue might be a duplicate of existing issues. Please check:
- #3730: ENOTCONN: issue with Zed and ACP on Windows - Reports the same RPC error code -32603 (Internal error) when sending messages via ACP on Windows, with detailed logs showing 'session/prompt' failures with socket connection issues
Feel free to ignore if none of these address your specific case.