[PR #5283] [MERGED] fix(roleplay): hide uncolored merged speaker tags #6704

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

📋 Pull Request Information

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

Base: staging ← Head: fix/merged-speaker-default-color-5282


📝 Commits (1)

  • 595892c fix(roleplay): hide uncolored merged speaker tags

📊 Changes

3 files changed (+61 additions, -2 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+58 -0)
📝 packages/client/src/components/chat/ChatMessage.tsx (+2 -2)

📄 Description

Linked issue

Closes #5282

Why this change

  • Merged Narrator replies exposed raw speaker markup whenever every participating character relied on the default dialogue color.

What changed

  • Parse speaker tags even when no per-character color map exists.
  • Fall back to the resolved default dialogue color while preserving custom color overrides.
  • Cover the all-uncolored merged group case in the browser smoke suite.
  • Record the user-facing 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

Manual verification notes

  • Manually verify a Merged (Narrator) Roleplay reply with two uncolored characters hides speaker tags and uses the configured default dialogue color.
  • Manually verify a character-specific dialogue color still overrides the default.

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)

  • Focused automated browser regression added; manual verification remains listed above.

Summary by CodeRabbit

  • Bug Fixes

    • Improved merged narrator replies in roleplay chats by hiding speaker tags.
    • Ensured dialogue uses the configured default color when no participating character has a custom color.
  • Tests

    • Added coverage for merged narrator rendering with default dialogue colors.

🔄 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/5283 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/19/2026 **Status:** ✅ Merged **Merged:** 8/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/merged-speaker-default-color-5282` --- ### 📝 Commits (1) - [`595892c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/595892c6a293f941cff69455e253a4c75486763b) fix(roleplay): hide uncolored merged speaker tags ### 📊 Changes **3 files changed** (+61 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+58 -0) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+2 -2) </details> ### 📄 Description ## Linked issue Closes #5282 ## Why this change - Merged Narrator replies exposed raw speaker markup whenever every participating character relied on the default dialogue color. ## What changed - Parse speaker tags even when no per-character color map exists. - Fall back to the resolved default dialogue color while preserving custom color overrides. - Cover the all-uncolored merged group case in the browser smoke suite. - Record the user-facing 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` ### Manual verification notes - Manually verify a Merged (Narrator) Roleplay reply with two uncolored characters hides speaker tags and uses the configured default dialogue color. - Manually verify a character-specific dialogue color still overrides the default. ## 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) - Focused automated browser regression added; manual verification remains listed above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved merged narrator replies in roleplay chats by hiding speaker tags. * Ensured dialogue uses the configured default color when no participating character has a custom color. * **Tests** * Added coverage for merged narrator rendering with default dialogue colors. <!-- 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:12:53 +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#6704
No description provided.