mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4694] [Issue]: Parallel Roleplay agents make typewriter streaming visibly chunky #2572
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#2572
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 @SpicyMarinara on GitHub (Aug 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4694
Originally assigned to: @SpicyMarinara on GitHub.
Summary
When one or more parallel agents, such as Echo Chamber, run alongside the main generation in Roleplay mode, the visible typewriter stream becomes noticeably chunky. The reply pauses briefly and then reveals several characters at once instead of maintaining a steady cadence.
Expected behavior
Roleplay text should retain a smooth, frame-paced typewriter effect while parallel agents run and complete. Agent result updates and auxiliary panel animations should not interrupt the visible main reply.
Actual behavior
With parallel agents enabled, the main Roleplay reply is visibly less smooth than the same generation without those agents. Delayed animation frames are followed by bursts of multiple characters, producing a stop-and-catch-up effect.
Steps to reproduce
Environment
Logs, screenshots, or video
No dedicated performance capture has been recorded for this exact parallel-agent reproduction.
The earlier Firefox profile discussed in #4659 predates the stable live-text-node fix and therefore is not direct proof of this issue. It does, however, show that Roleplay-wide UI updates and scroll/layout work can consume multiple animation frames.
Additional context
Code-path inspection indicates a specific contention window:
agent_startandagent_resultevents until the main model transport has completed.A narrow fix should be investigated before broader rendering changes:
This is distinct from #4659, which addressed replacing the live stream's DOM text node on every frame.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Aug 6, 2026):
Claimed by @SpicyMarinara. Implementation and validation are being tracked in draft PR #4697.