[PR #3854] [MERGED] fix: honor dynamic portrait prompt overrides #6129

Closed
opened 2026-10-23 04:07:21 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3854
Author: @SpicyMarinara
Created: 7/20/2026
Status: ✅ Merged
Merged: 7/20/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/dynamic-image-prompt-override


📝 Commits (2)

  • 2e911f2 fix: honor dynamic portrait prompt overrides
  • 68f4dff fix: preserve custom image prompt output formats

📊 Changes

4 files changed (+47 additions, -10 deletions)

View changed files

📝 CHANGELOG.md (+1 -1)
📝 packages/server/src/routes/game.routes.ts (+1 -8)
📝 packages/server/src/services/game/game-asset-generation.ts (+1 -1)
📝 scripts/regressions/prompt.regression.ts (+44 -0)

📄 Description

Why

The staging fix for #3846 removed narrative tracker notes, but a host-added portrait instruction still told the dynamic prompt model to copy the raw Required canonical NPC visual profile line. That instruction competed with user-authored Prompt Director overrides such as requests for a clean tag list, making the override appear bypassed.

What changed

  • Present canonical appearance as neutral Appearance traits input to the dynamic director.
  • Remove the host-added portrait-only command that forced raw prose-label copying.
  • Keep canonical-preservation guidance in the built-in default director, where it does not override a user-authored template.
  • Add regression coverage proving a custom director remains the system authority.

Closes #3846

Automated evidence

  • pnpm regression:prompt passed.
  • pnpm check passed.

Validation checklist

  • Run pnpm regression:prompt.
  • Run pnpm check.
  • Manually verify a custom Game Mode Image Prompt Director can return a tag list without the raw canonical-profile label.

Docs and release impact

  • Updated the existing #3846 changelog entry.
  • No version-bearing files changed.

Summary by CodeRabbit

  • Bug Fixes
    • Improved dynamic NPC portrait prompt handling.
    • Custom image-direction instructions are now preserved without being overridden by additional canonical profile wording.
    • Non-visual NPC history details are excluded from portrait appearance context.
  • Tests
    • Added regression coverage to verify custom portrait instructions remain unchanged.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/3854 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/20/2026 **Status:** ✅ Merged **Merged:** 7/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/dynamic-image-prompt-override` --- ### 📝 Commits (2) - [`2e911f2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2e911f218bba1f857270e1bbf5ff8a643dda08e1) fix: honor dynamic portrait prompt overrides - [`68f4dff`](https://github.com/Pasta-Devs/Marinara-Engine/commit/68f4dff199f73b43a3ec8bb0459355f1bc1efa1e) fix: preserve custom image prompt output formats ### 📊 Changes **4 files changed** (+47 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -1) 📝 `packages/server/src/routes/game.routes.ts` (+1 -8) 📝 `packages/server/src/services/game/game-asset-generation.ts` (+1 -1) 📝 `scripts/regressions/prompt.regression.ts` (+44 -0) </details> ### 📄 Description ## Why The staging fix for #3846 removed narrative tracker notes, but a host-added portrait instruction still told the dynamic prompt model to copy the raw `Required canonical NPC visual profile` line. That instruction competed with user-authored Prompt Director overrides such as requests for a clean tag list, making the override appear bypassed. ## What changed - Present canonical appearance as neutral `Appearance traits` input to the dynamic director. - Remove the host-added portrait-only command that forced raw prose-label copying. - Keep canonical-preservation guidance in the built-in default director, where it does not override a user-authored template. - Add regression coverage proving a custom director remains the system authority. Closes #3846 ## Automated evidence - `pnpm regression:prompt` passed. - `pnpm check` passed. ## Validation checklist - [ ] Run `pnpm regression:prompt`. - [ ] Run `pnpm check`. - [ ] Manually verify a custom Game Mode Image Prompt Director can return a tag list without the raw canonical-profile label. ## Docs and release impact - Updated the existing #3846 changelog entry. - No version-bearing files changed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved dynamic NPC portrait prompt handling. * Custom image-direction instructions are now preserved without being overridden by additional canonical profile wording. * Non-visual NPC history details are excluded from portrait appearance context. * **Tests** * Added regression coverage to verify custom portrait instructions remain unchanged. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:07:21 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6129
No description provided.