mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1509] [MERGED] fix(long-term-memory): keep the error in warnings logged error first (1.4.58) #1519
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#1519
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1509
Author: @Promansis
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/warning-log-cause📝 Commits (2)
5f087f3fix(long-term-memory): keep the error in warnings logged error first5d07da6chore(long-term-memory): release 1.4.58 (#1508)📊 Changes
14 files changed (+74 additions, -57 deletions)
View changed files
➕
artifacts/long-term-memory-1.4.58.zip(+0 -0)📝
catalog/catalog.json(+6 -6)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+6 -6)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+6 -6)📝
catalog/v3/notes.json(+6 -6)📝
packages/long-term-memory/CHANGELOG.md(+4 -0)📝
packages/long-term-memory/manifest.json(+3 -3)📝
packages/long-term-memory/server.mjs(+1 -1)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/package-runtime.ts(+8 -9)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-runtime.regression.ts(+20 -3)📝
tests/long-term-memory-storage.regression.ts(+1 -4)📄 Description
Pull request
Linked issue
Closes #1508
Why this change
logger.warn(error, "message"). The Engine's package host logger takes the message first, so the package runtime passed the error as an extra argument after the message, and pino, the Engine's logger, drops an argument the message has no placeholder for. Every such warning reached the server log without its cause, for example a failed recall index rebuild after an edit or a scope-link change. Warnings with an id placeholder (… for chat %s) printed the error's message where the id belonged and lost the id.What changed
long-term-memory: for a warning logged with its error first, the package runtime writes the cause (the error's stack, or the value as text) into the message:message: cause. Warnings logged message first,logger.errorand the host contract are unchanged.tests/long-term-memory-runtime.regression.ts: a host logger that keeps only the message, as pino does, must still see the cause. It also checks that the message's own arguments still reach the host unchanged (warn(error, "message %s", id)passesidthrough).tests/long-term-memory-storage.regression.tsnow checks the retention warning in the new form. Rebuiltpackages/long-term-memorybundles, artifact and catalog entry.long-term-memory1.4.58, with the CHANGELOG entry, version, manifest, rebuiltserver.mjs, artifact and catalog entries.Package and security impact
long-term-memoryValidation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
staging(the recorded message ismessage, without the cause) and passes with the fix; the updated storage check also fails onstaging. Fed through the Engine's own pino with the Engine host's mapping,warn(error, "… failed")now logs… failed: Error: …with the stack, andwarn(error, "… draft %s", id)logs the id and the cause instead of the error in place of the id.Documentation impact
🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
New Releases
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.