# v0.25.10 Release Notes

> v0.25.9 -> v0.25.10

## Summary

Introduces a three-tier conversation memory architecture — context window, ToriiDB vector search, and SQLite full-text archive — so that no message is ever lost regardless of history compaction or session resets. Trims rarely-used bundled API definitions to reduce tool-discovery noise.
<details>
<summary>翻譯</summary>
引入三層對話記憶架構——上下文視窗、ToriiDB 向量搜尋、SQLite 全文歸檔——確保無論 history 裁剪或 session 重置，任何訊息都不會遺失。移除不常用的內建 API 定義以降低工具探索噪音。
</details>

## Changes

### ADD
- Add SQLite-backed history store with FTS5 full-text search, dual-write on every message append, auto-backfill for existing sessions, and compact-safe `session_meta.start_at` tracking (@pardnchiu) [0442dd9]
- Add `MaxHistoryBytes` runtime limit (default 5 MiB) with auto-compact to 80% on user+assistant pair boundary, including ToriiDB cleanup for entries before the cutoff (@pardnchiu) [0442dd9]
- Add `mode` parameter to `search_conversation_history` tool: `keyword` routes to SQLite FTS5 + ToriiDB substring, `semantic` routes to ToriiDB VSearch (@pardnchiu) [0442dd9]
- Add outstanding contributors section to bilingual READMEs (@pardnchiu) [e64098d]

<details>
<summary>翻譯</summary>

- 新增 SQLite 歷史儲存層，支援 FTS5 全文搜尋、每次 append 雙寫、既有 session 自動回填、compact-safe 的 `session_meta.start_at` 追蹤
- 新增 `MaxHistoryBytes` runtime limit（預設 5 MiB），超過時自動裁剪至 80%（user+assistant pair 邊界），同步清理 ToriiDB 早於裁剪點的 entries
- `search_conversation_history` 工具新增 `mode` 參數：`keyword` 走 SQLite FTS5 + ToriiDB 子字串、`semantic` 走 ToriiDB VSearch
- 雙語 README 新增傑出貢獻者區段

</details>

### UPDATE
- Update memory system documentation across README (EN/ZH) and Wiki (EN/ZH) to reflect three-tier architecture (@pardnchiu) [83680ff]

<details>
<summary>翻譯</summary>

- 更新 README（英/中）與 Wiki（英/中）的記憶系統文件，反映三層架構

</details>

### REMOVE
- Remove 5 rarely-used bundled API definitions: nominatim, rest-countries, themealdb, usgs-earthquake, world-bank (@pardnchiu) [83680ff]

<details>
<summary>翻譯</summary>

- 移除 5 個不常用的內建 API 定義：nominatim、rest-countries、themealdb、usgs-earthquake、world-bank

</details>

## Scope

- `internal/session/history/store/` — ADD (`store.go`, `write.go`, `search.go`, `migrate.sql`)
- `internal/session/history/` — ADD (`compact.go`), UPDATE (`history.go`)
- `internal/filesystem/` — UPDATE (`path.go`, `runtime.go`)
- `internal/tools/` — UPDATE (`searchConversationHistory.go`)
- `internal/session/` — UPDATE (`reset.go`)
- `internal/runtime/tui/` — UPDATE (`commandRemoveSession.go`)
- `cmd/app/` — UPDATE (`cmdDeamon.go`, `newTUI.go`)
- `extensions/apis/` — REMOVE (5 files)
- `wiki/` — UPDATE (`Memory-System.md`, `Memory-System.zh.md`)
- `README.md`, `doc/README.zh.md` — ADD, UPDATE
- `makefile` — UPDATE (`-tags "fts5"`)

***

Generated by [SKILL](https://github.com/pardnchiu/skill-version-generate)
