mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #2100] [MERGED] fix(otome-forge): always send existing summaries; a failed summary shows Retry on every screen (0.8.4) #2118
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#2118
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/2100
Author: @SpicyMarinara
Created: 11/4/2026
Status: ✅ Merged
Merged: 11/4/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/otome-memory-summaries-retry📝 Commits (8)
a6d0643fix(otome-forge): story prompts read the saved memory in every state; memory never waits for a context size72367abfix(otome-forge): a failed summary shows on every screen of the story, with Retry and the way to the Memory connection702cf11chore(otome-forge): release the memory fixes as 0.8.49fc091bfix(otome-forge): the memory banner's Change connection lands on the Memory connection and keeps unsaved pickse3d6c8bchore(otome-forge): keep the released 0.8.3 zip as staging has it5735812fix(otome-forge): a memory model too small for a summary says so, and the old gate's ready status no longer waits for setup5097217fix(otome-forge): a memory model too small says so in Otome's own words, not as the connection'se29ff67fix(otome-forge): a failed Retry request keeps to its own line, and Change connection reaches Memory once connections are listed📊 Changes
41 files changed (+2242 additions, -719 deletions)
View changed files
➕
artifacts/otome-forge-0.8.4.zip(+0 -0)📝
catalog/preview/catalog.json(+8 -8)📝
catalog/preview/notes.json(+6 -6)📝
catalog/preview/v2/catalog.json(+8 -8)📝
catalog/preview/v2/notes.json(+6 -6)📝
catalog/preview/v3/catalog.json(+8 -8)📝
catalog/preview/v3/notes.json(+6 -6)📝
packages/otome-forge/CHANGELOG.md(+6 -0)📝
packages/otome-forge/README.md(+1 -1)📝
packages/otome-forge/client.js(+79 -54)📝
packages/otome-forge/manifest.json(+5 -5)📝
packages/otome-forge/server.mjs(+139 -139)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/OtomeForgeView.tsx(+19 -6)➕
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/MemoryBanner.tsx(+163 -0)➕
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-memory.ts(+58 -0)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts(+4 -0)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-run.ts(+4 -1)➕
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/memory-notice.ts(+80 -0)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json(+8 -1)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/phone/StickerPicker.tsx(+3 -3)...and 21 more files
📄 Description
Pull request
Linked issue
Closes #2099
Why this change
The maintainer's rule for Otome Hearth's story memory: every story prompt carries the timeline (the summaries of all previous chapters, condensed once it grows past about 14k tokens), the previous chapter in full, and a chapter in full only while it has no summary yet. The code did something else whenever memory was not ready (a summary still being written, a failed one, or memory never set up): prompts dropped the timeline and every summary and sent earlier chapters word for word, newest first, up to 12,000 tokens.
Memory also waited forever on a model that reports no context size, so it never wrote a summary for it. The maintainer: "why would you need a context size for it, just send the request that is prompt + chapter to summarize", and "if the context size is too small, we will just throw an error and the user will switch a connection".
A failed summary sat silently in Settings → Debug. The maintainer: "If a summary fails, we need to show the user a button on any screen in Otome Hearth that they can press to fix the summary (re-try it). It can't be sitting there silently failed, hidden in settings."
What changed
message,noConnectionandunsummarized.errorwith reasoncontext-too-smalland Otome's own message: "…is too small to write a summary." or "…is too small to condense the story's timeline.", each followed by "Choose a connection with a larger context." The banner and Settings show it on its own, without "The connection said", and offer Retry and Change connection so the player can switch models.Package and security impact
otome-forge(0.8.3 → 0.8.4)GET /runs/:run/memory/statusandPOST .../memory/retrygain optionalmessage,noConnectionandunsummarizedfields (additive)Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks (for reference):
pnpm -s test:otome-forge: pass: 665/665 TypeScript and 13/13 .mjs regressionsMARINARA_ENGINE_ROOT=/Users/marysia/Developer/Marinara-Engine node scripts/typecheck-packages.mjs otome-forge: pass: no strict errors in 89 server/shared and 145 client filesMARINARA_ENGINE_ROOT=/Users/marysia/Developer/Marinara-Engine node scripts/build-feature-packages.mjs otome-forge: built 0.8.4; the HEAD sources rebuild HEAD's artifact exactly and the new sources rebuild the committed one exactly (cmp)MARINARA_ENGINE_ROOT=/Users/marysia/Developer/Marinara-Engine node scripts/run-package-browser-tests.mjs otome-forge tests/package-otome-forge*.e2e.ts: 390 passed (31.8 min), desktop and mobile ChromiumWithout-change proof: the reader banner tests and the memory-notice regression against the old sources, only the new CSS, and all new code but Setting: they fail at the header padding, the Memory focus, the kept pick, the banner after Save and memoryPollMs; after restoring, cmp showed all 20 files identical and every test passesnpm run -s check: Prettier clean; ESLint 0 errors, 815 warnings, none in changed filesnode scripts/validate-catalog.mjs (other packages' zips copied from HEAD for the run, then deleted): Catalog valid: 42 packages; preview overlay valid (otome-forge 0.8.4); lanes v2=42 v3=42node scripts/test-catalog-lanes.mjs; node scripts/validate-package-locales.mjs; node scripts/validate-package-locale-keys.mjs; node scripts/tests/cata: all passgit diff --stat origin/staging..HEAD -- artifacts/; cmp of the 0.8.3 zip against origin/staging: only otome-forge-0.8.4.zip is added; the 0.8.3 zip is identical to staging'sFinal commits
573581277and50972172a:pnpm -s test:otome-forge668/668 + 13/13; typecheck clean (89 server/shared, 145 client files);npm run -s check0 errors; the reader browser file 84 passed on desktop and mobile Chromium; each new test failed without its change; the rebuild reproduces the committed files and the 0.8.3 zip is identical to staging's.Commit
e29ff6751(Dottore repairs):pnpm -s test:otome-forge668/668 + 13/13; typecheck clean;npm run -s check0 errors; the reader browser file 88 passed on desktop and mobile Chromium; the 6 new browser tests fail against the previous sources, and the Retry test fails with the banner fix but the previous hook; the rebuild is reproducible and the 0.8.3 zip is identical to staging's.Review: two independent adversarial reviews (story context; banner and release). The banner/release review asked for changes (1 major: the branch had overwritten the released 0.8.3 zip; 5 minor), all fixed in
9fc091bd0ande3d6c8b55. The story-context review approved with minor notes, addressed in573581277(a memory model too small for even one summary now fails with a readable message instead of no reason; a status saved by the old context check clears; the headers say exactly what goes in full after a failure) and50972172a(Otome's own messages show without "The connection said", the condensing failure has its own wording). A review of573581277approved it. Dottore's repair request on50972172(the Retry error, plus the Memory reveal it listed as unexamined) was fixed ine29ff6751and then reviewed by two independent reviewers (memory-status state; reveal and rebuild), who found nothing. Two of Dottore's notes needed no change: the?? 0in the condensing message is required by the types (removing it fails typecheck), and the client's memory phases already match Debug's labels (typecheck enforces it).Known limits and risks:
resolveConnectionIdfalls back to the Story one), so the Story picker is the one to set.Documentation impact
UI evidence (if applicable)
A memory banner at the top of every screen of an open story when a summary failed (with the connection's error, Retry the summary and Change connection) or when no connection can write summaries (Change connection only).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.