[PR #508] [MERGED] fix(client): hide raw conversation streaming buffer #4648

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/508
Author: @Xelvanis
Created: 5/7/2026
Status: ✅ Merged
Merged: 5/7/2026
Merged by: @Xelvanis

Base: main ← Head: fix/conversation-mode-staggered-stream


📝 Commits (1)

  • 30b8d95 fix(client): hide raw conversation streaming buffer

📊 Changes

2 files changed (+32 additions, -35 deletions)

View changed files

📝 packages/client/src/components/chat/ConversationView.tsx (+15 -29)
📝 packages/client/src/hooks/use-generate.ts (+17 -6)

📄 Description

Linked issue

Nobody reported it yet, but I got Luka to repro the bug and confirm I'm not just tripping. I think my earlier change to Conversation Send button becoming regenerate caused the underlying bug to surface. Maybe. I really hope I didn't cause it, lol

Closes #

Why this change

  • Fixes Conversation mode briefly showing the full raw streamed assistant response before replacing it with the intended staggered message bubbles.
  • Keeps Conversation mode behavior closer to texting: typing indicator first, then saved messages appear in staggered chunks.

What changed

  • Stopped Conversation mode from rendering the raw streamBuffer as a temporary assistant message during normal generation.
  • Kept raw stream display available outside Conversation mode, and for in-place regeneration flows where it is still expected.
  • Kept a typing indicator visible while Conversation mode generation is running.
  • Changed stagger setup from useEffect to useLayoutEffect so hidden split bubbles are applied before the browser paints.

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

  • Ran pnpm check locally; it passed.
  • Started the dev app against the test data directory.
  • Manually tested a Conversation mode response and confirmed the raw full response no longer appears before the staggered bubbles.
  • User confirmed the fix appears to work in-app.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

Summary by CodeRabbit

  • Bug Fixes
    • Improved typing indicator display to show multiple character names with proper pluralization
    • Enhanced timing synchronization for message display updates
    • Refined raw streaming output display behavior to prevent unwanted text in conversation chats

🔄 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/508 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/7/2026 **Status:** ✅ Merged **Merged:** 5/7/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `main` ← **Head:** `fix/conversation-mode-staggered-stream` --- ### 📝 Commits (1) - [`30b8d95`](https://github.com/Pasta-Devs/Marinara-Engine/commit/30b8d956992d2b8fcd947942269634a1026187fb) fix(client): hide raw conversation streaming buffer ### 📊 Changes **2 files changed** (+32 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ConversationView.tsx` (+15 -29) 📝 `packages/client/src/hooks/use-generate.ts` (+17 -6) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Nobody reported it yet, but I got Luka to repro the bug and confirm I'm not just tripping. I think my earlier change to Conversation Send button becoming regenerate caused the underlying bug to surface. Maybe. I really hope I didn't cause it, lol Closes # ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Fixes Conversation mode briefly showing the full raw streamed assistant response before replacing it with the intended staggered message bubbles. - Keeps Conversation mode behavior closer to texting: typing indicator first, then saved messages appear in staggered chunks. ## What changed <!-- List the key changes in this PR --> - Stopped Conversation mode from rendering the raw `streamBuffer` as a temporary assistant message during normal generation. - Kept raw stream display available outside Conversation mode, and for in-place regeneration flows where it is still expected. - Kept a typing indicator visible while Conversation mode generation is running. - Changed stagger setup from `useEffect` to `useLayoutEffect` so hidden split bubbles are applied before the browser paints. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [X] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [X] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [X] Above manual verification completed (describe below) - [X] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Ran `pnpm check` locally; it passed. - Started the dev app against the test data directory. - Manually tested a Conversation mode response and confirmed the raw full response no longer appears before the staggered bubbles. - User confirmed the fix appears to work in-app. ## Docs and release impact - [X] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved typing indicator display to show multiple character names with proper pluralization * Enhanced timing synchronization for message display updates * Refined raw streaming output display behavior to prevent unwanted text in conversation chats <!-- 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-22 04:09:28 +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#4648
No description provided.