diff options
| author | Aiden Cline <[email protected]> | 2026-02-10 19:55:22 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-10 19:55:22 -0600 |
| commit | 0fd6f365be0a41f5ccbad93adddbc2161a069b05 (patch) | |
| tree | bedba80c5a78362bed89f6689fd7ff4c283dd5f1 /packages/web/src/content | |
| parent | 60bdb6e9ba3edeacf03b001a953fec1961c2d1f8 (diff) | |
| download | opencode-0fd6f365be0a41f5ccbad93adddbc2161a069b05.tar.gz opencode-0fd6f365be0a41f5ccbad93adddbc2161a069b05.zip | |
fix(core): ensure compaction is more reliable, add reserve token buffer to ensure that input window has enough room to compact (#12924)
Co-authored-by: James Lal <[email protected]>
Diffstat (limited to 'packages/web/src/content')
| -rw-r--r-- | packages/web/src/content/docs/config.mdx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/web/src/content/docs/config.mdx b/packages/web/src/content/docs/config.mdx index 5cc9d8666..eeccde2f7 100644 --- a/packages/web/src/content/docs/config.mdx +++ b/packages/web/src/content/docs/config.mdx @@ -490,13 +490,15 @@ You can control context compaction behavior through the `compaction` option. "$schema": "https://opencode.ai/config.json", "compaction": { "auto": true, - "prune": true + "prune": true, + "reserved": 10000 } } ``` - `auto` - Automatically compact the session when context is full (default: `true`). - `prune` - Remove old tool outputs to save tokens (default: `true`). +- `reserved` - Token buffer for compaction. Leaves enough window to avoid overflow during compaction --- |
