mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6205] [MERGED] fix: address assigned tracker, Game lorebook and Gemini issues #7089
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7089
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-Engine/pull/6205
Author: @SpicyMarinara
Created: 9/14/2026
Status: ✅ Merged
Merged: 9/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/assigned-sweep-6202-6204📝 Commits (4)
bc45c46docs: track assigned issue sweep0d9262cfix: preserve tracker NPCs, Game lore placement and Gemini recovery33984bbMerge remote-tracking branch 'origin/staging' into fix/assigned-sweep-6202-620431d1305test(ui): retain tracker page for failure artifacts📊 Changes
9 files changed (+485 additions, -28 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
e2e/core-flows.e2e.ts(+99 -0)📝
packages/client/src/features/tracker-panel/hooks/use-stat-icons.ts(+4 -2)📝
packages/client/src/features/tracker-panel/hooks/use-tracker-sprite-lookup.ts(+4 -4)📝
packages/server/src/routes/generate.routes.ts(+11 -8)📝
packages/server/src/services/llm/providers/google.provider.ts(+27 -11)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+19 -2)➕
scripts/regressions/game-lorebook-placement.regression.ts(+146 -0)📝
scripts/regressions/mari-completion-frames.regression.ts(+171 -1)📄 Description
Linked issue
Closes #6202
Closes #6203
Closes #6204
Why this change
Roleplay trackers can crash when a named NPC has no character-card ID. Game places both before/after lorebook entries after the Game Master context. Professor Mari can stop on an empty Gemini
MALFORMED_FUNCTION_CALLresponse before her existing protocol repair loop can run.This sweep covers the three open issues assigned to SpicyMarinara.
What changed
CHANGELOG.mdunder Unreleased. No dependency, version, translation or documentation changes.Validation
Tracker regression reproduces the original
undefined.trimcrash before the fix. After the fix, desktop Chromium/light and mobile Chromium/dark pass, including reopen/reload, malformed IDs, avatar fallback, and exact stored-data preservation.game-lorebook-placement.regression.ts: fails before the placement fix and passes afterward. Captures the final provider request through the real generation route for manual, Game-owned and Keeper-owned books, normal generation/regeneration, before/after placement, depths 0/1/2, role selection and duplicate suppression. Existing strict role formatting still folds mid-history system content into the prior user turn; disabling it preserves the authored role.mari-completion-frames.regression.ts: reproduces the reported provider error before the fix and passes afterward. Covers Google/Vertex, streaming/buffered responses, successful recovery, retry exhaustion, cancellation, unrelated safety errors, visible output, billed usage and no replay of completed mutations.Existing provider compatibility regression and server typecheck pass. Google/Vertex responses are mocked at the HTTP/SSE boundary; no paid/live model calls were made.
pnpm checkpasses (localization, formatting, lint/types and production build).pnpm regression:promptpasses all three prompt/attachment/context-fit suites.pnpm checkpasses locallyContainer (Docker / Podman) built and ran without issue
Ran the app, clicked through the changes manually
Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
Above manual verification completed (describe below)
Read and followed
CONTRIBUTING.mdManual verification notes
Manually verify the reporter's existing Roleplay chat in Firefox, inspect Game prompt placement with a real preset/provider, and use Professor Mari through the reported live Vertex model. No user data was used in the regression fixtures.
Local mobile WebKit proof is blocked by a native WebContent crash while resolving gradient color stops. An otherwise identical all-valid-ID control crashes too, separating this from the original JavaScript exception. The retained browser regression also runs on the hosted WebKit lane. Physical iPhone verification remains manual.
UI evidence
Synthetic tracker before/after screenshots (self-contained HTML; download and open to view the embedded images).
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.