[GH-ISSUE #2135] [Issue]: Game mode — GM and party system prompts no longer receive the per-character sprite list #1046

Closed
opened 2026-10-21 05:25:34 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2135

Originally assigned to: @cha1latte on GitHub.

Summary

Severity: major. The GM and party agents are no longer told which sprite expressions and full-body aliases each character actually has, so they pick free-form expression tags that may not match saved sprites.

Expected behavior

As in main: listPartySprites reads each party member's sprite directory, buckets names into expressions / custom full-body aliases / engine-reserved automatic poses, and passes that as characterSprites into both buildGmSystemPrompt and buildPartySystemPrompt, which emit an "Available sprites per character" listing.

Actual behavior

The prompt blocks that consume characterSprites were ported verbatim, but nothing ever populates the parameter — it is always undefined, so the per-character sprite listing is always omitted. No CharacterSpriteInfo[] is ever built. The separate _availableSprites path only feeds the dedicated facial-expression agent, not the GM or party agents.

Steps to reproduce

  1. Start a game with a party member that has saved/custom sprites.
  2. Inspect the assembled GM / party system prompt.
  3. The "Available sprites per character" block present in main is absent; the model gets no list of valid expression names or full-body aliases.

Impact area

  • Game mode
  • React-free engine behavior, contracts, agents, or capability ports

Environment

  • Branch or commit: refactor @ 14894608
  • Run mode: Tauri desktop
  • Compared against: main @ c49f1d95 (legacy web app)

Regression notes

Worked in the legacy web app.

  • main: packages/server/src/services/game/sprite.service.ts:174 (listPartySprites), consumed at generate.routes.ts:4826 (GM) and game.routes.ts:5865 (party).
  • refactor: src/engine/generation/prompt-assembly.ts:676-709 never sets characterSprites (forwarded undefined at :730); src/features/modes/game/api/game-api.ts:2492 (buildPartySystemPrompt) omits it. Consuming-but-unfed blocks: src/engine/modes/game/prompts/gm-prompts.ts:635-652, party-prompts.ts:57-66. No listPartySprites in refactor.
Originally created by @Romuromylus on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2135 Originally assigned to: @cha1latte on GitHub. ## Summary **Severity: major.** The GM and party agents are no longer told which sprite expressions and full-body aliases each character actually has, so they pick free-form expression tags that may not match saved sprites. ## Expected behavior As in main: `listPartySprites` reads each party member's sprite directory, buckets names into expressions / custom full-body aliases / engine-reserved automatic poses, and passes that as `characterSprites` into both `buildGmSystemPrompt` and `buildPartySystemPrompt`, which emit an "Available sprites per character" listing. ## Actual behavior The prompt blocks that consume `characterSprites` were ported verbatim, but nothing ever populates the parameter — it is always `undefined`, so the per-character sprite listing is always omitted. No `CharacterSpriteInfo[]` is ever built. The separate `_availableSprites` path only feeds the dedicated facial-expression agent, not the GM or party agents. ## Steps to reproduce 1. Start a game with a party member that has saved/custom sprites. 2. Inspect the assembled GM / party system prompt. 3. The "Available sprites per character" block present in main is absent; the model gets no list of valid expression names or full-body aliases. ## Impact area - [x] Game mode - [x] React-free engine behavior, contracts, agents, or capability ports ## Environment - Branch or commit: `refactor` @ `14894608` - Run mode: Tauri desktop - Compared against: `main` @ `c49f1d95` (legacy web app) ## Regression notes Worked in the legacy web app. - main: `packages/server/src/services/game/sprite.service.ts:174` (`listPartySprites`), consumed at `generate.routes.ts:4826` (GM) and `game.routes.ts:5865` (party). - refactor: `src/engine/generation/prompt-assembly.ts:676-709` never sets `characterSprites` (forwarded undefined at :730); `src/features/modes/game/api/game-api.ts:2492` (`buildPartySystemPrompt`) omits it. Consuming-but-unfed blocks: `src/engine/modes/game/prompts/gm-prompts.ts:635-652`, `party-prompts.ts:57-66`. No `listPartySprites` in refactor.
bsakaguchi 2026-10-21 05:25:34 +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#1046
No description provided.