mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6641] [MERGED] fix: preserve complete character lore in agent prompts #7266
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#7266
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/6641
Author: @SpicyMarinara
Created: 9/24/2026
Status: ✅ Merged
Merged: 9/24/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/6620-full-agent-lore📝 Commits (3)
72507f0docs: track complete agent character lore fix6110f73fix: remove silent agent lore field truncation9a1ed0fMerge remote-tracking branch 'origin/staging' into codex/6620-full-agent-lore📊 Changes
3 files changed (+42 additions, -10 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/server/src/services/agents/agent-executor.ts(+8 -10)📝
scripts/regressions/agent-runtime.regression.ts(+32 -0)📄 Description
Linked issue
Closes #6620
Why this change
Illustrator loses visual and world details placed beyond the old character field caps in the Engine's shared agent lore block. Agents should receive the character and persona context the user selected in full.
What changed
Remove the silent per-field character and persona lore truncation in the shared agent prompt builder. The existing context-source selections still determine which lore is included. A recording-provider regression covers complete long fields in single Illustrator and batched agent requests.
Validation
Completed:
pnpm check,pnpm regression:prompt, and both agent-runtime regression suites. The new regression fails on the previous truncation and passes with this fix. Local CodeRabbit completed with 0 findings across all 3 changed files. Hosted CodeRabbit completed with one out-of-diff context-budget suggestion, which was not adopted: the existing fitter already trims history/reply reserve first, and its total-budget policy is outside this fixed-field-limit change. The required GitHub checks passed.Local container execution and a live image-provider request were not performed; the required hosted container check will cover the build. Engine model-context fitting and provider context limits still apply; this removes fixed per-field cuts rather than promising that arbitrary cards fit every model.
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Manually verify an Illustrator request with a long character card and inspect its prompt to confirm late visual details are present. No live image-provider verification is claimed.
Docs and release impact
A user-facing Unreleased changelog entry is included. No settings, downloadable agent definitions, data formats or versions change.
UI evidence (if applicable)
No interface changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.