What's Changed
- Add experimental
compress.mode: "message", which lets DCP compress individual raw messages instead of only full ranges. - Prioritize compression targets by message size, keep protected refs and completed compress calls visible, and preserve IDs across multipart content for more reliable message-mode behavior.
- Improve
rangemode with multi-range compression support and addcompress.summaryBufferso active summaries can extend the effectivemaxContextLimitin long sessions. - Fix stale token and message-id handling after native
/compact, count tool arguments more accurately, and clean up prompt/schema/config behavior. - Add the
scripts/opencode-message-token-countsinspector, expand compression and token-usage test coverage, and add GitHub issue templates.
Full Changelog: v3.0.4...v3.1.0