mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#6214
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/4041
Author: @SpicyMarinara
Created: 7/24/2026
Status: ✅ Merged
Merged: 7/24/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/4039-convo-reveal-truncation📝 Commits (1)
470d1a0fix(convo): don't leave messages truncated when the reveal is interrupted📊 Changes
1 file changed (+6 additions, -0 deletions)
View changed files
📝
packages/client/src/components/chat/ConversationView.tsx(+6 -0)📄 Description
Why
Reported in #4039: in Conversation mode (since the multi-character convo work), messages intermittently display only part of their content — cut off around a
word:/Speaker:boundary — while editing the message reveals that the full content was generated and stored.Root cause (it's not the segmentation regex): I reproduced the speaker/name segmentation directly and it handles
word:correctly — nothing is dropped there. The truncation is in the staggered reveal. Multi-speaker (or classic multi-part) assistant messages reveal their segments/parts one at a time, 1.5s apart, by ratchetingvisibleSegmentCounts[key]/visiblePartCounts[key]from 1 up to the full count. Each stagger timer bails early when the message is not currently rendered (scrolled out of view / virtualized) — but it bailed without advancing the count, leaving the stored value stuck at a partial number. The render then caps the message at that stale value (visibleSegmentCounts[key] ?? fullCount), so everything after the last-revealedSpeaker:boundary stays hidden until the chat is switched. Editing bypasses the segmented render, which is why it shows the full text.What changed
packages/client/src/components/chat/ConversationView.tsx— in both stagger loops (parts and segments), when a reveal timer bails because the message isn't rendered, it now sets the visible count to the full count before clearing itself, instead of leaving it stuck partway. An interrupted reveal therefore shows the complete message when it re-renders, rather than staying truncated.No change to the segmentation regexes or the normal (uninterrupted) reveal animation.
Test plan
Speaker:segments; while it is revealing, scroll it out of view and back, then confirm the whole message is shown (not cut off at aSpeaker:/word:line).pnpm checkpasses. (Passed in the authoring session; re-verify locally.)Fixes #4039.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.