v0.2.10
Cache Safety Fixes
-
Persisted reasoning clearing watermark —
clearOldReasoningandstripInlineThinkingwere ephemeral in-memory mutations that reverted on the next defer pass when OpenCode rebuilt messages fresh from its DB. This caused a double cache bust: one from the cleanup, another when the next defer pass sent messages with reasoning blocks restored. A monotoniccleared_reasoning_through_tagwatermark is now persisted insession_metaand replayed on every pass. -
Sticky system prompt date — Midnight local date changes in OpenCode's
<env>block no longer trigger a system-prompt-hash flush. The date string is frozen on first sight and only updated on cache-busting passes, eliminating one unnecessary full-prefix cache rebuild per day. -
ctx_reduce_enabledconfig wiring —ctx_reduce_enabled: falsewas never passed from plugin config to the hook, so the nudger remained active regardless of the setting. Rolling nudges injected into assistant messages caused cache busts even withctx_reducedisabled.