mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4081] [Issue]: Hierarchical Maps agent (Game mode) — map background mismatches narrative box, and settings menu is visually inconsistent with other agents #2207
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#2207
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 @SpicyMarinara on GitHub (Jul 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4081
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Two visual-consistency problems with the Hierarchical Maps agent in Game mode. Both stem from the same architectural fact: the maps agent is a vendored capability bundle (
agent id "hierarchical-maps") rendered through<CapabilityElement>as the custom elementmarinara-capability-hierarchical-maps(CapabilityElement.tsx:271, :352-359) — its entire UI (settings and map surface) is drawn by the bundle'sclient.js, not by app JSX.1. Map background doesn't match the narrative box
The map panel forces a different CSS-variable family than the narrative box:
GameMapPanel's shell (GAME_MAP_PANEL_CLASS, GameMap.tsx:43-46) usesbg-[var(--marinara-chat-chrome-panel-bg)]and appliesNEUTRAL_SURFACE_VARIABLES(neutral-surface-styles.ts:1-2), which remaps--background,--card,--secondary,--mutedto the chat-chrome panel palette for everything mounted inside. The vendored bundle paints itself withvar(--background)/var(--card)/etc., so inside the panel those resolve to--marinara-chat-chrome-panel-*rather than the app's real tokens.bg-[var(--muted)]/20(real tokens), and its widget/log cards usebg-[var(--card)](:4298, :4429).So the map ends up on the chat-chrome panel palette while the narrative box is on the app's
--card/--mutedpalette — two different families, hence the mismatch. Fix direction: align the map panel surface with the narrative box palette (either stop remapping--background/--cardfor the map panel, or drive the map surface from the same tokens the narrative box uses). Map render sites: desktop GameMap.tsx:776-786, mobile :1096-1110; mounted in GameSurface.tsx:11210-11230.2. Maps settings menu looks completely different from other agent menus
Every other agent renders through the shared
AgentSettingsCard/AgentSettingsToggleshell (ChatSettingsDrawer.tsx:10070-10121 —rounded-xl border bg-[var(--secondary)]/70 p-3, icon + title/description header, toggle rows). The Hierarchical Maps agent instead drops a raw<CapabilityElement view="settings">into a bare wrapper:bg-[var(--background)]/45)Because the header, toggles, spacing, and typography are all drawn by the vendored
client.js, it doesn't inherit the standard card look and reads as visually inconsistent. Fix direction: wrap the maps settingsCapabilityElementin the standardAgentSettingsCardshell (icon + title/description header, matching border/background/padding) so it lines up with the Illustrator and other agent cards.Related
Manual verification (for the implementer — leave unchecked)
@SpicyMarinara commented on GitHub (Jul 25, 2026):
I’m implementing this as part of the active open-issue sweep in #4077. No competing issue-linked branch or open PR was found before starting.