opencode icon indicating copy to clipboard operation
opencode copied to clipboard

`/compact` fails in ACP

Open r1bilski opened this issue 1 month ago • 1 comments

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

  1. Set up an ACP session with Opencode
  2. Send any message
  3. Send /compact
  4. 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

r1bilski avatar Dec 10 '25 01:12 r1bilski

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.

github-actions[bot] avatar Dec 10 '25 01:12 github-actions[bot]