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 failed tool result import (#1823)

Vinícius DS Andradea9b422c42cba
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e65cba04..32bc7f0c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,9 @@ version in [`docs/changelog/`](docs/changelog/):
### Fixed
+- Kept OpenCode 2 failed tool results in the managed workstream ledger,
+ including their visible error text and error status, instead of importing
+ only the call and recording a status-error loss (#1823).
- 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..a172fd67 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 tool failures contribute their visible error text as a result, with
+`status: "error"` and `is_error: true` in the ledger metadata. Successful calls
+keep their ordinary `state.content` text parts.
+
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