[PR #4519] [MERGED] Fix image references, narrator avatars, and summary prompts #6407

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

📋 Pull Request Information

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

Base: staging ← Head: agent/avatar-reference-and-narrator-controls


📝 Commits (6)

  • 1357665 chore: start avatar issue fixes
  • 7a2d104 fix: stabilize roleplay image references and avatars
  • 03bbf7c fix: address review feedback
  • 60c358a Merge branch 'staging' into agent/avatar-reference-and-narrator-controls
  • 1fe28fc fix: harden review edge cases
  • 3e8e235 fix: synchronize narrator cycle reset

📊 Changes

13 files changed (+461 additions, -110 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+39 -1)
📝 packages/client/src/components/chat/ChatMessage.tsx (+109 -58)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+11 -0)
📝 packages/client/src/components/chat/SummaryPopover.tsx (+89 -41)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+17 -0)
📝 packages/client/src/localization/locales/en.json (+3 -0)
📝 packages/client/src/stores/ui.store.ts (+14 -1)
📝 packages/server/src/routes/generate.routes.ts (+2 -0)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+2 -0)
📝 packages/server/src/services/generation/conversation-selfie-command-runtime.ts (+7 -3)
📝 packages/server/src/services/image/illustrator-references.ts (+7 -4)
📝 scripts/regressions/open-issues.regression.ts (+144 -2)
📝 scripts/regressions/prompt.regression.ts (+17 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.

Linked issue

Closes #4517
Closes #4518

Closes #4521

Why this change

  • Group selfies could be capped to one character reference, Roleplay illustration retries did not consistently inspect the latest user request, and off-camera persona avatars could consume a provider reference slot.
  • Merged Narrator avatars cycled through inactive characters with no way to disable the motion.
  • Summary Prompt views changed height and lacked a Done action for leaving Edit mode.

What changed

  • Resolve all depicted Conversation selfie characters, omit the photographer persona, and retain multiple provider reference images.
  • Include the latest user message in Roleplay Illustrator reference detection for initial runs and retries; attach personas only when the Illustrator explicitly lists them.
  • Restrict merged Narrator presentation to active characters and add the localized Narrator's Cycling Avatars preference, enabled by default. When disabled, active avatars appear together.
  • Give Chat Summary and Combine prompt views the same vertical space, compact the Combine editor, and add a save-aware Done state.
  • Add prompt, issue-regression, and desktop browser-flow coverage.

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 checks run locally:

  • pnpm check
  • pnpm regression:prompt
  • pnpm regression:issues
  • targeted desktop Chromium Chat Summary interaction test

Manual verification notes

  • Manually verify group Conversation selfies with two or more depicted characters on a multi-reference provider.
  • Manually verify Roleplay illustrations and retries with an off-camera persona and multiple depicted characters.
  • Manually verify cycling and side-by-side Narrator avatars with active/inactive characters, every avatar style, light/dark themes, and desktop/mobile layouts.
  • Manually verify Summary Prompt Edit/Done and equal view heights in the app.

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)

  • Targeted Playwright coverage verifies the equal-height prompt views and Edit/Done interaction.

Summary by CodeRabbit

  • New Features

    • Added a Narrator avatar setting for roleplay messages, allowing avatars to cycle or display active characters together.
    • Enhanced avatar and narrator-name rendering for merged or inactive characters.
    • Improved image generation to identify relevant chat participants from recent messages and support group references.
    • Updated the summary prompt editor with clearer Edit/Done controls, reliable saving, and consistent sizing.
  • Bug Fixes

    • Improved character reference handling for group selfies, retries, and roleplay image prompts.
    • Prevented unintended persona references and preserved depicted characters in generated-image galleries.

🔄 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/4519 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/3/2026 **Status:** ✅ Merged **Merged:** 8/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/avatar-reference-and-narrator-controls` --- ### 📝 Commits (6) - [`1357665`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1357665e05e163d69ceabf9ccf342c42e8623192) chore: start avatar issue fixes - [`7a2d104`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7a2d104e9447e1d0a5633145c293108c8388a24f) fix: stabilize roleplay image references and avatars - [`03bbf7c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/03bbf7c96c57eca493407d4fcc59c001338c621e) fix: address review feedback - [`60c358a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/60c358a6e497fb1788a0e8475bf4e0546b0db98e) Merge branch 'staging' into agent/avatar-reference-and-narrator-controls - [`1fe28fc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1fe28fc0a3887e9c5b90c23f9152970d795733d8) fix: harden review edge cases - [`3e8e235`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3e8e235bd6174c91de13aa2d9be3b8a6f15e6d13) fix: synchronize narrator cycle reset ### 📊 Changes **13 files changed** (+461 additions, -110 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+39 -1) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+109 -58) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+11 -0) 📝 `packages/client/src/components/chat/SummaryPopover.tsx` (+89 -41) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+17 -0) 📝 `packages/client/src/localization/locales/en.json` (+3 -0) 📝 `packages/client/src/stores/ui.store.ts` (+14 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+2 -0) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+2 -0) 📝 `packages/server/src/services/generation/conversation-selfie-command-runtime.ts` (+7 -3) 📝 `packages/server/src/services/image/illustrator-references.ts` (+7 -4) 📝 `scripts/regressions/open-issues.regression.ts` (+144 -2) 📝 `scripts/regressions/prompt.regression.ts` (+17 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. ## Linked issue Closes #4517 Closes #4518 Closes #4521 ## Why this change - Group selfies could be capped to one character reference, Roleplay illustration retries did not consistently inspect the latest user request, and off-camera persona avatars could consume a provider reference slot. - Merged Narrator avatars cycled through inactive characters with no way to disable the motion. - Summary Prompt views changed height and lacked a Done action for leaving Edit mode. ## What changed - Resolve all depicted Conversation selfie characters, omit the photographer persona, and retain multiple provider reference images. - Include the latest user message in Roleplay Illustrator reference detection for initial runs and retries; attach personas only when the Illustrator explicitly lists them. - Restrict merged Narrator presentation to active characters and add the localized `Narrator's Cycling Avatars` preference, enabled by default. When disabled, active avatars appear together. - Give Chat Summary and Combine prompt views the same vertical space, compact the Combine editor, and add a save-aware Done state. - Add prompt, issue-regression, and desktop browser-flow coverage. ## 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 checks run locally: - `pnpm check` - `pnpm regression:prompt` - `pnpm regression:issues` - targeted desktop Chromium Chat Summary interaction test ### Manual verification notes - Manually verify group Conversation selfies with two or more depicted characters on a multi-reference provider. - Manually verify Roleplay illustrations and retries with an off-camera persona and multiple depicted characters. - Manually verify cycling and side-by-side Narrator avatars with active/inactive characters, every avatar style, light/dark themes, and desktop/mobile layouts. - Manually verify Summary Prompt Edit/Done and equal view heights in the app. ## 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) - Targeted Playwright coverage verifies the equal-height prompt views and Edit/Done interaction. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a Narrator avatar setting for roleplay messages, allowing avatars to cycle or display active characters together. * Enhanced avatar and narrator-name rendering for merged or inactive characters. * Improved image generation to identify relevant chat participants from recent messages and support group references. * Updated the summary prompt editor with clearer Edit/Done controls, reliable saving, and consistent sizing. * **Bug Fixes** * Improved character reference handling for group selfies, retries, and roleplay image prompts. * Prevented unintended persona references and preserved depicted characters in generated-image galleries. <!-- 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-23 04:10: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#6407
No description provided.