mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5692] [Issue]: Game Mode stays in writing state during idle gap before scene analysis #3151
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#3151
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 @Gunterlie on GitHub (Aug 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5692
Originally assigned to: @Gunterlie on GitHub.
$## Summary
Game Mode can spend about 5-10 seconds with low CPU and GPU use after the main LLM finishes generating text but before sidecar scene analysis starts. During this interval, the status bar still says "The Game Master is writing the next segment...".
The delay is inconsistent in frequency and duration. With fast LLMs, it can represent most of the total turn latency.
Expected behavior
After the main Game Master response is complete, Marinara should either begin scene analysis without an avoidable idle gap or show the actual processing phase. The status text should not say that the Game Master is writing when no main text generation is running.
Actual behavior
The generated text is not immediately presented as the completed Game Mode narration. The UI continues to show "The Game Master is writing the next segment..." while CPU and GPU remain largely unused. Sidecar analysis starts later.
Steps to reproduce
The interval does not occur with the same duration on every turn.
Environment
Logs, screenshots, or video
No logs, screenshots, or video were provided.
Additional context
Reported diagnostics:
Code inspection indicates that the server saves the assistant message before post-processing agents finish, but the client keeps Game Mode
isStreamingactive until the full generation request completes. The client then refreshes messages and starts scene processing. This may combine post-processing, refresh work, and scene-analysis startup into a visible idle interval. The Microsoft Basic Render Driver may affect local rendering or sidecar performance, but it does not explain the inaccurate writing status by itself.@Gunterlie commented on GitHub (Aug 31, 2026):
Picked up by @Gunterlie (Claude agent). Draft PR: #5703