[PR #963] [MERGED] Fix Game Mode Illustrate style prompts #4859

Closed
opened 2026-10-22 04:11:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/963
Author: @cha1latte
Created: 5/17/2026
Status: ✅ Merged
Merged: 5/17/2026
Merged by: @cha1latte

Base: staging ← Head: fix/game-illustrate-style-prompt


📝 Commits (1)

  • e579ef9 Fix game mode illustrate style prompt

📊 Changes

2 files changed (+66 additions, -5 deletions)

View changed files

📝 packages/server/src/routes/generate/retry-agents-route.ts (+49 -5)
📝 packages/server/src/services/agents/agent-executor.ts (+17 -0)

📄 Description

Linked issue

No linked issue. This was reported directly by Celia; a tracking issue should be opened before submission if the team wants one.

Why this change

  • In Game Mode, Gallery -> Illustrate could ignore the game setup's image style prompt after the first generated scene/image path because the manual Illustrator retry path did not carry the stored game art style into the agent prompt or the final provider prompt.

What changed

  • Pass the Game Mode artStylePrompt from chat setup metadata into the retry-agent context for Illustrator.
  • Add Game Mode scene-image instructions to the Illustrator agent prompt so manual Gallery -> Illustrate remains a VN/game scene illustration path.
  • Prefix the final image-provider prompt with the game art style and use the background/scene image canvas size for Game Mode illustrations instead of selfie sizing.

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

Manual verification notes

  • Codex proof: pnpm build:shared completed successfully before the focused scratch repro.
  • Codex proof: packages\server\node_modules\.bin\tsx.cmd scratch/repro-game-illustrator-style.mjs passed. The repro asserts that Game Mode Illustrator receives <game_image_instructions>, sees the stored art style prompt, prefixes the provider prompt through buildIllustratorImagePrompt, and uses background/scene canvas dimensions.
  • Codex proof: pnpm check passed locally.
  • Not manually verified in a real image provider: final aesthetic adherence still depends on configured image-generation provider behavior and human visual judgment.
  • The previous packages/server/test/game-session-prompts.test.ts targeted test could not be rerun because that test file is not present on current upstream/staging.
  • Bunny review pass: pass. The branch is based on upstream/staging, pushes go to origin, the diff is two focused server files, git diff --check had no whitespace errors beyond CRLF warnings, no server console.* was added, and the proof exercises the changed path directly.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs or version files changed.

UI evidence (if applicable)

N/A. This is a server-side prompt assembly/image-generation route fix. The proof is a focused route/agent prompt repro plus pnpm check.


🔄 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/963 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/17/2026 **Status:** ✅ Merged **Merged:** 5/17/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `fix/game-illustrate-style-prompt` --- ### 📝 Commits (1) - [`e579ef9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e579ef9c2c3bb9848ccb01552ca8c8f34e88dc5c) Fix game mode illustrate style prompt ### 📊 Changes **2 files changed** (+66 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+49 -5) 📝 `packages/server/src/services/agents/agent-executor.ts` (+17 -0) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> No linked issue. This was reported directly by Celia; a tracking issue should be opened before submission if the team wants one. ## Why this change <!-- What user problem, bug, or goal does this solve? --> - In Game Mode, Gallery -> Illustrate could ignore the game setup's image style prompt after the first generated scene/image path because the manual Illustrator retry path did not carry the stored game art style into the agent prompt or the final provider prompt. ## What changed <!-- List the key changes in this PR --> - Pass the Game Mode `artStylePrompt` from chat setup metadata into the retry-agent context for Illustrator. - Add Game Mode scene-image instructions to the Illustrator agent prompt so manual Gallery -> Illustrate remains a VN/game scene illustration path. - Prefix the final image-provider prompt with the game art style and use the background/scene image canvas size for Game Mode illustrations instead of selfie sizing. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `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` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex proof: `pnpm build:shared` completed successfully before the focused scratch repro. - Codex proof: `packages\server\node_modules\.bin\tsx.cmd scratch/repro-game-illustrator-style.mjs` passed. The repro asserts that Game Mode Illustrator receives `<game_image_instructions>`, sees the stored art style prompt, prefixes the provider prompt through `buildIllustratorImagePrompt`, and uses background/scene canvas dimensions. - Codex proof: `pnpm check` passed locally. - Not manually verified in a real image provider: final aesthetic adherence still depends on configured image-generation provider behavior and human visual judgment. - The previous `packages/server/test/game-session-prompts.test.ts` targeted test could not be rerun because that test file is not present on current `upstream/staging`. - Bunny review pass: pass. The branch is based on `upstream/staging`, pushes go to `origin`, the diff is two focused server files, `git diff --check` had no whitespace errors beyond CRLF warnings, no server `console.*` was added, and the proof exercises the changed path directly. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No docs or version files changed. ## UI evidence (if applicable) N/A. This is a server-side prompt assembly/image-generation route fix. The proof is a focused route/agent prompt repro plus `pnpm check`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:14 +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#4859
No description provided.