[PR #1385] [MERGED] fix(long-term-memory): 1.4.36 — whole-sentence Review summary and localized request errors (#1375) #1430

Closed
opened 2026-10-21 05:11:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/1375-glued-text-raw-errors


📝 Commits (4)

  • e420657 fix(long-term-memory): 1.4.36 — whole-sentence Review summary, locale separators, localized request errors (#1375)
  • 6e6865a Merge upstream/staging into fix(long-term-memory)/1375-glued-text-raw-errors; release long-term-memory 1.4.36
  • f607cf3 fix(long-term-memory): export failures show the localized message, not the HTTP status line (#1375)
  • 645ad41 Merge branch 'staging' into fix(long-term-memory)/1375-glued-text-raw-errors

📊 Changes

24 files changed (+347 additions, -290 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.36.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/client.js (+30 -30)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx (+35 -26)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ChatSettings.tsx (+2 -6)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx (+4 -10)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx (+10 -7)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx (+10 -24)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ReviewQueue.tsx (+90 -82)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (+26 -35)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SubjectIdentityReview.tsx (+2 -2)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/api.ts (+34 -16)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+14 -9)

...and 4 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1375

Why this change

  • The Review batch summary was assembled from locale fragments (; N blocked before Apply, a {{value1}} passthrough), so sentences ran together and a translator could not reorder them.
  • request() always threw payload.error or else the HTTP status text, so the 30+ error instanceof Error ? error.message : <localized> sites never reached their localized fallback and users saw raw text such as "Not Found".
  • Debug metadata separators and the word "chunk" were hard-coded English.

What changed

  • long-term-memory 1.4.36 (staging is 1.4.34; the version was chosen for this issue). Source under packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/.
  • api.ts: request() and requestHost() mark errors that carry only an HTTP status; new errorMessage(error, fallback) returns the server's message when there is one and the localized fallback otherwise. Client-raised English errors in api.ts and source-task.ts use the same marker.
  • 32 inline error ternaries across 7 screens, plus the private copy in MemorySettings.tsx, now call errorMessage. Two task.error?.message ?? became || in SourcesWorkspace.tsx because a status-only failure now yields an empty message.
  • ReviewQueue.tsx: batchResultSentences() builds whole sentences with singular/plural keys; the fragment keys and value1_5cb90a9 are removed from locales/en.json.
  • ActivityView.tsx: metaSeparator, listSeparator and sectionKeyFallback locale keys replace the hard-coded " · ", ", " and "chunk".
  • Two throw new Error("…") in MemoryVault.tsx that a blanket catch {} already swallows became throw new Error() instead of dead locale keys.
  • Regression: a status-only 404 and a {error} body in tests/long-term-memory-source-pagination.regression.ts; one in-flow assertion for the Review summary in tests/long-term-memory-browser.regression.ts.
  • Generated outputs rebuilt: packages/long-term-memory/client.js, manifest.json, artifacts/long-term-memory-1.4.36.zip, catalog/**.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none (engine.min/maxExclusive unchanged)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none; client text only. No storage, route or server change.

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

  • Author-run local checks on the merge commit (staging 12ed1701e merged in), none of them a substitute for the boxes above: npm run check (0 errors), validate-catalog, test-catalog-lanes, validate-package-locales, catalog-release-notes, git diff --check upstream/staging...HEAD, the six Engine-free LTM regressions from pull-request-checks.yml plus feedback-clarity-ui, host-styles and source-paths, and the LTM browser regression against a local Engine checkout.
  • The new errorMessage case fails with 'Not Found' when the status-only marker is removed from request().
  • Not run: installing the package through a running Marinara Engine, and the full test-ltm.sh all lane.

Documentation impact

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

UI evidence (if applicable)

None attached. Review summary example (English), after Apply with one failed draft: "Applied 1 mutation; 1 failed. 1 blocked before Apply. Draft action failed: …"

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Review summaries now use improved sentence spacing and punctuation, with batch results presented in clearer, localized sentences.
    • When a request fails without a server-provided message, a localized fallback is shown. Server-provided error messages continue to appear.
  • Improvements
    • Debug details and activity metadata now use locale-specific separators and labels, including a localized fallback label for recall candidates.
    • Long-Term Memory is updated to version 1.4.36. Recall, extraction, and storage behavior is unchanged.

🔄 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/1385 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/1375-glued-text-raw-errors` --- ### 📝 Commits (4) - [`e420657`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e420657a31e212645c76c86799be0fc585c3df7e) fix(long-term-memory): 1.4.36 — whole-sentence Review summary, locale separators, localized request errors (#1375) - [`6e6865a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6e6865aa158f3dfc8a51494b184851d9f506773e) Merge upstream/staging into fix(long-term-memory)/1375-glued-text-raw-errors; release long-term-memory 1.4.36 - [`f607cf3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f607cf3a2a2f7fcbd635dbb2dd9c7df500b7cba4) fix(long-term-memory): export failures show the localized message, not the HTTP status line (#1375) - [`645ad41`](https://github.com/Pasta-Devs/Marinara-Agents/commit/645ad41a5a12ebd2b0438d48b2ae77351f9a5e87) Merge branch 'staging' into fix(long-term-memory)/1375-glued-text-raw-errors ### 📊 Changes **24 files changed** (+347 additions, -290 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.36.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/client.js` (+30 -30) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx` (+35 -26) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ChatSettings.tsx` (+2 -6) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx` (+4 -10) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx` (+10 -7) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx` (+10 -24) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ReviewQueue.tsx` (+90 -82) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (+26 -35) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SubjectIdentityReview.tsx` (+2 -2) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/api.ts` (+34 -16) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+14 -9) _...and 4 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- Open as a draft while implementation is in progress. Mark Ready for review only after validation and self-review. --> ## Linked issue Closes #1375 ## Why this change - The Review batch summary was assembled from locale fragments (`; N blocked before Apply`, a `{{value1}}` passthrough), so sentences ran together and a translator could not reorder them. - `request()` always threw `payload.error` or else the HTTP status text, so the 30+ `error instanceof Error ? error.message : <localized>` sites never reached their localized fallback and users saw raw text such as "Not Found". - Debug metadata separators and the word "chunk" were hard-coded English. ## What changed - `long-term-memory` 1.4.36 (staging is 1.4.34; the version was chosen for this issue). Source under `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/`. - `api.ts`: `request()` and `requestHost()` mark errors that carry only an HTTP status; new `errorMessage(error, fallback)` returns the server's message when there is one and the localized fallback otherwise. Client-raised English errors in `api.ts` and `source-task.ts` use the same marker. - 32 inline error ternaries across 7 screens, plus the private copy in `MemorySettings.tsx`, now call `errorMessage`. Two `task.error?.message ??` became `||` in `SourcesWorkspace.tsx` because a status-only failure now yields an empty message. - `ReviewQueue.tsx`: `batchResultSentences()` builds whole sentences with singular/plural keys; the fragment keys and `value1_5cb90a9` are removed from `locales/en.json`. - `ActivityView.tsx`: `metaSeparator`, `listSeparator` and `sectionKeyFallback` locale keys replace the hard-coded `" · "`, `", "` and `"chunk"`. - Two `throw new Error("…")` in `MemoryVault.tsx` that a blanket `catch {}` already swallows became `throw new Error()` instead of dead locale keys. - Regression: a status-only 404 and a `{error}` body in `tests/long-term-memory-source-pagination.regression.ts`; one in-flow assertion for the Review summary in `tests/long-term-memory-browser.regression.ts`. - Generated outputs rebuilt: `packages/long-term-memory/client.js`, `manifest.json`, `artifacts/long-term-memory-1.4.36.zip`, `catalog/**`. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none (`engine.min`/`maxExclusive` unchanged) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none; client text only. No storage, route or server change. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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 - Author-run local checks on the merge commit (staging 12ed1701e merged in), none of them a substitute for the boxes above: `npm run check` (0 errors), `validate-catalog`, `test-catalog-lanes`, `validate-package-locales`, `catalog-release-notes`, `git diff --check upstream/staging...HEAD`, the six Engine-free LTM regressions from `pull-request-checks.yml` plus `feedback-clarity-ui`, `host-styles` and `source-paths`, and the LTM browser regression against a local Engine checkout. - The new `errorMessage` case fails with `'Not Found'` when the status-only marker is removed from `request()`. - Not run: installing the package through a running Marinara Engine, and the full `test-ltm.sh all` lane. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) None attached. Review summary example (English), after Apply with one failed draft: "Applied 1 mutation; 1 failed. 1 blocked before Apply. Draft action failed: …" 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Review summaries now use improved sentence spacing and punctuation, with batch results presented in clearer, localized sentences. * When a request fails without a server-provided message, a localized fallback is shown. Server-provided error messages continue to appear. * **Improvements** * Debug details and activity metadata now use locale-specific separators and labels, including a localized fallback label for recall candidates. * Long-Term Memory is updated to version 1.4.36. Recall, extraction, and storage behavior is unchanged. <!-- 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-21 05:11:22 +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#1430
No description provided.