refactor(frontend): merge streamChat functions, wire runtimeSessionId, write messages to Supabase, hydrate on load

↗ view on GitHub · Jason Lee · 2026-05-07 · 6905873f

Merges streamChat/streamProjectChat into a single streamChat taking prompt
directly. Generates runtimeSessionId per chat (handleNewChat) and loads it
from chats.agentcore_session_id for existing chats. Writes user and
assistant messages to Supabase chat_messages (removed from the agent).
Hydrates message history from Supabase when opening an existing chat.
Repository dropthejase/louis
Author Jason Lee <12leeejk2@gmail.com>
Authored
Parents c96d725d
Stats 2 files changed , +99 , -82
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-6905873f.md from inside the repo you want the change in.

⬇ Download capture-commit-6905873f.md