mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #513] [Issue]: Game Mode combat — mobile layout collisions, encounter-trigger timing race, refresh loses combat state, persona name appears as "user" #232
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#232
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 @Romuromylus on GitHub (May 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/513
Summary
Game Mode combat has four issues, all surfacing during normal play: the encounter overlay either skips or stalls past the GM's pre-fight prose, the mobile layout collides with itself once round-2 panels appear, a page refresh during combat drops the player back into prose narration, and the player's combatant card shows the literal string "User" / "user" instead of the configured persona name.
Expected behavior
[combat:]or[state: combat]tag, the encounter overlay should open right after the typewriter finishes revealing the GM's pre-fight prose — neither slamming open mid-typewriter nor sitting idle for several seconds afterward.chat.personaId).Actual behavior
[combat:]before opening.Steps to reproduce
[combat: ...]or[state: combat]tag).chat.personaId), enter combat and observe the player combatant's name on the card — it appears as "User" / "user" rather than the persona name.Environment
Logs, screenshots, or video
Additional context
narrationDone === truefrom the previous turn leaking past the encounter-trigger gate inGameSurface.tsxbefore the new assistant message's typewriter has a chance to push the value to false.encounter.routes.ts buildPersonaContext— it only consultsisActive === "true"and ignoreschat.personaId.chats.routes.ts:365-368already does the right thing (prefer chat persona, fall back to active); the encounter routes need the same.Fixes are prepared in a follow-up PR.
Template check