mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1842] [Feature]: Noodle: let timeline posts use Long-Term Memory's recall, off by default, with a choice of whole memories or relevant parts #1782
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#1782
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 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1842
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Noodle writes timeline posts for characters but knows nothing about what happened in their chats beyond the opted-in chat context and older Noodle posts. Long-Term Memory keeps exactly that, ongoing threads, past events, relationships, and shares it with other Agents through
long-term-memory:recall(since LTM 1.4.84). Noodle has no way to use it.Tracker: SN-2.
Proposed package or change
An off-by-default "Use memories from Long-Term Memory" setting with a first-time confirmation and a status line. When on, each timeline refresh asks recall for the selected characters' memories and adds them to the prompt as their own block.
noodleonly, minor bump with a CHANGELOG entry. Nothing changes in the Engine or Long-Term Memory (whole mode isissues/ltm-recall-whole-memories.md; without it LTM answers ranked).Wording approved by the maintainer (joint note, question 1, 2026-10-29).
Minimal fix
N =
packages/noodle/src/engine/packages, SRV =N/server/src/services/noodle, CLI =N/client/src/components/noodle.SRV/noodle-ltm-recall.ts, called once per refresh inbuildRefreshPrompt(~290).characterIds=selectedCharacterIds(first 20);personaId=personaAccount.entityIdwhen the persona account takes part.queryText= the recent timeline post texts the prompt already gathers, joined and cut to 8,000 characters, or the selected characters' names when the timeline is empty. The older-post sample (sampleNoodlePastMemoriesWeighted) stays as it is: it recalls Noodle posts, not chat memories.GET /api/noodle/memory-statusinN/server/src/routes/noodle.routes.tsreturns it.useLtmMemories: false,ltmMemoriesConfirmed: falseandltmMemoryRecall: "whole"inDEFAULT_SETTINGS(N/server/src/services/storage/noodle.storage.ts:32), which also lists them inPUBLIC_SETTING_KEYS; coerce both booleans withbool()inupdateSettingsand keepltmMemoryRecallto the two values. Add all three toPackageNoodleSettings(the package-side type besideNoodleSettings) and toCLI/noodle-settings-defaults.ts. No Engine schema change.CLI/NoodleHome.tsx, Advanced section ~4198-4235, with the existingToggleSetting):showConfirmDialogwhen it is turned on and has never been confirmed (remember it in the settingltmMemoriesConfirmed); Not now leaves it off. Title Let posts use your memories? Body Noodle will read what Long-Term Memory remembers about the character behind each account. Memories limited to one chat or group stay out. When your own persona's account posts, things Long-Term Memory knows about your persona can appear in its posts too. You can turn this off here, or in Long-Term Memory → Memory Settings → Sharing. Buttons Use memories / Not now.node scripts/validate-package-locales.mjs.packages/noodle/CHANGELOG.md, new minor version): the setting, off by default, with its confirmation; whole memories by default or only the parts that fit; the status line.${memories}and per-type Prompt Override variables on the Noodle Timeline Prompt: they need a declaration line in the Engine'sprompt-overrides/registry/noodle.ts. The block goes in the built prompt, not the editable base prompt, for now.Regression proof
New
tests/noodle-ltm-recall.regression.ts, with a fake recall service in the capability registry:caller: "noodle", the selected character ids, the persona id only when the persona account takes part,whole: trueby default andfalsewith"relevant"; the sections appear under "# What Long-Term Memory remembers" before "# Recent Noodle Timeline";nulland a throw give statusesmissing,offanderror, no block, and the refresh still builds;updateSettingskeeps the three new keys, coerces the booleans and rejects a third recall value.Extend
tests/noodle-settings-structure.regression.*for the new keys if it lists settings. Mutations that must fail: the block rendered with the setting off, andpersonaIdsent without the persona account.Why should this be optional?
Memories come from the user's private chats, so Noodle reads them only after the user turns the setting on and confirms. It does nothing without Long-Term Memory, and Long-Term Memory's "Other Agents can read memories" switch and Sharing table give the user the stop and the record on the other side.
Alternatives considered
Additional context
Follows #1567 and #1805. Pairs with
issues/ltm-recall-whole-memories.mdandissues/slurp-ltm-recall.md; no file overlap.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
Local trace
8c1a195ec(Noodle 1.5.10). Prompt headings atnoodle-public-prompt.service.ts505-536;server-entry.tsactivategets no service lookup, hence the registry import.capability-service-registryis not in the noodle list ofscripts/server-engine-modules-baseline.json; the Noodle build runs the server host gates, which confirm it is host-provided for Noodle too.maxTokens1200 for a refresh across several characters; the status is empty until the first refresh after a restart.