mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7752] [MERGED] fix(roleplay): give illustrate commands NovelAI captions and respect the reference switch #7913
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#7913
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/7752
Author: @ylli-selmani
Created: 10/16/2026
Status: ✅ Merged
Merged: 10/17/2026
Merged by: @ylli-selmani
Base:
staging← Head:fix/illustrate-command-captions📝 Commits (2)
0ef89b4fix(roleplay): give illustrate commands the NovelAI caption rules3ae6123fix(roleplay): let illustrate commands follow the avatar reference switch📊 Changes
5 files changed (+117 additions, -43 deletions)
View changed files
📝
e2e/roleplay-commands.e2e.ts(+9 -2)📝
packages/server/src/routes/generate.routes.ts(+16 -5)📝
packages/server/src/routes/generate/retry-agents-route.ts(+10 -35)📝
packages/server/src/services/generation/illustrator-manual-prompt-generation.ts(+45 -1)📝
scripts/regressions/illustrator-character-prompts.regression.ts(+37 -0)📄 Description
Linked issue
Closes #7751
Why this change
[illustrate: ...]command wrote its image prompt without the NovelAI character caption rules that the Illustration button gets. NovelAI never received per-character captions from commands, and Attach card appearance fell back to appending flatName's Appearance: ...lines. Naming characters in the command also forced avatar references even with the chat's reference switch off.What changed
buildManualIllustratorCharacterPromptInstructionhelper (illustrator-manual-prompt-generation.ts). The button route and the command path both use it. The command path reads the instruction the route already resolves into agent memory.command.charactersoverride fromuseAvatarRefsingenerate.routes.ts. Named characters still narrow whose references are sent when the switch is on. This was forced on purpose in #5998, so it is a behaviour change, picked to keep one switch meaning the same thing everywhere.illustrator-character-prompts.regression.tscovers the helper and pins the command path. The roleplay commands e2e now expects no avatar with the switch off and the named avatar with it on.Validation
pnpm checkpasses locally (server typecheck, prettier, related regressions)CONTRIBUTING.mdManual verification notes
illustrator-character-prompts,illustrator-reference-scope,roleplay-commands,promptandopen-issuesregressions pass. The new check fails on unmodified staging.Roleplay commands require attached agents…e2e passes on desktop-chromium and mobile-chromium. Webkit can't launch in this environment.characterPromptscome back and no references are sent with the switch off.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 changes.
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.