mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8252] [MERGED] feat(illustrator): give image prompts the current Maps location #8564
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#8564
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/8252
Author: @ylli-selmani
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/illustrator-current-location📝 Commits (3)
d70dbf6feat(illustrator): give image prompts the current Maps locationbadbfd5fix(illustrator): read the map location after the reply for post-reply agentscc2fe26fix(illustrator): pass the post-reply location to automatic post-processing agents📊 Changes
9 files changed (+191 additions, -5 deletions)
View changed files
📝
packages/server/src/routes/generate.routes.ts(+12 -2)📝
packages/server/src/routes/generate/retry-agents-route.ts(+2 -0)📝
packages/server/src/services/agents/agent-executor.ts(+28 -0)📝
packages/server/src/services/agents/agent-pipeline.ts(+3 -0)📝
packages/server/src/services/generation/illustrator-manual-prompt-generation.ts(+5 -2)📝
packages/server/src/services/spatial-context/projection.ts(+14 -1)📝
packages/shared/src/types/agent.ts(+5 -0)📝
scripts/regressions/agent-runtime.regression.ts(+22 -0)📝
scripts/regressions/prompt.regression.ts(+100 -0)📄 Description
Linked issue
Closes #8251
Why this change
precise reference requires a V4.5 model, got nai-diffusion-5-full.What changed
AgentContext.currentLocation(shared type, optional): the Roleplay location's breadcrumb path and public description. Set from the already-resolved location ingenerate.routes.tsand inbuildRetryAgentContext(retries and the Gallery Illustration button) viaagentCurrentLocationFromProjection.<current_location>block,buildAgentCurrentLocationBlockinagent-executor.ts:<current_game_state>, for image-capable agents only;[illustrate:]commands, Gallery button) adds it before the lore block.The block:
Location after the reply. The narrator's map move is committed before post-reply agents run. So the route reads the location once more for them (
postReplySpatialProjection), the same way game mode already reads it again after the reply. Automatic post-processing runs get it through a newcurrentLocationoverride onpipeline.postGenerate, built the same way as the existingdecisionsoverride, because the pipeline otherwise keeps its pre-reply context. The automatic Illustrator,[illustrate:]commands and their location reference image all see where the story is now, not where the turn started. Before this, the[illustrate:]reference image used the turn-start location, so a narrator move in the same reply attached the previous room's artwork. Retries and the Gallery button read the location at the retried message.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checkexit 0. Regressions:prompt(all tests, including the new one),spatial-context,world-one-place,agent-runtime2/2,illustrator-character-prompts,agent-connection-parameters, all passing.prompt.regression.ts), "Illustrator prompts carry the current Maps location under Tracker data (#8251)", covers:agent-runtime.regression.ts:postGeneratewith acurrentLocationoverride sends the new room, and without one keeps the pipeline's own. Removing the override makes it fail.[illustrate: ...]command. The[debug/illustrator/manual-illustration-prompt] messageslog should contain<current_location>with the path and description.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
No UI change. Server-side prompt assembly only.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.