[PR #1545] [MERGED] fix(long-term-memory): stop showing raw rebuild error text in the integrity check and status (#1541) #1538

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1545
Author: @Promansis
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @Promansis

Base: staging ← Head: fix(long-term-memory)/rebuild-error-text


📝 Commits (2)

  • c900d84 fix(long-term-memory): stop showing raw rebuild error text in the integrity check and status (#1541)
  • c870a08 Merge upstream/staging into fix(long-term-memory)/rebuild-error-text; release long-term-memory 1.4.74

📊 Changes

14 files changed (+89 additions, -64 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.74.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 (+22 -22)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/persistence/index-state.ts (+6 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/recall/rebuild.ts (+2 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-routes.regression.ts (+15 -0)

📄 Description

Pull request

Linked issue

Closes #1541

Why this change

  • When a recall index rebuild fails, Long-Term Memory stores the raw error message in its index state, and GET /integrity and GET /status return it. Maintenance prints the integrity message as is, so it can show the vault's absolute path, for example "EISDIR: illegal operation on a directory, rename '/…/long-term-memory/indexes/recall.json.tmp-…' -> '/…/long-term-memory/indexes/recall.json'". Since the debounced background rebuild, this is also where a failed rebuild after Accept ends up: the accept answers pending and the draft stores no error.
  • The rest of the package already keeps an unexpected failure's text in the server log and sends fixed text (routeError, rebuildAfterMutation); the index state was the remaining gap. One path, the index refresh after an embedding-connection change, did not log its failed rebuild at all.

What changed

  • long-term-memory: a failed rebuild stores "The latest index rebuild failed; see the server log." in the index state; a cancelled one keeps its own message. The thrown error is unchanged, so the server log still has the cause. The index refresh after a connection change now logs a failed rebuild instead of swallowing it.
  • Regression in tests/long-term-memory-routes.regression.ts: in the existing failed settings rebuild (recall.json replaced by a folder), /status indexes.warnings and the /integrity index_rebuild_failed message are the fixed text.
  • Release: long-term-memory 1.4.74 on staging 93dc35a3d, 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
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: a failed rebuild's stored index-state error is now fixed text; an error stored by an earlier version stays until the next rebuild. No migration.

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 routes checks fail without the fix on staging bcaebd07d (checked: routes regression exits 1 at :1057 with the test alone): indexes.warnings and the integrity message are the EISDIR … rename text with the vault's absolute paths. With the fix they pass.
  • On the fix commit (base bcaebd07d): typecheck, npm run check, the package build, every Long-Term Memory regression suite and the catalog checks pass. On the release head: the package rebuild leaves the tree clean, the catalog, locale and release-notes checks and the typecheck pass, and the routes suite passes. Hosted CI runs the full suite list on this head.

Documentation impact

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

🤖 Generated with Claude Code


🔄 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/1545 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/rebuild-error-text` --- ### 📝 Commits (2) - [`c900d84`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c900d8448febf5a3e2aa6adbdc72835109970277) fix(long-term-memory): stop showing raw rebuild error text in the integrity check and status (#1541) - [`c870a08`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c870a080e07d3a8115c04fe1cbb5a0b4b22c318e) Merge upstream/staging into fix(long-term-memory)/rebuild-error-text; release long-term-memory 1.4.74 ### 📊 Changes **14 files changed** (+89 additions, -64 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.74.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` (+22 -22) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/persistence/index-state.ts` (+6 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/recall/rebuild.ts` (+2 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-routes.regression.ts` (+15 -0) </details> ### 📄 Description # Pull request ## Linked issue Closes #1541 ## Why this change - When a recall index rebuild fails, Long-Term Memory stores the raw error message in its index state, and `GET /integrity` and `GET /status` return it. Maintenance prints the integrity message as is, so it can show the vault's absolute path, for example "EISDIR: illegal operation on a directory, rename '/…/long-term-memory/indexes/recall.json.tmp-…' -> '/…/long-term-memory/indexes/recall.json'". Since the debounced background rebuild, this is also where a failed rebuild after Accept ends up: the accept answers `pending` and the draft stores no error. - The rest of the package already keeps an unexpected failure's text in the server log and sends fixed text (`routeError`, `rebuildAfterMutation`); the index state was the remaining gap. One path, the index refresh after an embedding-connection change, did not log its failed rebuild at all. ## What changed - `long-term-memory`: a failed rebuild stores "The latest index rebuild failed; see the server log." in the index state; a cancelled one keeps its own message. The thrown error is unchanged, so the server log still has the cause. The index refresh after a connection change now logs a failed rebuild instead of swallowing it. - Regression in `tests/long-term-memory-routes.regression.ts`: in the existing failed settings rebuild (`recall.json` replaced by a folder), `/status` `indexes.warnings` and the `/integrity` `index_rebuild_failed` message are the fixed text. - **Release:** `long-term-memory` 1.4.74 on staging 93dc35a3d, 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 - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: a failed rebuild's stored index-state error is now fixed text; an error stored by an earlier version stays until the next rebuild. No migration. ## 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 routes checks fail without the fix on `staging` bcaebd07d (checked: routes regression exits 1 at :1057 with the test alone): `indexes.warnings` and the integrity message are the `EISDIR … rename` text with the vault's absolute paths. With the fix they pass. - On the fix commit (base bcaebd07d): typecheck, `npm run check`, the package build, every Long-Term Memory regression suite and the catalog checks pass. On the release head: the package rebuild leaves the tree clean, the catalog, locale and release-notes checks and the typecheck pass, and the routes suite passes. Hosted CI runs the full suite list on this head. ## 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) --- <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:14 +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#1538
No description provided.