mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8397] [MERGED] fix(images): preserve complete image generation prompts #8574
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#8574
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/8397
Author: @SpicyMarinara
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/8396-complete-image-prompts📝 Commits (4)
3821ff1test(images): reproduce omitted tracker portrait detailsb0fd28bfix(images): retain complete image prompt text5031f5efix(images): retain positive sentences after prompt exclusions0b934a6fix(images): keep abbreviated names inside prompt exclusions📊 Changes
16 files changed (+609 additions, -314 deletions)
View changed files
📝
packages/server/src/routes/avatars.routes.ts(+2 -2)📝
packages/server/src/routes/game.routes.ts(+11 -12)📝
packages/server/src/services/game/game-asset-generation.ts(+29 -94)📝
packages/server/src/services/generation/illustrator-background-generation.ts(+1 -1)📝
packages/server/src/services/generation/illustrator-manual-prompt-generation.ts(+3 -3)📝
packages/server/src/services/image/character-prompts.ts(+5 -23)📝
packages/server/src/services/image/illustrator-references.ts(+3 -9)📝
packages/server/src/services/image/tracker-portrait.ts(+8 -13)📝
packages/server/src/services/prompt-overrides/registry/game-assets.ts(+6 -2)📝
packages/shared/src/constants/image-style-profiles.ts(+4 -4)📝
packages/shared/src/utils/image-prompt-compiler.ts(+32 -118)➕
scripts/regressions/game-image-prompt-length.regression.ts(+174 -0)📝
scripts/regressions/illustrator-character-prompts.regression.ts(+27 -17)➕
scripts/regressions/illustrator-prompt-output.regression.ts(+83 -0)📝
scripts/regressions/image-appearance-game.regression.ts(+61 -3)📝
scripts/regressions/prompt.regression.ts(+160 -13)📄 Description
Linked issue
Closes #8396
Why this change
The report's tracker fields contain height, pink bunny ears, pink hair, blue eyes and body shape, while the sent prompts retain only blue eyes. The same selective loss reproduces on staging: tag-style portrait compilation extracts a small visual subset, limits fragments and ranks them into a 75-token budget. Tracker appearance and outfit fields also have separate hard cuts.
What changed
Validation
Final local candidate:
0b934a6e5e2b47d96f333c70150cabae38c2c0cf.pnpm installcompleted; finalpnpm checkpassed, including formatting/localization, type/lint checks and production build. One pre-existing HomeProfessorMariChat hook warning remains.pnpm regression:promptpassed: 206 prompt cases, prompt attachments and context fitting.pnpm smoke:ui: 7/7 and production Chromium smoke: 1/1 at0b934a6e5.A parallel local test attempt ran during a shared-package rebuild and failed on missing compiled modules; the unchanged 20-file group passed after the build and again on the final candidate. The original failure log is retained.
Local Docker build did not complete: the OrbStack daemon disconnected during dependency installation (
rpc ... EOF), then its socket was unavailable. Source and test logs were preserved; only task-owned generated caches/dependencies from this and the completed previous task were cleared to recover disk space. Hosted image-build and native ARM64 container API/frontend/native-binding/persistent-data replacement checks passed on final0b934a6e5. This is separate from the unavailable local Docker daemon.Manual verification notes
HTTP captures use local fixtures, not a paid provider. These checks prove prompt delivery, not image-model adherence or verification of the reporter's physical setup. No user data, release metadata or downloadable package changes.
Docs and release impact
No documentation or release/version change is needed. Existing LLM input-context and request-validation limits are outside this final-image-prompt truncation fix.
Hosted review
Dottore full review completed on
0b934a6e5with no defects, one optional dead-code cleanup note, and zero unresolved threads. The full Node run passed 1,125/1,125 files; CodeQL passed both analyses. All eight required contexts passed. The final hosted browser results were 7/7 smoke and 1/1 production; all ten platform jobs passed. Merged to staging as6c7d839252b77f39f82ba1406ff70131dc64ae51; ancestry and exact equality with the validated feature tree are verified. Post-merge workflows were running at the delivery snapshot.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.