Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

docs(changelog): record OpenCode 2 compaction import (#1824)

Vinícius DS Andrade9f28046d69df
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e65cba04..6e632414 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,9 @@ version in [`docs/changelog/`](docs/changelog/):
### Fixed
+- Imported OpenCode 2 compaction session messages into the managed workstream
+ ledger (`summary`, or `error.message` on a failed compaction) instead of
+ dropping them with no event and no loss (#1824).
- Refused empty and whitespace-only `--workspace` and `--project` flags at the
shared CLI scope-resolution choke point (`resolve_scope`,
`resolve_scope_noting_marker_project`, `resolve_scope_with_marker`, and
diff --git a/docs/managed-workstreams.md b/docs/managed-workstreams.md
index f8224ee7..e60821a4 100644
--- a/docs/managed-workstreams.md
+++ b/docs/managed-workstreams.md
@@ -562,6 +562,10 @@ another shell, pass `--workstream-id <uuid>` explicitly. Search results preserve
the source harness, role, event sequence, and content. Historical tool activity
is labelled completed evidence and must never be replayed as a pending call.
+OpenCode 2 compaction messages import their `summary` as a compaction event
+(and, when a failed compaction has no summary, `error.message`). The V1 adapter
+already imported compaction parts the same way.
+
Search and tail also return optional `source_record_id` and `metadata` fields.
The text CLI prints the source record and correlation metadata as escaped JSON;
`--json` preserves these fields for consumers. Older server responses without