Repository navigation
docs(opencode): say where compaction is configured - #27614
Merged
maria-rcks merged 3 commits intoNov 1, 2026
Merged
maria-rcks merged 3 commits into
maria-rcks merged 3 commits into
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Claude provider guide has a "Compact long conversations" section, but the OpenCode guide never says where compaction is configured. T3 Code has no OpenCode compaction setting, so a user whose OpenCode thread compacts too early or loses detail has nothing in the docs to point them at OpenCode's own config.
Change
Adds a short "Compaction" section to
docs/user/providers-opencode.md: compaction is OpenCode's own, the settings live undercompactioninopencode.json(auto,buffer,keep.tokens), and/compactcompacts a thread by hand. The settings are marked OpenCode 2 only.Scope and approval
Docs only, one file, no behavior change. This is the discoverability case from CONTRIBUTING.md: an existing workflow (OpenCode's config) already covers the need, and the docs don't say so.
Verification
/compactis a built-in slash command for OpenCode inpackages/provider-opencode/src/server/status.ts.Written by Claude Sonnet 5.5 in Claude Code.
🤖 Generated with Claude Code