mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1102] [Issue]: Long-Term Memory Memory Vault unsaved-changes dialog card spans the screen (undefined max-w-72) #563
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#563
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 @Promansis on GitHub (Sep 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1102
Originally assigned to: @Promansis on GitHub.
Summary
In the Long-Term Memory Memory Vault, editing a memory and then clicking Close opens the unsaved-changes confirmation dialog, but the dialog card stretches across (almost) the whole screen instead of appearing as a small centred box. The same card class is also used by the vault's Rename-details dialog.
Affected package
long-term-memory(client UI,MemoryVault.tsx).Expected behavior
The confirmation should render as a small centred card, like the equivalent Long-Term Memory shell dialog (
LongTermMemoryDetail.tsx) which already uses a bounded width.Actual behavior
The dialog overlay is full-viewport (
fixed inset-0 … w-full), and its card is:max-w-72is never emitted by the Engine's Tailwind build, so nomax-widthis applied and the card falls back tow-full.Root cause
packages/client/src/styles/capability-package-safelist.html(Enginepackages/client/src/styles/globals.css:2,@source "./capability-package-safelist.html"). Package bundles are injected at runtime and are not Tailwind sources.max-w-24,max-w-2xl,max-w-3xl,max-w-[16rem],max-w-[22rem],max-w-[calc(100vw-1.5rem)],max-w-[calc(100vw-2rem)],max-w-full,max-w-md,max-w-sm,max-w-xl,max-w-xs— but nomax-w-72..max-w-72rule, while.max-w-mdis present (.max-w-md{max-width:var(--container-md)}).LongTermMemoryDetail.tsx:594-652) usesmax-w-mdand renders correctly, while the vault's copy (MemoryVault.tsx:3196-3246) diverged tomax-w-72. Both were introduced in the same commit,bf5c7bf3 feat(long-term-memory): release 1.2.7 workstation integration (#354).Proposed change (align the two dialogs)
Replace
max-w-72with an already-safelisted width in the vault's two dialogs so it matches the existing working shell dialog:MemoryVault.tsx:3226(unsaved-navigation dialog) —max-w-72→max-w-md, matchingLongTermMemoryDetail.tsx:624.MemoryVault.tsx:3260(rename-details dialog) — same replacement (or a smaller safelisted width such asmax-w-xs).tests/long-term-memory-feedback-clarity-ui.regression.mjs:297(mari-editor-panel w-full max-w-72 space-y-3 p-3 shadow-xl) to the new class.Alternatively, extract a single shared unsaved-changes dialog from the shell's
navigationPromptand use it in both places, removing the duplication; the class alignment above is the minimal fix.Steps to reproduce
Environment
builtAgainstis 2.4.1)Logs, screenshots, or video
Screenshot pending. Reported control:
#…-workbench > section > div > header > div.flex.gap-2 > button:nth-child(3)(the editor Close button).Additional context
Confirmed by static analysis of the package source and the local Engine checkout/build (Engine
41d5d12cd; compiledpackages/client/dist/assets/index-BliRoYmI.css), not by a browser render. No test currently checks that capability-package classes exist in the Engine safelist, so the source-string regression passes while the UI is broken.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: