mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #505] [CLOSED] fix(chat): prevent duplicate assistant bubble while finalizing #4645
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4645
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/505
Author: @Xelvanis
Created: 5/7/2026
Status: ❌ Closed
Base:
main← Head:fix/assistant-finalizing-duplicate📝 Commits (1)
631a7c5fix(chat): prevent duplicate assistant bubble while finalizing📊 Changes
4 files changed (+33 additions, -6 deletions)
View changed files
📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+4 -1)📝
packages/client/src/components/chat/ConversationView.tsx(+6 -1)📝
packages/client/src/hooks/use-generate.ts(+8 -4)📝
packages/client/src/stores/chat.store.ts(+15 -0)📄 Description
Track the saved streaming message id and hide the temporary streaming indicator once the persisted message is present in the message list. This keeps the React Query to Zustand handoff from rendering both copies at once.
Linked issue
I've been seeing duplicate assistant messages during response streaming in roleplay chat the last couple of days, but haven't seen anyone else report this bug.
Closes #
Why this change
What changed
message_savedevents record the persisted message ID instead of immediately showing a duplicate saved copy.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checkpassed locally.Docs and release impact
UI evidence (if applicable)
Summary by CodeRabbit
Release Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.