mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #17] [MERGED] fix: concurrent generation across chats + UI bug fixes #4396
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#4396
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/17
Author: @SpicyMarinara
Created: 3/23/2026
Status: ✅ Merged
Merged: 3/23/2026
Merged by: @SpicyMarinara
Base:
main← Head:fix/concurrent-generation-and-ui-bugs📝 Commits (3)
cd905defix: concurrent generation across chats + UI bug fixes1e4d39ffix: address Copilot PR review commentsbaf035efix: agents, preset variables, background persistence, timestamp stripping📊 Changes
12 files changed (+290 additions, -138 deletions)
View changed files
📝
README.md(+7 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+8 -8)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+10 -2)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+47 -8)📝
packages/client/src/components/chat/ConversationView.tsx(+2 -2)📝
packages/client/src/components/layout/ChatSidebar.tsx(+2 -2)📝
packages/client/src/hooks/use-autonomous-messaging.ts(+4 -4)📝
packages/client/src/hooks/use-background-autonomous.ts(+5 -5)📝
packages/client/src/hooks/use-generate.ts(+100 -69)📝
packages/client/src/stores/chat.store.ts(+77 -9)📝
packages/client/src/stores/ui.store.ts(+9 -0)📝
packages/server/src/routes/generate.routes.ts(+19 -29)📄 Description
Summary
Fixes cross-chat generation corruption where sending a message to one DnD chat and switching to another would cause messages to vanish or UI state to get corrupted.
Concurrent Generation Isolation
isActiveChat()helper inuse-generate.tsthat gates all global UI state updates behind an active-chat checkperChatTypingandperChatDelayedmaps inchat.store.tstrack indicator state independentlysetActiveChatIdrestores typing/delayed indicators AND streaming state when switching to a chat with an active generationsetStreamBuffercalls gated behindisActiveChat()to prevent buffer corruptionBug Fixes from QA
chat_summaryevent now invalidates the correct chat (generating chat, not active chat)reset()now clearsstreamingChatIdandregenerateMessageIdOther UI Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.