feat: persist AgentCore session ID for multi-turn continuity across refreshes

↗ view on GitHub · Jason Lee · 2026-05-08 · 40c1e3ad

- Add agentcore_session_id + agentcore_session_created_at columns to chats schema
- Add PUT /chat/:chatId/session-id endpoint - writes on first turn, no-ops if already set
- Frontend saves runtimeSessionId to DB after each turn (fire-and-forget)
- On chat load, GET /chat/:chatId/session-id restores the session ID so
  AgentCore can resume the correct S3 snapshot after page refresh
Repository dropthejase/louis
Author Jason Lee <12leeejk2@gmail.com>
Authored
Parents a3c9174a
Stats 3 files changed , +51
Part of AgentCore conversation persistence via S3 (not SessionManager)

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-40c1e3ad.md from inside the repo you want the change in.

⬇ Download capture-commit-40c1e3ad.md