/compact fails in ACP #3435

Closed
opened 2026-02-16 17:40:04 -05:00 by yindo · 1 comment
Owner

Originally created by @r1bilski on GitHub (Dec 9, 2025).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @r1bilski on GitHub (Dec 9, 2025). Originally assigned to: @rekram1-node on GitHub. ### 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
yindo added the bug label 2026-02-16 17:40:04 -05:00
yindo closed this issue 2026-02-16 17:40:04 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 9, 2025):

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] commented on GitHub (Dec 9, 2025): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3435