From bca011a2a2a9fc63f1503812bdb6c21b44786eed Mon Sep 17 00:00:00 2001 From: Wagner Rosa <60220411+wagner-deoliveira@users.noreply.github.com> Date: Fri, 30 Oct 2026 14:27:18 +0100 Subject: [PATCH 1/2] docs(opencode): say where compaction is configured Co-Authored-By: Claude Sonnet 5.5 --- docs/user/providers-opencode.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/user/providers-opencode.md b/docs/user/providers-opencode.md index 9ecee2a0439c2..6e449424166e1 100644 --- a/docs/user/providers-opencode.md +++ b/docs/user/providers-opencode.md @@ -22,6 +22,14 @@ started on 1.x continue on 2.x. Plan mode uses OpenCode's `plan` agent. +## Compaction + +OpenCode compacts long conversations itself, and T3 Code has no setting for it. On +OpenCode 2, change it in your `opencode.json` under `compaction`: `auto` turns +automatic compaction on or off, `buffer` sets the token headroom, and `keep.tokens` +sets how much recent context stays. OpenCode 1.x configures compaction differently. +Send `/compact` to compact a thread yourself. + ## Local or external server Leave **Server URL** empty to let T3 Code start OpenCode locally. A password in From c9195ffa1b00eb712cc3894fabc0bd9111ce5031 Mon Sep 17 00:00:00 2001 From: Wagner Rosa <60220411+wagner-deoliveira@users.noreply.github.com> Date: Fri, 30 Oct 2026 14:42:44 +0100 Subject: [PATCH 2/2] docs(opencode): name any OpenCode config file for compaction Co-Authored-By: Claude Sonnet 5.5 --- docs/user/providers-opencode.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/user/providers-opencode.md b/docs/user/providers-opencode.md index 6e449424166e1..9166469791d9f 100644 --- a/docs/user/providers-opencode.md +++ b/docs/user/providers-opencode.md @@ -25,7 +25,8 @@ Plan mode uses OpenCode's `plan` agent. ## Compaction OpenCode compacts long conversations itself, and T3 Code has no setting for it. On -OpenCode 2, change it in your `opencode.json` under `compaction`: `auto` turns +OpenCode 2, change it under `compaction` in an OpenCode configuration file, such as +`opencode.json`: `auto` turns automatic compaction on or off, `buffer` sets the token headroom, and `keep.tokens` sets how much recent context stays. OpenCode 1.x configures compaction differently. Send `/compact` to compact a thread yourself.