mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3916] [MERGED] Refactor shared agent, prompt, and lorebook contracts #6157
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#6157
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/3916
Author: @Xelvanis
Created: 7/21/2026
Status: ✅ Merged
Merged: 7/21/2026
Merged by: @SpicyMarinara
Base:
staging← Head:refactor-simplify-shared-contracts📝 Commits (3)
aa2ac9crefactor: simplify shared prompt and agent contractsd1cd1aerefactor: centralize music source matchingc73a990Merge remote-tracking branch 'origin/staging' into codex/integrate-3916📊 Changes
12 files changed (+63 additions, -202 deletions)
View changed files
📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+0 -1)📝
packages/server/src/routes/generate.routes.ts(+0 -1)📝
packages/server/src/routes/generate/retry-agents-route.ts(+3 -11)📝
packages/server/src/services/agents/agent-executor.ts(+1 -2)📝
packages/server/src/services/generation/agent-resolution.ts(+9 -12)📝
packages/shared/src/features/agents/agent-registry.ts(+0 -4)📝
packages/shared/src/index.ts(+0 -1)📝
packages/shared/src/schemas/lorebook.schema.ts(+45 -125)📝
packages/shared/src/schemas/prompt.schema.ts(+5 -33)📝
packages/shared/src/types/agent.ts(+0 -7)📝
scripts/regressions/prompt.regression.ts(+0 -4)📝
scripts/regressions/roleplay-streaming.regression.ts(+0 -1)📄 Description
Linked issue
Closes #3915
Why this change
What changed
AgentContext.activatedLorebookEntriesfield,resolveAgentPromptTemplate.agentTypeargument, and write-only built-in run-interval mirror.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checkpassed, including workspace lint/type checks and the production build.pnpm regression:promptpassed the affected prompt, lorebook, and agent cases, then exited non-zero on an unchanged Windows CRLF-sensitive assertion for the Prose Guardian documentation heading. The heading exists in both this branch andorigin/staging.localhost:5173, verified default/non-default agent prompt selection and persistence; disposable prompt preset/group/section/choice CRUD; disposable lorebook/folder/entry CRUD and partial updates; cleanup of all disposable records; and an empty browser warning/error log.Docs and release impact
No documentation, release metadata, or user-facing UI changes are required.
UI evidence (if applicable)
Not applicable: this is a behavior-preserving contract and schema simplification with no visual changes.
Summary by CodeRabbit
Bug Fixes
Validation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.