mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4433] [Issue]: World Maps queued movement fails when Roleplay input is posted with /impersonate #2406
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#2406
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 @thetopham on GitHub (Aug 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4433
Originally assigned to: @thetopham on GitHub.
Summary
World Maps queued movement fails deterministically when a Roleplay player's next message is posted through
/impersonate.The reporter normally uses:
/impersonatefor the player's messages;/guidedfor NPC/assistant messages.A bare control chat appeared to work because it used normal typed posts. Character cards, scenarios, personas, prompt presets, and other agents are therefore not the trigger.
Expected behavior
/impersonategenerates and posts the user's next Roleplay message, so the accepted generated user message should count as the next owner turn./guided, regeneration, and continuation create or modify assistant-side output and must not consume the player's queued move.Actual behavior
/impersonate, optionally with a direction./impersonateagain repeats the loop indefinitely.Normal typed Roleplay posts are a positive control: they forward the queued transition and move successfully.
Steps to reproduce
/impersonateor/impersonate <direction>.Confirmed cause
Current source separates the two paths incorrectly:
pendingSpatialTransition./impersonateslash command sendsimpersonate: truewithout that transition.disabled/busy cycle as if a movement-bearing owner turn was submitted. When impersonation finishes and the location is unchanged, it incorrectly marks the queued commandneeds_review.This is a submission/acknowledgement contract bug, not corrupt map data. Exporting, reinstalling World Maps, changing the starting location, or rebuilding the chat does not address it.
Fix boundary
The corrected contract should:
/impersonateis used for the next Roleplay owner message./guided, regeneration, continuation, illustration, or other passive generation cannot falsely mark a move Needs review.This likely requires paired host integration and World Maps package-runtime changes. Engine owns the generation/spatial-transition contract; Marinara-Agents owns the downloadable World Maps bridge/runtime.
Acceptance coverage
/impersonate: generated user message saves, move commits once, queue clears./guided: NPC message saves and queued player move remains ready./impersonate: no movement and queue remains ready.The separate source-derived Game alternate-submission gaps are not part of this confirmed Roleplay reproduction and should be tracked independently if still actionable.
Environment
/impersonateLogs
A fresh debug log confirms that the impersonate generation completed with spatial context present. Private prompt and message content are intentionally omitted.
Prior history
The earlier World Maps 1.2.3 submitted-command acknowledgement defect and its 1.2.5 repair remain relevant history, but this is a distinct current path:
/impersonateposts the player's generated message without participating in the queued owner-turn transition contract.Template check
@thetopham commented on GitHub (Aug 1, 2026):
Audit follow-up: the exact World Maps 1.2.5 artifact from Agents PR #164 passes the package lifecycle regression, including the normal Roleplay route and the API-driven Game route. That regression does not exercise Game alternate submission paths such as CYOA choices, QTE results, combat results, or item use. Those paths call GameSurface.sendMessage without forwarding the pending spatial transition, while GameInput only forwards it from scene-addressed composer submissions. This keeps the leading fix ownership in Engine and gives the manual retest a concrete matrix; the package lifecycle pass should not be treated as proof that the reported Game UI loop is fixed.
@thetopham commented on GitHub (Aug 2, 2026):
unable to reproduce in main
@thetopham commented on GitHub (Aug 3, 2026):
Fresh recurrence reported on 2026-08-03:
The reporter is believed to be using Roleplay mode, but the mode has not yet been confirmed. Engine version/build, World Maps version, install type, and submission surface were not supplied.
This is the same user-visible loop described in this issue. It is new evidence because this issue was closed as unable to reproduce rather than by a linked fix.
Current checked
stagingsource still has submission-path differences:pendingSpatialTransitionand should commit it.sendMessage(...)paths still omit it.If this is confirmed as a normal Roleplay post, the earlier alternate-Game explanation is insufficient and the package-to-Engine synchronization/server rejection path needs a fresh trace.
Please capture these details before closing again:
/api/generateresponse code; private message content can be removed.Reopening for reproduction against the currently installed package/Engine pair. If the reporter confirms Roleplay, the title/scope should be broadened from Game to Roleplay/Game.
@thetopham commented on GitHub (Aug 3, 2026):
Additional reproduction detail from the reporter:
This rules out simple misunderstanding of the UI: destination selection succeeds and creates a ready pending move each time. The failure occurs during submission, server commit, or client acknowledgement of the immediately following turn.
Mode is still believed to be Roleplay but remains unconfirmed. If it is a normal typed Roleplay turn, the standard Roleplay path is expected to forward
pendingSpatialTransition, so capture the failed request/response or relevant debug log rather than treating the warning as normal stale-state recovery.@thetopham commented on GitHub (Aug 3, 2026):
Timeline correction and scope clarification:
The reporter's longer sequence about restart drift, a two-step route stuck on step 1, canceling it, discovering Set current story location, and then seeing Needs review dates back to 2026-07-29. It is the original incident already recorded in Pasta-Devs/Marinara-Agents#160 against World Maps 1.2.3, not an independent post-fix reproduction.
Pasta-Devs/Marinara-Agents#164 merged World Maps 1.2.5 and closed #160. Its relevant changes scoped acknowledgement to the submitted movement command, retained the transition present at turn start through completion, and reconciled the next route step from saved state. Automated exact-artifact coverage included route/history persistence and restart, but the two-hop manual-verification checkbox remained unchecked.
The current state model also distinguishes the two controls:
The reporter is said to still encounter the repeating Needs review loop now. Treat only a fresh reproduction after the 1.2.5 repair as current evidence. Before assigning a regression or host/package owner, confirm:
Keep this issue open pending that current-version control. If World Maps is older than 1.2.5, update first; if the fresh loop reproduces on 1.2.5+ (especially current 1.3.0), it is a genuine unresolved regression rather than the already-closed 1.2.3 incident.
@thetopham commented on GitHub (Aug 3, 2026):
Mode and sequence are now confirmed:
This broadens the issue beyond alternate Game actions. Once Place A was saved as the current story location and several turns completed, changing the map's starting location was not required and should not affect the next queued move. A freshly queued adjacent move should carry the current definition/location revision.
Current checked
stagingsource expects the standard Roleplay composer to forward a readypendingSpatialTransition. The next diagnostic needs to locate the failure among:ChatInputattaching that transition to/api/generate.The exact current Engine build, installed World Maps version, and failed request/debug response are still needed. This is no longer adequately described as a Game-only issue.
@thetopham commented on GitHub (Aug 3, 2026):
unable to reproduce on my current installation
@thetopham commented on GitHub (Aug 3, 2026):
/impersonate and que location causes error