mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3837] [MERGED] fix: smooth Roleplay interactions and TTS pauses #6123
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#6123
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/3837
Author: @SpicyMarinara
Created: 7/19/2026
Status: ✅ Merged
Merged: 7/20/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/roleplay-composer-stream-smoothing📝 Commits (7)
25c9a36chore: start roleplay responsiveness fixdcf8a4ffix: smooth roleplay typing and streamingfe07582fix: keep roleplay backgrounds stable during panel resizebd306daRevert "fix: keep roleplay backgrounds stable during panel resize"3634be5fix: stabilize roleplay backgrounds and TTS pauses746a9a3fix: resize roleplay backgrounds with sidebars1e4052bfix: address roleplay smoothing review📊 Changes
14 files changed (+273 additions, -56 deletions)
View changed files
📝
CHANGELOG.md(+3 -0)📝
docs/chats/sending-and-streaming.md(+1 -1)📝
e2e/core-flows.e2e.ts(+49 -2)📝
packages/client/src/components/chat/ChatInput.tsx(+31 -8)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+10 -6)📝
packages/client/src/components/panels/settings/TTSConfigCard.tsx(+24 -14)📝
packages/client/src/hooks/use-generate.ts(+21 -1)📝
packages/client/src/lib/generation-stream-policy.ts(+24 -0)📝
packages/client/src/styles/globals.css(+28 -10)📝
packages/client/src/styles/themes/sillytavern.css(+3 -2)📝
packages/client/src/workers/weather-effects.worker.ts(+6 -2)📝
packages/shared/src/types/tts.ts(+18 -1)📝
scripts/regressions/roleplay-streaming.regression.ts(+32 -0)📝
scripts/regressions/tts-source-persistence.regression.ts(+23 -9)📄 Description
Closes #3836
Why
Roleplay typing published the full draft to shared state synchronously for every key. Streamed replies also drained each provider burst faster than the next chunk arrived, and the Roleplay streaming glow continuously repainted a box shadow. Together these made both composing and reading feel less fluid.
Firefox could also briefly flash Roleplay's visual layers while the desktop shell changed width around opening or closing sidebars. The first workaround kept the background viewport-sized, but that caused sidebars to crop it instead of resizing the whole composition into the remaining chat area. The weather OffscreenCanvas also cleared itself on resize and waited until its next 30 FPS tick to repaint. Separately, the TTS dialogue-pause control exposed milliseconds, allowed no pause, and topped out at only 1.5 seconds instead of presenting a useful human-scale range.
Changes
Automated validation
pnpm checkpnpm --filter @marinara-engine/client lintpnpm --filter @marinara-engine/client buildpnpm regression:roleplaypnpm regression:ttspnpm smoke:ui(72 passed, 46 viewport-specific skips)git diff --checkManual verification
Summary by CodeRabbit
Bug Fixes
Improvements
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.