[PR #3610] [MERGED] Fix Group Conversation line bubble splitting #6017

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3610
Author: @SpicyMarinara
Created: 7/14/2026
Status: ✅ Merged
Merged: 7/15/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/3609-group-conversation-line-bubbles


📝 Commits (6)

  • 4f5a7ab Split inherited group conversation lines into bubbles
  • 720220d Fix narration segments in conversation bubbles
  • aa538cb Merge remote-tracking branch 'origin/staging' into fix/3609-group-conversation-line-bubbles
  • e86f737 Merge remote-tracking branch 'origin/staging' into fix/3609-group-conversation-line-bubbles
  • 9a238ae Preserve reaction groups in line bubble splitting
  • 80c333d Handle CRLF in conversation bubble lines

📊 Changes

4 files changed (+79 additions, -42 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/chat/ConversationMessageBubble.tsx (+51 -42)
📝 packages/shared/src/utils/speaker-segments.ts (+9 -0)
📝 scripts/regressions/open-issues.regression.ts (+18 -0)

📄 Description

Why

Group Conversation output that follows the documented inherited-speaker format no longer produces one bubble per generated line. Consecutive lines from the same character are rendered as one oversized bubble, which regresses the behavior reported in #3609.

What changed

  • Parse every visible Name: first line / inherited following line as its own canonical display and reaction segment.
  • Preserve the preceding known character as the speaker for unprefixed consecutive lines.
  • Render each parsed Group Conversation segment as a separate Messenger-style bubble.
  • Keep complete <speaker> tag parsing, non-group messages, and non-bubble display modes on their existing paths.
  • Add deterministic regression coverage for the reported three-line example.

Closes #3609

Validation

  • Manually verify prefixed and inherited same-character lines render as separate bubbles.
  • Manually verify a following different-character prefix switches the bubble author correctly.
  • Manually verify desktop and mobile bubble layouts.
  • Run pnpm regression:issues.
  • Run pnpm smoke:ui.
  • Run pnpm check.

Automated validation completed locally: pnpm regression:issues, pnpm smoke:ui (54 passed, 26 expected skips), and pnpm check.

Manual proof gap: the in-app browser was unavailable in this session, so the desktop/mobile visual checks and screenshots remain for human verification.

Summary by CodeRabbit

  • Bug Fixes

    • Fixed Group Conversation Bubbles so generated replies display each line in its own speaker bubble.
    • Preserved the correct speaker identity across consecutive lines without explicit speaker labels.
    • Improved handling of blank or speaker-less lines in grouped conversations.
  • Tests

    • Added regression coverage for multi-speaker conversations and line-by-line bubble rendering.

🔄 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/3610 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/14/2026 **Status:** ✅ Merged **Merged:** 7/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3609-group-conversation-line-bubbles` --- ### 📝 Commits (6) - [`4f5a7ab`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4f5a7ab96c9222e0b381bc6fc011115dbe39a876) Split inherited group conversation lines into bubbles - [`720220d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/720220d4fe957762aaa8827b23975832f1a992fe) Fix narration segments in conversation bubbles - [`aa538cb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aa538cb911f5227f48eb19a6e98caa1d9d36a7a9) Merge remote-tracking branch 'origin/staging' into fix/3609-group-conversation-line-bubbles - [`e86f737`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e86f737814205ed7cf582afa8540f840f8712544) Merge remote-tracking branch 'origin/staging' into fix/3609-group-conversation-line-bubbles - [`9a238ae`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9a238aefca18ae0ff18a517c77bf9abec5d13cff) Preserve reaction groups in line bubble splitting - [`80c333d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/80c333d8ef37906e4684395a7ce1349dc1576d80) Handle CRLF in conversation bubble lines ### 📊 Changes **4 files changed** (+79 additions, -42 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/chat/ConversationMessageBubble.tsx` (+51 -42) 📝 `packages/shared/src/utils/speaker-segments.ts` (+9 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+18 -0) </details> ### 📄 Description ## Why Group Conversation output that follows the documented inherited-speaker format no longer produces one bubble per generated line. Consecutive lines from the same character are rendered as one oversized bubble, which regresses the behavior reported in #3609. ## What changed - Parse every visible `Name: first line` / inherited following line as its own canonical display and reaction segment. - Preserve the preceding known character as the speaker for unprefixed consecutive lines. - Render each parsed Group Conversation segment as a separate Messenger-style bubble. - Keep complete `<speaker>` tag parsing, non-group messages, and non-bubble display modes on their existing paths. - Add deterministic regression coverage for the reported three-line example. Closes #3609 ## Validation - [ ] Manually verify prefixed and inherited same-character lines render as separate bubbles. - [ ] Manually verify a following different-character prefix switches the bubble author correctly. - [ ] Manually verify desktop and mobile bubble layouts. - [ ] Run `pnpm regression:issues`. - [ ] Run `pnpm smoke:ui`. - [ ] Run `pnpm check`. Automated validation completed locally: `pnpm regression:issues`, `pnpm smoke:ui` (54 passed, 26 expected skips), and `pnpm check`. Manual proof gap: the in-app browser was unavailable in this session, so the desktop/mobile visual checks and screenshots remain for human verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed Group Conversation Bubbles so generated replies display each line in its own speaker bubble. * Preserved the correct speaker identity across consecutive lines without explicit speaker labels. * Improved handling of blank or speaker-less lines in grouped conversations. * **Tests** * Added regression coverage for multi-speaker conversations and line-by-line bubble rendering. <!-- 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:06:16 +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#6017
No description provided.