mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #352] [MERGED] feat: Enable Custom Chat Memory Agents #4575
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4575
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/352
Author: @adunato
Created: 5/2/2026
Status: ✅ Merged
Merged: 5/3/2026
Merged by: @SpicyMarinara
Base:
main← Head:upstream-main📝 Commits (1)
da5cf51feat: add CR004 custom chat summary agents📊 Changes
10 files changed (+573 additions, -98 deletions)
View changed files
📝
packages/client/src/components/agents/AgentEditor.tsx(+74 -0)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+134 -63)📝
packages/client/src/hooks/use-generate.ts(+5 -0)➕
packages/client/src/lib/agent-cadence.ts(+72 -0)📝
packages/server/src/routes/generate.routes.ts(+95 -33)📝
packages/server/src/services/agents/agent-executor.ts(+2 -1)📝
packages/server/src/services/storage/agents.storage.ts(+12 -0)📝
packages/server/src/services/storage/chats.storage.ts(+53 -0)📝
packages/server/src/services/tools/tool-executor.ts(+103 -1)📝
packages/shared/src/types/agent.ts(+23 -0)📄 Description
Linked issue
Closes #331
Why this change
Custom agents can participate in generation, but they did not have a clean way to maintain durable chat memory. This change lets users build their own memory agents that can read the current chat summary, append durable updates, and run on a configurable cadence without replacing the built-in summary agent. This change also add a general capability of a configurable execution cadence for custom agents and the ability for custom agents to return content by patching the chat meta data, both required to manage custom chat memory operations.
What changed
read_chat_summaryandappend_chat_summarybuilt-in tool definitions and execution support.metadata_patchevent back to the client.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
UI evidence (if applicable)
New Trigger Cadence field added to: pop-up screen when adding a new custom agent to the chat, custom agent configuration. Built-in agent configuration is not affected.
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.