mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4545] [MERGED] Hide generated World Maps directives from chat text #6417
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#6417
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/4545
Author: @thetopham
Created: 8/4/2026
Status: ✅ Merged
Merged: 8/4/2026
Merged by: @thetopham
Base:
staging← Head:agent/4433-spatial-directive-cleanup📝 Commits (4)
9bb3995fix(spatial): hide generated movement directivesd557ea7fix(spatial): address review feedback95ebe4bfix: sanitize inline thinking replacementse8e62c7fix: sanitize spatial rewrite output📊 Changes
3 files changed (+205 additions, -32 deletions)
View changed files
📝
packages/server/src/routes/generate.routes.ts(+52 -32)📝
packages/server/src/services/spatial-context/state-resolution.ts(+66 -0)📝
scripts/regressions/spatial-context.regression.ts(+87 -0)📄 Description
Linked issue
Closes #4433
Paired World Maps release: Pasta-Devs/Marinara-Agents#220
Why this change
/impersonate.content_replacebefore the same spatial sanitization ran.What changed
spatial_moveandspatial_discoverdirectives from Roleplay and Game token streams.text_rewriteemission; directives introduced only by a rewrite are discarded and never applied.Validation
pnpm checkpasses locallyAutomated evidence:
pnpm regression:spatialpasses at exact heade8e62c79d8f026f274117206ebb84d3f7630f6a7.pnpm lintpasses.pnpm buildpasses and embeds Engine commite8e62c79d8f0.pnpm-validateandcontainer-build-testchecks passed; current-head checks remain authoritative in the checks tab.pnpm checkwrapper still stops at the Impeccable wrapper's invalid nested-JSON report; its substantive regression, lint, localization, build, catalog, and lifecycle checks were run separately.Review follow-up:
d557ea7ddpreserves ordinary impersonated content and fixes whitespace-only directive-prefix streaming.95ebe4b51prevents inline-thinkingcontent_replacefrom preceding spatial sanitization.e8e62c79dstrips spatial directives introduced by post-processing text rewrites before persistence or emission.Exact artifacts
e8e62c79d8f026f274117206ebb84d3f7630f6a7assets/index-34m9qbDB.jsgenerate.routes.jsSHA-256:e86efa97e00e55690e3e571393a41921a8c9180fb3467188543eec680893bc85c82af3fafb435a32b4a1cfd082fcbba01dd890577c296732b9c4a1fd30f507794a3d96645d67378e14ef7ea156df41096fae614bcc74f11979213c6f6fed54db60493bd9b84e069082126865741afcdcdf1e5773ea0af5f7c206aff577db94a2ee854b21d79c2e79776bb74bcd70ceb4f512ee76Local review installation
http://100.93.53.36:7860/.marinara.serviceis active/running;/api/healthreports Engine2.4.1+e8e62c79d8f0and World Maps1.3.1asactive/readywith both server and client loaded.assets/index-34m9qbDB.jsSHA-256 is0d6c98fa66f0777f51b77b83fbb2a24e09ee93e3ef7f3582c069139ed889f424, matching the validated build.1.3.1; the served client SHA-256 iscc74f11979213c6f6fed54db60493bd9b84e069082126865741afcdcdf1e5773, matching the installed and PR-head payloads. The active server payload matchesea0af5f7c206aff577db94a2ee854b21d79c2e79776bb74bcd70ceb4f512ee76.Manual verification notes
/guided, regeneration, continuation, and/impersonatewith World Maps active.[spatial_move: ...]or[spatial_discover: ...]text appears while streaming, during inline-thinking replacement, or in the saved message.Docs and release impact
UI evidence (if applicable)
grassy dirt path, HTTP 404). User workflow verification remains separate and unchecked above.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.