Skip to content

fix(opencode): lower retainEveryNTurns default from 10 to 3#1186

Merged
nicoloboschi merged 1 commit intomainfrom
fix/opencode-lower-retain-default
Apr 22, 2026
Merged

fix(opencode): lower retainEveryNTurns default from 10 to 3#1186
nicoloboschi merged 1 commit intomainfrom
fix/opencode-lower-retain-default

Conversation

@DK09876
Copy link
Copy Markdown
Contributor

@DK09876 DK09876 commented Apr 21, 2026

Summary

  • Lowers the default retainEveryNTurns from 10 to 3 for the OpenCode plugin
  • Users were not seeing auto-retain fire because most sessions don't reach 10 user turns
  • Updates source default, test helpers, README, and docs to reflect the new value

Test plan

  • All 91 existing OpenCode plugin tests pass
  • Manual test: install plugin with default config and verify retain fires after 3 user messages

🤖 Generated with Claude Code

Users were not seeing auto-retain fire because 10 turns is too high
a bar for typical sessions. Lowering to 3 makes the feature work
out of the box without config changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nicoloboschi nicoloboschi merged commit 902704d into main Apr 22, 2026
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants