Implemented the full long-term and short-term memory module and skills#153
Merged
Myriad-Dreamin merged 8 commits intoEmaFanClub:mainfrom Feb 14, 2026
Merged
Implemented the full long-term and short-term memory module and skills#153Myriad-Dreamin merged 8 commits intoEmaFanClub:mainfrom
Myriad-Dreamin merged 8 commits intoEmaFanClub:mainfrom
Conversation
…function_response flow
…ry foundations across db layers
…ver runtime integration
… and system prompt guidance
…ucture and rendering
Myriad-Dreamin
approved these changes
Feb 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant improvements to both the frontend and backend of the EMA chat system. The main focus is on updating the message type system to use a more expressive
ConversationMessagetype throughout the UI and API, and on refactoring theActorWorkerbackend class to simplify buffer management, improve message handling, and enhance extensibility. Additionally, the system prompt for the actor has been substantially rewritten for clarity, structure, and better alignment with the intended conversational experience.Frontend and API Type Updates:
Messageto the more descriptiveConversationMessage, ensuring consistency and enabling richer message representation. [1] [2] [3] [4] [5] [6] [7] [8]Backend Refactor: ActorWorker and Buffer Management:
ActorWorkerclass to remove legacy memory and state management interfaces, instead delegating buffer operations to a unifiedmemoryManageron theServerinstance. This streamlines buffer writes and retrieval, and simplifies the constructor and internal logic. [1] [2] [3] [4]System Prompt Overhaul:
system_prompt.mdto clarify system objectives, constraints, reply guidelines, skills usage, memory policies, and role profile. The new version is more structured, easier to maintain, and better aligned with the product's conversational goals.Summary of Most Important Changes:
Frontend/API Consistency
MessagewithConversationMessagein API routes and React components, ensuring a consistent and extensible message structure across the UI and backend. [1] [2] [3] [4] [5] [6] [7] [8]Backend Refactor and Message Handling
ActorWorkerto use a centralizedmemoryManagerfor buffer operations, simplifying buffer writes and reads and removing legacy state/memory management code. [1] [2] [3] [4]System Prompt Improvements
system_prompt.mdfor clarity, structure, and alignment with the intended conversational experience, including explicit objectives, constraints, reply guidelines, memory policy, and role profile.