[PR #1406] [MERGED] fix(2d-avatars): ask only for the eye or mouth change in blink and talk prompts #1445

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1406
Author: @SpicyMarinara
Created: 10/15/2026
Status: ✅ Merged
Merged: 10/15/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/2d-avatars-variant-prompts


📝 Commits (1)

  • c3357ed fix(2d-avatars): ask only for the eye or mouth change in blink and talk prompts (#1405)

📊 Changes

10 files changed (+45 additions, -23 deletions)

View changed files

➕ artifacts/2d-avatars-0.1.2.zip (+0 -0)
📝 catalog/preview/catalog.json (+6 -6)
📝 catalog/preview/notes.json (+6 -0)
📝 catalog/preview/v2/catalog.json (+6 -6)
📝 catalog/preview/v2/notes.json (+6 -0)
📝 catalog/preview/v3/catalog.json (+6 -6)
📝 catalog/preview/v3/notes.json (+6 -0)
📝 packages/2d-avatars/CHANGELOG.md (+4 -0)
📝 packages/2d-avatars/agents.json (+2 -2)
📝 packages/2d-avatars/manifest.json (+3 -3)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1405

Package half of Pasta-Devs/Marinara-Engine#7681. The Engine half is Pasta-Devs/Marinara-Engine#7682.

Why this change

  • While testing the 2D Avatars agent on Engine staging with the newest GPT Image model, Mari found that the eyes-closed and mouth-open pictures sometimes came back as a full-body sprite or a redrawn picture instead of the same bust with one change (Pasta-Devs/Marinara-Engine#7681). Her instruction: "We should be providing only the base bust that we have for an emotion as a reference and only asking the model to generate the same image, but with eyes closed/mouth open."
  • The main cause is in the Engine. It ran the template through the sprite tag compiler, which dropped the edit instruction and added "full body". Pasta-Devs/Marinara-Engine#7682 fixes that by sending the template as written.
  • Once the template reaches the model verbatim, the last line of both variant templates, Appearance notes, only to stay on model (may be empty): ${appearance}, puts the whole character card's appearance text (outfit, height, shoes and so on) into the request. For an in-place edit of the attached bust that text adds nothing, and it nudges the model to draw a body. This PR removes it, so the request asks only for the eye or mouth change.

What changed

  • packages/2d-avatars/agents.json: removed the final appearance line, and the newline before it, from the avatar-pngtuber-eyes-closed and avatar-pngtuber-mouth-open prompt templates. Every other line is unchanged. The avatar-mesh-rig-layout template keeps its own appearance line (only to help you recognise the parts), because that one is a vision request that locates face parts, not an image edit.
  • packages/2d-avatars/manifest.json: version 0.1.1 → 0.1.2, above every version the staging catalog has published (0.1.0 and 0.1.1). The agents.json hash and size were regenerated by the builder.
  • packages/2d-avatars/CHANGELOG.md: 0.1.2 entry: "Blink and talk pictures now ask only for the eye or mouth change, so the model keeps the same bust."
  • Generated with node scripts/build-agent-catalog.mjs 2d-avatars: artifacts/2d-avatars-0.1.2.zip, plus the preview overlay entries and notes in catalog/preview/{,v2/,v3/}catalog.json and notes.json. The published lanes (catalog/catalog.json, catalog/v2, catalog/v3) are unchanged, and the package stays in STAGING_ONLY_PACKAGE_IDS.
  • locales/en.json does not hold the prompt templates, because model prompts are not localized, so it needs no change. The package has no other locale files.

Package and security impact

  • Affected package IDs: 2d-avatars
  • Engine compatibility impact: none. The range stays >=2.5.0 <4.0.0 with Capability API 1.73. The template still uses only declared variables (characterName, expression), and the Engine fills ${appearance} only where a template contains it.
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none. This is a prompt-text change shipped as a patch update to the staging preview overlay. The Engine merges saved templates over package defaults by id (mergeBuiltInPromptTemplateCollection), so an install that has saved its own copy of these two templates keeps that copy until it is reset.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Run locally by the agent on this branch:

  • npm run check: passed (0 errors; the warnings were already on staging)
  • node scripts/test-catalog-lanes.mjs: passed
  • node scripts/validate-package-locales.mjs: passed
  • node scripts/validate-catalog.mjs: passed (39 packages, and the preview overlay holds 4 staging-only packages, including 2d-avatars)
  • node scripts/tests/catalog-release-notes.regression.mjs: passed
  • node scripts/tests/avatar-package.regression.mjs: passed
  • git diff --check: passed
  • unzip -p artifacts/2d-avatars-0.1.2.zip agents.json: only the mesh layout template still contains an appearance line

Still needs a human:

  • Manually verify in the Engine on staging that Agents → Download Agents offers the 2D Avatars update to 0.1.2 and that it installs.
  • Manually verify in the Engine on staging (with Pasta-Devs/Marinara-Engine#7682 merged): make a mouth-open picture with GPT Image and check that it keeps the bust framing and changes only the mouth.
  • Manually verify the same for a blink picture: the same bust, with only the eyes closed.
  • Manually verify that the Mesh Avatar Layout still finds the face parts (its template is unchanged).

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

No README or Engine documentation describes the template text, so neither needs a change.

UI evidence (if applicable)

Not applicable: no package UI changes.

Summary by CodeRabbit

  • Bug Fixes
    • Blink and talk image prompts now request only the eye or mouth change, helping preserve the character’s existing bust.
  • Release
    • Updated the 2D Avatars package to version 0.1.2.

🔄 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-Agents/pull/1406 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/2d-avatars-variant-prompts` --- ### 📝 Commits (1) - [`c3357ed`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c3357ed9fad0e5c663dd9e721858ad7f5563a061) fix(2d-avatars): ask only for the eye or mouth change in blink and talk prompts (#1405) ### 📊 Changes **10 files changed** (+45 additions, -23 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/2d-avatars-0.1.2.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+6 -6) 📝 `catalog/preview/notes.json` (+6 -0) 📝 `catalog/preview/v2/catalog.json` (+6 -6) 📝 `catalog/preview/v2/notes.json` (+6 -0) 📝 `catalog/preview/v3/catalog.json` (+6 -6) 📝 `catalog/preview/v3/notes.json` (+6 -0) 📝 `packages/2d-avatars/CHANGELOG.md` (+4 -0) 📝 `packages/2d-avatars/agents.json` (+2 -2) 📝 `packages/2d-avatars/manifest.json` (+3 -3) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1405 Package half of Pasta-Devs/Marinara-Engine#7681. The Engine half is Pasta-Devs/Marinara-Engine#7682. ## Why this change - While testing the 2D Avatars agent on Engine `staging` with the newest GPT Image model, Mari found that the eyes-closed and mouth-open pictures sometimes came back as a full-body sprite or a redrawn picture instead of the same bust with one change (Pasta-Devs/Marinara-Engine#7681). Her instruction: "We should be providing only the base bust that we have for an emotion as a reference and only asking the model to generate the same image, but with eyes closed/mouth open." - The main cause is in the Engine. It ran the template through the sprite tag compiler, which dropped the edit instruction and added "full body". Pasta-Devs/Marinara-Engine#7682 fixes that by sending the template as written. - Once the template reaches the model verbatim, the last line of both variant templates, `Appearance notes, only to stay on model (may be empty): ${appearance}`, puts the whole character card's appearance text (outfit, height, shoes and so on) into the request. For an in-place edit of the attached bust that text adds nothing, and it nudges the model to draw a body. This PR removes it, so the request asks only for the eye or mouth change. ## What changed - `packages/2d-avatars/agents.json`: removed the final appearance line, and the newline before it, from the `avatar-pngtuber-eyes-closed` and `avatar-pngtuber-mouth-open` prompt templates. Every other line is unchanged. The `avatar-mesh-rig-layout` template keeps its own appearance line (`only to help you recognise the parts`), because that one is a vision request that locates face parts, not an image edit. - `packages/2d-avatars/manifest.json`: version 0.1.1 → 0.1.2, above every version the staging catalog has published (0.1.0 and 0.1.1). The `agents.json` hash and size were regenerated by the builder. - `packages/2d-avatars/CHANGELOG.md`: 0.1.2 entry: "Blink and talk pictures now ask only for the eye or mouth change, so the model keeps the same bust." - Generated with `node scripts/build-agent-catalog.mjs 2d-avatars`: `artifacts/2d-avatars-0.1.2.zip`, plus the preview overlay entries and notes in `catalog/preview/{,v2/,v3/}catalog.json` and `notes.json`. The published lanes (`catalog/catalog.json`, `catalog/v2`, `catalog/v3`) are unchanged, and the package stays in `STAGING_ONLY_PACKAGE_IDS`. - `locales/en.json` does not hold the prompt templates, because model prompts are not localized, so it needs no change. The package has no other locale files. ## Package and security impact - Affected package IDs: `2d-avatars` - Engine compatibility impact: none. The range stays `>=2.5.0 <4.0.0` with Capability API 1.73. The template still uses only declared variables (`characterName`, `expression`), and the Engine fills `${appearance}` only where a template contains it. - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none. This is a prompt-text change shipped as a patch update to the staging preview overlay. The Engine merges saved templates over package defaults by id (`mergeBuiltInPromptTemplateCollection`), so an install that has saved its own copy of these two templates keeps that copy until it is reset. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Run locally by the agent on this branch: - `npm run check`: passed (0 errors; the warnings were already on `staging`) - `node scripts/test-catalog-lanes.mjs`: passed - `node scripts/validate-package-locales.mjs`: passed - `node scripts/validate-catalog.mjs`: passed (39 packages, and the preview overlay holds 4 staging-only packages, including 2d-avatars) - `node scripts/tests/catalog-release-notes.regression.mjs`: passed - `node scripts/tests/avatar-package.regression.mjs`: passed - `git diff --check`: passed - `unzip -p artifacts/2d-avatars-0.1.2.zip agents.json`: only the mesh layout template still contains an appearance line Still needs a human: - Manually verify in the Engine on `staging` that **Agents → Download Agents** offers the 2D Avatars update to 0.1.2 and that it installs. - Manually verify in the Engine on `staging` (with Pasta-Devs/Marinara-Engine#7682 merged): make a mouth-open picture with GPT Image and check that it keeps the bust framing and changes only the mouth. - Manually verify the same for a blink picture: the same bust, with only the eyes closed. - Manually verify that the Mesh Avatar Layout still finds the face parts (its template is unchanged). ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation No README or Engine documentation describes the template text, so neither needs a change. ## UI evidence (if applicable) Not applicable: no package UI changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Blink and talk image prompts now request only the eye or mouth change, helping preserve the character’s existing bust. * **Release** * Updated the 2D Avatars package to version 0.1.2. <!-- 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-21 05:11:33 +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-Agents#1445
No description provided.