Skip to content

v0.12.5

Choose a tag to compare

@huseyincig huseyincig released this 22 Oct 20:57
· 9 commits to main since this release

OpenCode Guardian v0.12.5 Release Notes

  • Degenerative Reasoning & Text Loop Breaker: Language-agnostic detection (detectDegenerativeLoop in src/degeneration.ts) of runaway model repetition cycles (DeepSeek V4.1 Flash 'Hmm...', Kimi repeating Chinese/Japanese token cascades, runaway punctuation, code repeat loops like 'None, None, None...', and low-entropy babble collapse).
  • In-Flight Live Streaming Abort: Real-time stream interceptor on message.part.updated events in both V1 and V2 host adapters immediately invokes client.session.abort or context.session.interrupt after $\ge 40$ chars of detected loop growth ($< 0.02$ ms execution overhead), preventing thousands of wasted generation tokens.
  • Circuit Breaker Turn Inspection: runtime/circuit-breaker inspects assistant text and reasoning parts, emitting structured findings and actionable remediation directives.
  • Negative False-Positive Protections: Exempts Markdown table rows (|---|---|), comment banners (// ===), hash dividers, fixture arrays, and standard code loops.
  • 765 Tests Passing: 24 new regression tests covering multilingual positive cases, negative exemptions, circuit breaker tripping, and V1/V2 streaming aborts.