[PR #6563] fix(acp): persist session state to disk and add isReplay metadata #11976

Open
opened 2026-02-16 18:16:54 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6563

State: open
Merged: No


Note: This was vibe-coded (using sst/opencode tho), sorry! I know that this is a lot but I'd appreciate if you would consider this, it is a per-requisite for https://github.com/BloopAI/vibe-kanban/pull/1717

Fixes session resumption when the ACP process restarts:

  • Persist ACP session state to ~/.local/share/opencode/storage/acp_state/
  • Restore session from disk when not found in memory
  • Make session manager methods async to support disk I/O

Add isReplay metadata to session updates during history replay:

  • Mark all sessionUpdate notifications with _meta.isReplay: true when
    replaying session history via loadSession
  • Allows ACP clients to filter/handle replay events differently

Happy and prosperous 2026!

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6563 **State:** open **Merged:** No --- Note: This was vibe-coded (using sst/opencode tho), sorry! I know that this is a lot but I'd appreciate if you would consider this, it is a per-requisite for https://github.com/BloopAI/vibe-kanban/pull/1717 Fixes session resumption when the ACP process restarts: - Persist ACP session state to ~/.local/share/opencode/storage/acp_state/ - Restore session from disk when not found in memory - Make session manager methods async to support disk I/O Add isReplay metadata to session updates during history replay: - Mark all sessionUpdate notifications with _meta.isReplay: true when replaying session history via loadSession - Allows ACP clients to filter/handle replay events differently Happy and prosperous 2026!
yindo added the pull-request label 2026-02-16 18:16:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11976