mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2030] [Issue]: Memory Recall rebuild ignores legacy hiddenFromAI flag #993
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#993
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 @Xelvanis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2030
Originally assigned to: @cha1latte on GitHub.
Summary
Memory Recall refresh filters hidden messages through
is_hidden_from_ai, but the Rust helper only checksextra.hiddenFromAi. Legacy/imported messages and some persisted swipe extras use the canonicalhiddenFromAIkey, so refresh can include hidden content in generated memory chunks.Expected behavior
Memory Recall refresh should skip messages where either
extra.hiddenFromAI === trueorextra.hiddenFromAi === true, matching current prompt assembly and UI reads.Actual behavior
src-tauri/src/commands/storage/chats.rs:260-272only readshiddenFromAi.refresh_chat_memoriesuses that helper atsrc-tauri/src/commands/storage/chats.rs:711-713, so a message carrying onlyhiddenFromAIis treated as visible.Steps to reproduce
extra: {"hiddenFromAI": true}and nohiddenFromAialias.chat_memories_refresh/refresh_chat_memories.Impact area
Environment
f56efb20Logs, screenshots, or video
Code evidence:
hiddenFromAI:origin/main:packages/client/src/components/chat/ChatArea.tsx:1064.hiddenFromAI:origin/main:packages/server/src/routes/generate/generate-route-utils.ts:127-128.hiddenFromAIto message and swipe extras:origin/main:packages/server/src/routes/chats.routes.ts:1121-1126,origin/main:packages/server/src/services/storage/chats.storage.ts:667-693.src/engine/generation/runtime-records.ts:74-76.hiddenFromAi:src-tauri/src/commands/storage/chats.rs:260-272; refresh uses it atsrc-tauri/src/commands/storage/chats.rs:711-713.Focused proof run:
cargo test --manifest-path src-tauri/Cargo.toml chat_memor-> 0 matched, so no focused test currently catches this path.Regression notes
Legacy v1.6.1 used
hiddenFromAIas the prompt-context exclusion flag. The refactor UI and generation helpers already treat both alias spellings as hidden, but the Rust Memory Recall refresh path does not.Additional context
Found during Target 2 storage parityscan batch 3, chat/message storage. This is separate from #1923 sidecar storage shape; #1923 is covered on the current branch but not merged yet.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: