Skip to content

docs(opencode): say where compaction is configured - #27614

Merged
maria-rcks merged 3 commits into
pingdotgg:mainfrom
wagner-deoliveira:docs/opencode-compaction-settings
Nov 1, 2026
Merged

maria-rcks merged 3 commits into
pingdotgg:mainfrom
wagner-deoliveira:docs/opencode-compaction-settings

Conversation

@wagner-deoliveira

Copy link
Copy Markdown
Contributor

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 under compaction in opencode.json (auto, buffer, keep.tokens), and /compact compacts 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

  • Checked the three setting names, their meanings, and the V2-only scope against OpenCode's v2.2.0 compaction page, which states that its settings apply to V2 and that V1 used different pruning behavior.
  • Checked that /compact is a built-in slash command for OpenCode in packages/provider-opencode/src/server/status.ts.
  • I did not run the app or compact a real thread. I did not check OpenCode 1.x's settings, so the page only says they differ.

Written by Claude Sonnet 5.5 in Claude Code.

🤖 Generated with Claude Code

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants