mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8247] [MERGED] fix(illustrator): give [illustrate:] prompts the Illustrator's lorebook, summary and notes #8204
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#8204
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/8247
Author: @ylli-selmani
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @ylli-selmani
Base:
staging← Head:fix/illustrate-command-lorebook📝 Commits (2)
e59e006fix(illustrator): give [illustrate:] prompts the Illustrator's lorebook, summary and notes26ee5b5refactor(illustrator): reuse the executor's default context sources📊 Changes
3 files changed (+108 additions, -24 deletions)
View changed files
📝
packages/server/src/services/agents/agent-executor.ts(+40 -22)📝
packages/server/src/services/generation/illustrator-manual-prompt-generation.ts(+15 -2)📝
scripts/regressions/prompt.regression.ts(+53 -0)📄 Description
Linked issue
Closes #8246
Why this change
[illustrate: ...], the image prompt is written without the chat's activated lorebook entries, chat summary or author notes. Lore-only details (places, outfits, factions, items) never reach the picture. You can tell from the provider's usage list: the prompt writer's input tokens stay low even in a lorebook-heavy chat.What changed
buildAgentExtrasinto the exportedbuildAgentReferenceContextBlock(context, sources)(agent-executor.ts).buildAgentExtrascalls it at the same spot, so every normal agent prompt is byte-identical to before.buildManualIllustratorPromptMessagesadds the same block after the character/persona context, gated by the Illustrator agent's own Context Sources (getAgentContextSources). This covers[illustrate:]commands and the Gallery Illustration button.prompt.regression.ts): with default sources, the writer gets all three blocks, identical to the shared helper's output. With lorebook and summary toggled off, only author notes remain.Not changed: the manual writer's existing character, persona, tracker and history blocks still ignore their toggles. Gating them would change current Gallery-button behaviour, so it is left for a separate decision.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checkexit 0. Regressions:prompt7/7,agent-connection-parameters1/1,illustrator-character-prompts1/1,agent-runtime2/2. Removing the new wiring makes the new assertions fail.[illustrate: ...]. With agent debug logging on, the[debug/illustrator/manual-illustration-prompt] messageslog contains<activated_lorebook_context>with that entry, and the provider shows higher input tokens for the call.[illustrate:]call.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
No UI change. Server-side prompt assembly only.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #8247] fix(illustrator): give [illustrate:] prompts the Illustrator's lorebook, summary and notesto [PR #8247] [MERGED] fix(illustrator): give [illustrate:] prompts the Illustrator's lorebook, summary and notes