mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#7449
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/7059
Author: @ylli-selmani
Created: 10/4/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/image-prompt-appearance-override-7053📝 Commits (10+)
9ff8a1dfeat(cards): add optional image-prompt appearance override (#7053)768437eMerge branch 'staging' into feat/image-prompt-appearance-override-70536c68925fix(illustrator): send persona override to every image-prompt path (#7053)4ffe472Merge remote-tracking branch 'privateStuff/feat/image-prompt-appearance-override-7053' into feat/image-prompt-appearance-override-70532951024fix(illustrator): send persona override to every image-prompt path (#7053)5169e35fix(personas): keep the image override through export -> import (#7053)e9ffacfMerge remote-tracking branch 'origin/staging' into feat/image-prompt-appearance-override-705387add20fix(game): include the chat persona in illustration appearance (#7053)3e2e13cMerge remote-tracking branch 'origin/staging' into feat/image-prompt-appearance-override-70532169261fix(review): build retry overrides outside the instruction branch, document the feature📊 Changes
38 files changed (+1580 additions, -52 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/characters/creating-and-editing-characters.md(+2 -1)📝
docs/characters/personas.md(+1 -0)📝
docs/conversation/selfies.md(+2 -0)📝
docs/game/storyboard.md(+1 -1)📝
docs/media/illustrator-agent.md(+2 -0)📝
packages/client/src/components/characters/CharacterEditor.tsx(+59 -8)📝
packages/client/src/components/personas/PersonaEditor.tsx(+68 -2)📝
packages/client/src/localization/locales/en.json(+4 -0)📝
packages/server/src/db/schema/characters.ts(+4 -0)📝
packages/server/src/routes/characters.routes.ts(+4 -0)📝
packages/server/src/routes/gallery.routes.ts(+10 -0)📝
packages/server/src/routes/game.routes.ts(+67 -3)📝
packages/server/src/routes/generate.routes.ts(+56 -2)📝
packages/server/src/routes/generate/retry-agents-route.ts(+151 -4)📝
packages/server/src/services/agents/agent-executor.ts(+81 -17)📝
packages/server/src/services/chat-user-identity.ts(+28 -1)📝
packages/server/src/services/generation/character-prompt-context.ts(+9 -0)📝
packages/server/src/services/generation/conversation-selfie-command-runtime.ts(+14 -1)📝
packages/server/src/services/image/character-prompts.ts(+60 -5)...and 18 more files
📄 Description
Linked issue
Closes #7053
Labeled
bug, but this is a feature request (the label came from the Discord thread). Left as-is.Why this change
A card's Appearance field does two jobs that pull in opposite directions. It is the narrator's reference, so it is written as prose — build, clothing, distinguishing features. It is also what image models receive, and that prose degrades a tag-trained model: the model reads sentences instead of tags, and scene-specific clothing gets baked into every generation after the scene has moved on.
The requester put it plainly: the Appearance block is good for the narrator but "fucks up an image model like novelAI". They asked for a second, image-shaped block —
raven (dc), dc comics, teen titans, 1girl, solo, grey skin, purple hair— used for image prompts while the narrator keeps the prose.This adds that as an opt-in override. Approved design from @SpicyMarinara: "Just make it an optional toggle under appearance and show the box only when it's on."
What changed
{{appearance}}macros and the card-evolution-auditor block keep reading the untouchedappearance. Inagent-executor.tsit is read at exactly two sites (:3111,:3122), both inside theif (imageCapable)block.extensions.imageAppearanceEnabledandextensions.imageAppearance; theextensionsblob is.passthrough(), so they round-trip with no schema work. Personas store the same names as top-level columns, since personas have noextensionsbag and persist through an explicit write-through allowlist.body.appearance) and Game tracker-NPC portraits (built from tracker state).agentTypes.includes("illustrator"), but a custom image agent keeps its own type id and is identified by thetrigger_image_generationcapability — the runtime lists these separately (agent-executor.ts:1979vs:1983). The toggle showed in a custom agent's UI while the appearance block was never emitted. The guard is now capability-aware, defaulting to the old type check so batch behaviour is unchanged.storage-format.jsonandSTORAGE_VERSIONstay7. Rows are name-keyed JSON andnormalizeRowback-fills a missing key from the column default, so existing rows read as disabled and empty. The number is a one-directional downgrade guard, unaffected by additive columns.[Unreleased]CHANGELOG entry, and updates to the fivedocs/guides that describe the toggle this feature extends.Three defects surfaced while validating, all in paths this feature touches: the persona write-through allowlist dropped the new columns, so the override vanished on save; persona export → import dropped both fields, because the native importer builds its payload from an explicit allow-list they were missing from; and Professor Mari's
persona.createfailed storage validation because its hand-maintained row builder omitted the columns.Validation
pnpm checkpasses locallyCONTRIBUTING.mdpnpm check: passed (TypeScript, ESLint, Prettier, localization, production build).pnpm localization:check: passed, with 4 new semantic keys in the canonicalen.json.pnpm regression:prompt: 3/3. Focused: illustrator 6/6, persona 5/5,mari/db-review-durability1/1.if (characterPromptInstruction), so a card with no caption instruction silently dropped every character override and fell back to card prose — the exact failure this feature prevents. Fixed, and the accompanying test now fails if the Game illustration path stops loading the persona.Manual verification notes
Verified by hand with character Jessica and persona Fel Lockheart, across NovelAI through the Illustrator, Chroma through NanoGPT, and Game mode:
<lore><characters>block still receives the full Appearance prose."<name>'s Appearance: …"block for characters and personas.<character_appearance_context>into the agent's input and the override text appears there.Not verified by the agent: no live image-model call was made, so "the override reaches the prompt" rests on code paths, regression proofs and captured request text rather than an inspected generated image. Docker was not run during the original contributor validation; see the maintainer follow-up below for later checks.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Added a user-facing
CHANGELOG.mdentry and updated the fivedocs/guides that describe the toggle this feature extends. Becausedocs/changed, a[docs-i18n]follow-up is required: opened as #7080. No version bump.UI evidence (if applicable)
before:

after:
Notes for reviewers
buildPersonaCreateRow. Each is an independent silent-failure surface; two bit us here. Consolidating them is a redesign of persona persistence, so it is out of scope.agentTypes.includes("illustrator"), warning the broadening leaks Illustrator directives to custom agents. The two force flags are set in mutually exclusive branches (retry-agents-route.ts:1482requiresillustrator;:1489is the single-agent custom case), and the custom case already has its own<manual_image_request>block. Applying it would have re-broken the custom-agent support this PR adds.Summary by CodeRabbit
Maintainer review follow-up
The remaining CodeRabbit issue also exposed two incomplete earlier fixes. Custom image agents now receive the selected appearance reference without needing a built-in Illustrator caption instruction. Normal generation prepares image-only overrides independently, and native-caption fallbacks resolve both stored personas and characters used as the user identity. The narrator's original Appearance stays unchanged. Game preview and generation now have actual route-level proof instead of relying only on helper and source checks.
Validation of
36b9b76e29d94be388ad908a72808fb2fe1b2d13:pnpm check: passed (localization, formatting, lint/types and production build).pnpm smoke:ui: 7/7.pnpm smoke:production: 3/3 (desktop Chromium, mobile Chromium, mobile WebKit)./api/healthand build metadata report the tested commit; frontend, multiplayer guest assets and the chat tutorial are served successfully.Documentation-only follow-up
e032c12dddef9cf0b61fbc7cd15a16648ac72146clarifies the avatar prompt fallback;prettier --checkandgit diff --checkpassed. Application code remains identical to the validated36b9b76e2.Manual follow-up: verify a generated image with a real image provider and physical-device behavior. Existing contributor screenshots remain above. Translation issue #7080 is being handled separately on
docs-i18nafter this lands.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.