[PR #5088] [MERGED] Honor natural grammar for character image prompts #6623

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5088
Author: @SpicyMarinara
Created: 8/15/2026
Status: ✅ Merged
Merged: 8/15/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/5083-image-prompt-grammar


📝 Commits (4)

  • 504fc73 fix: honor natural image prompt grammar
  • c051e4a Merge remote-tracking branch 'origin/staging' into fix/5083-image-prompt-grammar
  • a65ac06 Merge branch 'staging' into fix/5083-image-prompt-grammar
  • 83ca9b1 Merge remote-tracking branch 'origin/staging' into fix/5083-image-prompt-grammar

📊 Changes

3 files changed (+42 additions, -1 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/shared/src/utils/image-prompt-compiler.ts (+3 -1)
📝 scripts/regressions/prompt.regression.ts (+38 -0)

📄 Description

Linked issue

Closes #5083

Why this change

  • Avatar, portrait, and sprite compilation silently forced compact tagged prompts based on image kind, overriding a style profile explicitly configured for natural-language grammar.

What changed

  • Preserve the existing compact behavior for tagged and hybrid profiles while exempting natural-language profiles from the hidden visual-kind compaction.
  • Add prompt regression coverage for avatars, portraits, and sprites using a natural-language clone of the anime profile.
  • Document the user-visible fix in the changelog.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated evidence gathered so far:

  • pnpm build:shared
  • Targeted compiled prompt assertions for natural avatar, portrait, and sprite grammar, plus legacy Off-profile sprite deduplication

Manual verification notes

  • Manually verify an Anime-derived style profile set to Natural language in the avatar, portrait, and sprite prompt previews/generation paths.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Not applicable; this corrects shared prompt compilation behavior.

🔄 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/5088 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/15/2026 **Status:** ✅ Merged **Merged:** 8/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5083-image-prompt-grammar` --- ### 📝 Commits (4) - [`504fc73`](https://github.com/Pasta-Devs/Marinara-Engine/commit/504fc739131d44554bef0c30883009708cbac6c2) fix: honor natural image prompt grammar - [`c051e4a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c051e4ad1746e705a141871c7aa1fa1bbdd5f547) Merge remote-tracking branch 'origin/staging' into fix/5083-image-prompt-grammar - [`a65ac06`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a65ac0648ca17f4b77e32d7a7ab12d7866243be7) Merge branch 'staging' into fix/5083-image-prompt-grammar - [`83ca9b1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/83ca9b1ae421674c77bfde2702bf5c5a0c444a68) Merge remote-tracking branch 'origin/staging' into fix/5083-image-prompt-grammar ### 📊 Changes **3 files changed** (+42 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/shared/src/utils/image-prompt-compiler.ts` (+3 -1) 📝 `scripts/regressions/prompt.regression.ts` (+38 -0) </details> ### 📄 Description ## Linked issue Closes #5083 ## Why this change - Avatar, portrait, and sprite compilation silently forced compact tagged prompts based on image kind, overriding a style profile explicitly configured for natural-language grammar. ## What changed - Preserve the existing compact behavior for tagged and hybrid profiles while exempting natural-language profiles from the hidden visual-kind compaction. - Add prompt regression coverage for avatars, portraits, and sprites using a natural-language clone of the anime profile. - Document the user-visible fix in the changelog. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Automated evidence gathered so far: - `pnpm build:shared` - Targeted compiled prompt assertions for natural avatar, portrait, and sprite grammar, plus legacy Off-profile sprite deduplication ### Manual verification notes - Manually verify an Anime-derived style profile set to Natural language in the avatar, portrait, and sprite prompt previews/generation paths. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Not applicable; this corrects shared prompt compilation behavior. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:12:09 +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#6623
No description provided.