mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1638] [Issue]: Archive Undo banner caption shares the notice slot #1615
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#1615
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 (Oct 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1638
Originally assigned to: @Promansis on GitHub.
Summary
In the Memory Vault, the notice slot doubles as the caption of the archive Undo banner. A later notice therefore replaces the text that tells you what Undo reverses, and a save while Undo is showing reads "Memory saved." beside an Undo that no longer names its batch.
Affected package
long-term-memory (1.4.89)
Expected behavior
The archive banner keeps its own caption ("2 memories archived.") for as long as Undo is offered. Notices from other actions use the notice slot without touching that caption, and a save no longer needs to leave the standing notice uncleared while Undo is showing.
Actual behavior
setNoticeis the only text slot. After an archive it holds "N memories archived." and is the Undo's caption. Saving a memory while Undo is still offered replaces it with "Memory saved." and the save skips its usualsetNotice("")(if (!archiveUndo) setNotice("")) to avoid dropping the caption, so a second identical save does not re-announce.Steps to reproduce
Environment
Logs, screenshots, or video
Not applicable. Raised as a declined LOW Dottore finding on PR #1637 (thread 4366229437), pre-existing on staging.
Additional context
Follow-up to #1636 / PR #1637. Fix: keep the Undo caption in
ArchiveUndoStateand render it separately from the notice slot.Minimal fix
All in
packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryVault.tsxunless noted.ArchiveUndoStategainscaption: string. The archive handler (archiveCompletedblock, ~2096-2127) stores the archive message there when it offers Undo and leaves the notice empty (setNotice(undoOffered ? "" : message)); with no Undo (archiveUndoNotes.length !== ids.length) the message stays the notice.data-ltm-archive-undo-caption) beside Undo, and the notice only when it is set.if (!archiveUndo) setNotice("")becomessetNotice(""), and its comment is reworded.undoArchive's result notices ("N memories restored.").Tests: update the static assertion at
tests/long-term-memory-feedback-clarity-ui.regression.mjs~931-940 to the unconditional clear; extend the existing Archive Undo case intests/long-term-memory-browser.regression.ts(~6173) to assert the caption element reads "2 memories archived" with no notice, and that it is gone once Undo succeeds.Non-goals: Undo behaviour, rollback, batch requests, other notices, locale text.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: