Skip to content

feat: restore the conversation after a page refresh (chat rehydrate) - #38

Merged
Robbertvermeulen merged 6 commits into
mainfrom
feat/canonical-chat-history
Aug 17, 2026
Merged

Robbertvermeulen merged 6 commits into
mainfrom
feat/canonical-chat-history

Conversation

@Robbertvermeulen

Copy link
Copy Markdown
Contributor

Implements chat-history rehydrate (closes #34): on mount the chat panel fetches the stored event log and folds it back into visible turns, so a page refresh no longer resets the conversation to the greeting.

  • HubClient::getHistory() → GET {hub}/chats/{chat_id}/messages
  • New REST route GET /roundtable/v1/history (short-circuits to {events:[]} when the session is unprimed, no hub call)
  • rehydrate.js: pure eventsToTurns() mapper splitting the flat event log on user_text
  • ChatPanel mount effect + userInteractedRef guard so a slow history response never clobbers a live conversation
  • Rebuilt assets/dist (was stale vs assets/src)

Counterpart hub PR: epicwp/roundtable-hub feat/canonical-chat-history (event-log storage + the messages endpoint). Verified user_text is recorded and passed through unfiltered by the hub endpoint.

Local gates: PHPUnit 130 ✓ · PHPStan L6 ✓ · PHPCS ✓ · JS tests 99 ✓

🤖 Generated with Claude Code

Robbertvermeulen and others added 6 commits July 19, 2026 20:07
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Robbertvermeulen
Robbertvermeulen merged commit 14fd93c into main Aug 17, 2026
2 checks passed
@Robbertvermeulen
Robbertvermeulen deleted the feat/canonical-chat-history branch August 17, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restore the last conversation after a page refresh (feedback item 7)

1 participant