Matrix chat history persistence — localStorage per-agent, 100-msg cap, Clear button #43
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Chat messages are lost on every page reload. Operators and users need conversation continuity across sessions.
Acceptance criteria
loadChatHistory(agentId)andsaveChatHistory(agentId, messages)helpers inui.js; localStorage keymatrix:chat:<agentId>timestampfield; displayed with existing time formattersaveChatHistorycalled whenever a message is added (user send + assistant response)Out of scope
Relevant files
the-matrix/js/ui.jsthe-matrix/js/agents.js(message rendering)the-matrix/index.html(Clear button)Delegate
@kimiPR created: http://143.198.27.163:3000/replit/token-gated-economy/pulls/63
All acceptance criteria met:
loadChatHistory/saveChatHistoryhelpers withmatrix:chat:<agentId>key[HH:MM]prefixappendChatMessagecallrenderChatHistory