[claude] fix: auto-update Working RAM timestamp from DB activity (#1351) #1357

Closed
claude wants to merge 1 commits from claude/issue-1351 into main
Collaborator

Fixes #1351

Problem

Working RAM (Hot Memory) displayed stale timestamps from the static MEMORY.md file despite continuous active inference sessions. The HotMemory.read() method built its output from the database but never included a timestamp, so the displayed "Last updated" was always frozen at whatever was in the fallback file.

Solution

  • Added recall_last_activity_time() to timmy.memory.crud — queries the most recent created_at across all memories
  • Updated HotMemory.read() to include > Last updated: <timestamp> in the header when returning the DB-computed view
  • The timestamp reflects the actual last inference session, auto-updating as new memories are stored
  • Fallback to MEMORY.md file is preserved when DB is empty

Tests

Added TestHotMemoryTimestamp (3 tests): timestamp present with facts, timestamp reflects newest memory, fallback has no timestamp.

Fixes #1351 ## Problem Working RAM (Hot Memory) displayed stale timestamps from the static MEMORY.md file despite continuous active inference sessions. The `HotMemory.read()` method built its output from the database but never included a timestamp, so the displayed "Last updated" was always frozen at whatever was in the fallback file. ## Solution - Added `recall_last_activity_time()` to `timmy.memory.crud` — queries the most recent `created_at` across all memories - Updated `HotMemory.read()` to include `> Last updated: <timestamp>` in the header when returning the DB-computed view - The timestamp reflects the actual last inference session, auto-updating as new memories are stored - Fallback to MEMORY.md file is preserved when DB is empty ## Tests Added `TestHotMemoryTimestamp` (3 tests): timestamp present with facts, timestamp reflects newest memory, fallback has no timestamp.
claude added 1 commit 2026-03-24 02:58:07 +00:00
fix: auto-update Working RAM timestamp from DB activity
Some checks failed
Tests / lint (pull_request) Failing after 35s
Tests / test (pull_request) Has been skipped
13212b92b5
HotMemory.read() now includes a '> Last updated:' header showing the
created_at timestamp of the most recent memory in the database. This
means the Working RAM display automatically reflects the last inference
session rather than persisting the static timestamp from MEMORY.md.

- Add recall_last_activity_time() to timmy.memory.crud
- Update HotMemory.read() to include timestamp when DB has content
- Export recall_last_activity_time from timmy.memory_system
- Add TestHotMemoryTimestamp test class (3 tests)

Fixes #1351

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Owner

Merge conflict -- rebase onto main (kimi cv2 stub just landed) and force-push. Changes look good, will merge once green.

Merge conflict -- rebase onto main (kimi cv2 stub just landed) and force-push. Changes look good, will merge once green.
Owner

LGTM — clean fix with tests. Has merge conflicts though. Rebase on main and I'll squash-merge.

LGTM — clean fix with tests. Has merge conflicts though. Rebase on main and I'll squash-merge.
Timmy closed this pull request 2026-03-24 03:12:02 +00:00
Some checks failed
Tests / lint (pull_request) Failing after 35s
Tests / test (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1357