Repository navigation
Releases
Releases · andrejtonev/opencode-short-term-memory
v1.4.0 — OpenCode V2 support and native memory controls
STM 1.4 adds OpenCode V2 support alongside V1, native memory controls, and more reliable memory updates and reset behavior.
Highlights
- OpenCode V2 support: background updates, clean/active summarization, explicit memory models, both delivery modes, child-memory snapshots and compaction integration.
- Native
/stmmenu on both versions: navigable results for memory, status and settings; confirmed reset and optional example configuration. Read actions bypass the chat model; Update uses the memory model. - Dedicated memory tools: seven
stm_memory_*tools, with theshort_term_memorycompatibility tool retained. - Automatic configuration: supported global and local installations create minimal
stm.jsonon first activation, preserving existing settings. No separate setup step is required.
Changes and fixes
- Session-message delivery is now the default. Periodic reminders do not rewrite the system prefix or request an assistant reply. System/context delivery remains optional in clean mode.
- Model selection follows OpenCode defaults. Blank
memoryModeluses the fresh-session default in clean mode or the conversation model in active mode. Explicit overrides work in either mode; the hardcoded free-model default is removed. - Logs returns the log-file path, keeping log contents out of dialogs and model responses.
- Reset starts a new memory period: persistent history boundaries and stale-update fencing prevent background generation from restoring pre-reset memory.
- More reliable updates: improved checkpoint/write-failure handling, preservation of concurrent memory edits, internal STM traffic filtering, temporary-session cleanup and actionable provider errors.
- Safer diagnostics: omit prompt/memory dumps, redact recognized credentials and apply compatible dependency security patches.
Upgrading
Restart OpenCode after upgrading and select the bare /stm command from native autocomplete. Use its menu rather than /stm show or /stm-cmd. Existing STM configuration is preserved.
See the README for V1/V2 installation instructions and the configuration guide for defaults and paths.
Available on npm as @atonev/opencode-short-term-memory@1.4.0 under latest. The attached tarball is the validated published package.
Validation: 1,401 source tests passed with four platform skips and zero failures; fresh-package import/declaration checks passed. The npm tarball matches the frozen archive byte for byte.