fix patch history feat/phase-2g-bundle
AI Agent git-import/068377df · 112 days ago · Apr 5, 2026 · Diff

fix(history): store pass-level summary events and fix timestamp field mismatch

- renderConsolidationHistory now reads ev.ts || ev.timestamp (real event field is ts) - ev.data.event_count accepted as fallback for total_events (per-topic shape) - hub/server.mjs POST /api/v1/memory/consolidate stores a consolidation_pass event with topics_count, total_events, cost_usd so History shows one row per button click - hub.js History query changed to type=consolidation_pass to show pass summaries - GET /api/v1/memory/consolidate/status reads from consolidation_pass events; pass_count_month now counts all passes since month start rather than always 1 - Tests updated: use ts field, add legacy timestamp fallback test, add event_count test

sha256:d445b1d8a9de885401337ab8859043d05a5a5d8c372ecf6d57ff73f0a13ef719 sha
sha256:3cff2c0251fcd919363221ad624508eb950b87c4103941f0447f4a66744d5d56 snapshot
← Older Oldest on feat/phase-2g-bundle
All commits
Newer → Latest on feat/phase-2g-bundle

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:d445b1d8a9de885401337ab8859043d05a5a5d8c372ecf6d57ff73f0a13ef719 --body "your comment"