fix(indexer): preserve session metadata during incremental reindex

Previously the session metadata accumulator started from zero on every
  reindex pass, so an incremental update would overwrite started_at and
  message_count with values derived only from the new lines.

  Now reads the existing session row first and merges new data on top.
This commit is contained in:
tommy0103
2026-05-30 03:53:16 +08:00
parent 1d45c91a8a
commit 2b02a7b6c8
2 changed files with 13 additions and 4 deletions
+4 -3
View File
@@ -6,14 +6,15 @@
</picture>
Every past session, subagent, and workflow — searchable in natural language.
</picture>
</div>
[![stars](https://img.shields.io/github/stars/tommy0103/obelisk?style=flat-square)](https://github.com/tommy0103/obelisk/stargazers)
[![version](https://img.shields.io/github/v/tag/tommy0103/obelisk?label=version&style=flat-square)](https://github.com/tommy0103/obelisk/releases)
[![license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)
</div>
<br />