Skip to content

/compact fails in ACP #5304

Closed
Closed

Description

@r1bilski

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 10, 2025
  2. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 10, 2025
  3. github-actions commented on Dec 10, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    • ENOTCONN: issue with Zed and ACP on Windows #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.

  4. self-assigned this
    on Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions