mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1446] [Issue]: Typing in chat input re-renders message timeline and can freeze large chats #720
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#720
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?
Originally created by @Promansis on GitHub (May 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1446
Originally assigned to: @Promansis on GitHub.
Summary
Typing in the chat input can re-render the message timeline because message rows and timeline actions subscribe directly to
currentInput. On large chats, this can make typing stutter or freeze the chat UI.Expected behavior
Typing in the draft input should update the composer without forcing every rendered message/action row to re-render. Regenerate should still read the latest draft text when clicked so guided regeneration behavior remains intact.
Actual behavior
On
upstream/refactor, message components still subscribe touseChatStore((s) => s.currentInput...):src/features/modes/conversation/components/ConversationMessage.tsxsrc/features/modes/shared/chat-ui/components/ChatMessage.tsxsrc/features/modes/shared/chat-ui/hooks/use-chat-timeline-actions.tsThat couples every draft keystroke to timeline/message UI. The rebased fix branch
fix/chat-typing-freezeremoves those live subscriptions and reads the current input lazily only when regenerate is invoked.Steps to reproduce
upstream/refactor, open a chat with a large rendered message timeline.currentInput.Impact area
Environment
upstream/refactorata6d2fc8b79093f35e766528460175240f5588552; candidate fix branchfix/chat-typing-freezeata0bef2e6126279963a0497e184f50868efbd4da7v24.15.0, pnpm10.33.2Logs, screenshots, or video
No screenshot/video captured. Evidence is from code inspection and the rebased fix diff.
Regression notes
This was identified while rebasing
fix/chat-typing-freezeonto currentupstream/refactor. The fix still applies because the current refactor branch keeps draft-input subscriptions in message/timeline code.Additional context
The candidate fix keeps guided regenerate behavior by reading
useChatStore.getState().currentInputinsidehandleRegenerate, instead of subscribing the whole timeline hook and message rows to draft input changes.pnpm typecheckpassed after the earlier rebase of this UI-only fix; it has not been rerun after the latest chat rebase in this turn.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: