opencode icon indicating copy to clipboard operation
opencode copied to clipboard

ACP `session/load` does not replay the conversation

Open r1bilski opened this issue 1 month ago • 4 comments

Description

According to ACP spec:

The Agent MUST replay the entire conversation to the Client in the form of session/update notifications (like session/prompt).

(see https://agentclientprotocol.com/protocol/session-setup#loading-a-session)

Opencode does not replay the conversation, but immediately responds with session/load response.

OpenCode version

v1.0.108 (I'm getting bun segfault on the latest versions so couldn't test it there)

Steps to reproduce

  1. Set up an ACP session with Opencode
  2. Send some messages
  3. Exit the session
  4. Load the session using session/load
  5. See that opencode sends session/load response without replaying the converstation

Small JS repro: https://gist.github.com/r1bilski/9abc7a6e10aef00a011c5bfa91593516 I used JS for the repro, but originally encountered this in Go.

Screenshot and/or share link

No response

Operating System

Alpine Linux edge

Terminal

st

r1bilski avatar Nov 28 '25 16:11 r1bilski