mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1375] [Issue]: Long-Term Memory shows glued-together sentences and raw server errors #704
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#704
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 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1375
Originally assigned to: @Promansis on GitHub.
Summary
Some Long-Term Memory messages are built from sentence fragments, so users see missing spaces and punctuation, and translators can't reorder them. Separately, the shared request helper always throws an
Error, so the localized fallback messages almost never show and users see raw server text such as "Not Found".Affected package
long-term-memory1.4.31:ReviewQueue.tsx,ActivityView.tsx,api.ts,source-task.ts,MemoryVault.tsx,MemorySettings.tsxandlocales/en.jsonunderpackages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/.Expected behavior
Actual behavior
ReviewQueue.tsx:2929-2956fromen.jsonfragments::759("value1_5cb90a9": "{{value1}}", used atReviewQueue.tsx:2972),:1202(batchResultSummary),:1222("; {{count}} blocked before Apply") and:1247("; {{count}} other {{mutation}} pending"). At 1.4.9 the browser harness showed "Proposals discarded 0 mutations; 1 failedDraft discard failed: …". This code is unchanged." · "atActivityView.tsx:283,:934,:953,:1184,:1237,:1358,:1366,:1697,:1886, and", "at:917."chunk"at:934is a hard-coded English word.request()throwspayload.error, or elseresponse.statusText(api.ts:141,:159). The 35error instanceof Error ? error.message : <localized>sites across 9 files therefore never reach their localized fallback. At 1.4.9 the Sources inspector showed a raw "Not Found". English text is also thrown directly atapi.ts:173,source-task.ts:268,MemoryVault.tsx:2404and:2593.Steps to reproduce
Environment
staging)upstream/staging39a5c5cfb; LTM files unchanged sincecdb583a95)Logs, screenshots, or video
The glued Review summary and the raw "Not Found" were captured by the browser harness at 1.4.9; the code behind both is unchanged at 1.4.31.
Minimal fix
:759,:1222,:1247and the pieces joined atReviewQueue.tsx:2929-2956) with one whole-sentence key per outcome that takes all counts as placeholders. Delete the{{value1}}passthrough key."chunk".request(), mark errors that carry only the HTTP status (nopayload.error), for example with astatusfield and no server message. AdderrorMessage(error, fallback)toapi.tsthat returns the server message when there is one and the localized fallback otherwise. Replace the 35 inline sites and the private copy atMemorySettings.tsx:94with it. Move the 4 thrown English strings into locale keys.Proof: the browser test asserts the batch summary and one Activity metadata line; a small Engine-free test covers
errorMessage; a 404 in the browser fixture shows localized text.Additional context
The locale file also has 34 values that start or end with a separator and 53 keys with an opaque
value1placeholder. This issue covers only the two visible cases above.Fixing whole sentences is also the groundwork a future Korean UI needs, since Korean can't reorder glued fragments.
After #1374.
Template check