[PR #1509] [MERGED] fix(long-term-memory): keep the error in warnings logged error first (1.4.58) #1519

Closed
opened 2026-10-22 04:03:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 5f087f3 fix(long-term-memory): keep the error in warnings logged error first
  • 5d07da6 chore(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

  • Long-Term Memory logs most warnings pino style, 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.error and the host contract are unchanged.
  • Regression in 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) passes id through). tests/long-term-memory-storage.regression.ts now checks the retention warning in the new form. Rebuilt packages/long-term-memory bundles, artifact and catalog entry.
  • Release: long-term-memory 1.4.58, with the CHANGELOG entry, version, manifest, rebuilt server.mjs, artifact and catalog entries.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none (works with every Engine in the manifest's range; no Engine change)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none. Warning lines in the server log now carry the error's message and stack.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • The new runtime check fails on staging (the recorded message is message, without the cause) and passes with the fix; the updated storage check also fails on staging. Fed through the Engine's own pino with the Engine host's mapping, warn(error, "… failed") now logs … failed: Error: … with the stack, and warn(error, "… draft %s", id) logs the id and the cause instead of the error in place of the id.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes

    • Server warnings now include the underlying error details.
    • Warnings for chats, drafts, and files retain the correct name instead of displaying the error message.
    • Warning formatting now preserves additional message arguments consistently.
  • New Releases

    • Long-Term Memory updated to version 1.4.58 across supported package catalogs.
  • Documentation

    • Added release notes describing the warning and naming fixes.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/1509 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/20/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/warning-log-cause` --- ### 📝 Commits (2) - [`5f087f3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5f087f329a3ff5470ee6cc1d61cef9327a8e5a26) fix(long-term-memory): keep the error in warnings logged error first - [`5d07da6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5d07da6180aa12f64cc66f1e58c38685c29c31d7) chore(long-term-memory): release 1.4.58 (#1508) ### 📊 Changes **14 files changed** (+74 additions, -57 deletions) <details> <summary>View changed files</summary> ➕ `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) </details> ### 📄 Description # Pull request ## Linked issue Closes #1508 ## Why this change - Long-Term Memory logs most warnings pino style, `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.error` and the host contract are unchanged. - Regression in `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)` passes `id` through). `tests/long-term-memory-storage.regression.ts` now checks the retention warning in the new form. Rebuilt `packages/long-term-memory` bundles, artifact and catalog entry. - **Release:** `long-term-memory` 1.4.58, with the CHANGELOG entry, version, manifest, rebuilt `server.mjs`, artifact and catalog entries. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none (works with every Engine in the manifest's range; no Engine change) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none. Warning lines in the server log now carry the error's message and stack. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - The new runtime check fails on `staging` (the recorded message is `message`, without the cause) and passes with the fix; the updated storage check also fails on `staging`. Fed through the Engine's own pino with the Engine host's mapping, `warn(error, "… failed")` now logs `… failed: Error: …` with the stack, and `warn(error, "… draft %s", id)` logs the id and the cause instead of the error in place of the id. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Server warnings now include the underlying error details. * Warnings for chats, drafts, and files retain the correct name instead of displaying the error message. * Warning formatting now preserves additional message arguments consistently. * **New Releases** * Long-Term Memory updated to version 1.4.58 across supported package catalogs. * **Documentation** * Added release notes describing the warning and naming fixes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:03:03 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1519
No description provided.