[PR #1700] [MERGED] feat(gacha-forge): add daily messages and improve mobile help and Formation setup #1702

Closed
opened 2026-10-27 06:05:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1700
Author: @SpicyMarinara
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/gacha-proactive-unit-messages


📝 Commits (8)

  • d91caa9 docs(gacha-forge): describe mobile help overlay behavior
  • 3a94e40 feat(gacha-forge): add daily unit messages and floating Writing help
  • 73f0bf8 fix(gacha-forge): retain saved message counts and help toggles
  • 395c2d8 fix(gacha-forge): preserve WebKit history anchoring on incoming messages
  • 2525a57 fix(gacha-forge): reserve Formation output and restore readable setup hints
  • 091ffe3 fix(gacha-forge): preserve message pacing and enforce output minimums
  • a3408e2 fix(gacha-forge): explain insufficient generation capacity
  • ed9fd68 Merge staging into Gacha Forge output and messaging fixes

📊 Changes

41 files changed (+4387 additions, -164 deletions)

View changed files

📝 .github/workflows/gacha-forge-browser.yml (+3 -1)
📝 .github/workflows/pull-request-checks.yml (+6 -0)
➕ artifacts/gacha-forge-1.20.0.zip (+0 -0)
📝 catalog/catalog.json (+30 -10)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+30 -10)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+30 -10)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/gacha-forge/CHANGELOG.md (+8 -0)
📝 packages/gacha-forge/README.md (+11 -1)
📝 packages/gacha-forge/bundle-patches.json (+164 -0)
📝 packages/gacha-forge/client.js (+427 -48)
📝 packages/gacha-forge/manifest.json (+27 -7)
📝 packages/gacha-forge/server.mjs (+424 -7)
📝 packages/gacha-forge/src/audio-client.mjs (+6 -2)
📝 packages/gacha-forge/src/browser-presentation.mjs (+141 -30)
📝 packages/gacha-forge/src/chat-continuity-client.mjs (+46 -4)
📝 packages/gacha-forge/src/formation-settings-client.mjs (+7 -4)
➕ packages/gacha-forge/src/proactive-messages-adapter.mjs (+74 -0)

...and 21 more files

📄 Description

Why this change

Let unlocked characters initiate conversations at the player's chosen daily frequency. Make mobile Writing help and combat setup usable, and prevent insufficient output budgets from silently truncating Gacha writing or character replies.

What changed

Players can opt into messages initiated by unlocked units through setup or Settings → Story → Continuity → Daily unit messages. The default is 0/off. A typed nonnegative whole number sets one daily total across all eligible units; a random eligible unit is selected for each opportunity. Messages are spaced while the world is visible, without offline catch-up.

Incoming messages reuse saved, scrollable conversations and the normal story connection, debug logging, authored character grounding and played story context. Delivery preserves drafts and older-history position. Durable reservations and atomic message/quota writes prevent duplicate paid attempts across reloads or tabs; failed or interrupted attempts consume an opportunity. Reopening or settings revisions preserve the existing paid pacing deadline.

Mobile Writing → Advanced help now opens in separate native top-layer popovers above Settings, with compact question-mark controls, outside-tap dismissal, scrolling and keyboard support. Classic and Formation setup choices each have a readable, accessible description.

Every Gacha text generation requests at least 8,192 output tokens, including normal and autonomous character messages, retries and Formation conversion. The shared dispatcher preserves additional reasoning headroom where capacity permits, the selected model, reasoning settings and cancellation. A configured context window or hard output override below the minimum produces a clear capacity error before a model request; it cannot silently fall back to 4,096. Conversion truncation remains an unconfirmed explanation for the original saved-game failure.

Rebuild Gacha Forge 1.20.0 through the official builder, including maintained sources, manifest, ZIP and all catalog lanes/notes. This PR contains no Home artwork/download feature; that work remains independently scoped in #1708.

Closes #1698. Closes #1699. Closes #1701. Closes #1702.
Implementation owner: @SpicyMarinara via Codex.

Package and security impact

Package-owned executable client/server changes; no dependencies, permissions or Engine compatibility changes. Default 0 makes no autonomous model requests. Scheduling uses the existing authenticated routes, cancellation and public persistence, with no detached background job. State is additive in existing session/chat documents; uninstall retains worlds. The configured daily limit counts message attempts, not any separate automatic-memory preparation calls.

Candidate: ed9fd68a838bbd79b1799b35a30e770e5fe28c8a, including current staging's unrelated Long Term Memory repair without changing its files.
ZIP: 8,634,782 bytes, SHA-256 3c2ab1b60aee4c3a700a57d928f41d76b881cf0fc58b810a637f3d4e771b16f8.
Client 2844fbb908848f9355db791b6ca2e557c4ea71781c71c95b8ec9c06e7a67c078; server 5af4af0dab2b591b7fe270dadc438e8dfba436bbebc8b9dc1edc54f9d657806c. Historical Gacha archives are unchanged.

Validation

  • npm run check passes with 0 errors and 812 existing warnings. Catalog, lanes, locales, release notes and diff checks pass on the integrated tree. An official no-op rebuild preserves all 313 package files, 12 catalog files, 262 declared payloads and 263 ZIP members byte for byte. Temporary historical-archive links and the exact Git-backed LTM archive used for sparse-checkout validation were removed; original sparse flags were restored.
  • 55/55 Gacha regression suites pass, including actual activated-SDK minimum-budget and early capacity controls, four pacing regressions, ordinary/proactive messages, conversion and retries. Six positive fixtures were calibrated only after real early-capacity failures; their 269 assertion calls, negative controls and timeouts remain unchanged. Those failures are retained as evidence.
  • Four fresh processes with Engine's real public FileNativeDB prove delivery/quota durability, rollback after a real chat write, and no duplicate paid attempt on reopening. Exact 1.19→1.20 install/update, integrity negative controls, offline restart, uninstall and no-resurrection pass, preserving all 13 saved records.
  • Installed-package browser matrix: 62 pass, 2 intentional desktop-hover-on-touch skips, across dark/light desktop and mobile Chromium/WebKit. Cases cover help overlays, setup descriptions, autonomous messages, history/drafts, Formation, Seasonal events and readable native capacity-error guidance with Retry. The served client hash matches the ZIP. Initial port-collision and positive-fixture capacity failures remain recorded; the final isolated run passes without weakening assertions or timeouts.
  • Local CodeRabbit reviews of the two committed repair deltas complete with 0 findings across 28 and 10 text files respectively; earlier valid trigger-retap feedback was repaired. ZIP bytes are independently validated rather than text-reviewed. The subsequent staging merge changes only unrelated LTM/catalog/build inputs; all 368 owned package/regression files remain identical to the locally reviewed candidate.

Final-head required CI, a viable Dottore verdict and resolved review threads remain merge gates. Browser emulation and controlled SDK transports do not prove physical-iPhone or real paid-provider behavior.

Manual verification

  • Manually verify mobile keyboard, touch and native fullscreen on a physical phone.
  • Manually verify autonomous messages and Formation conversion with a configured real provider and an existing saved world.

Documentation impact

Package README, canonical English copy and 1.20 release notes cover opt-in pacing, help overlays, readable choices and the shared minimum output budget. No Engine user documentation changed.


🔄 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/1700 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/gacha-proactive-unit-messages` --- ### 📝 Commits (8) - [`d91caa9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d91caa92cab852aff4f7cb99c5e8a78e0e1a4d47) docs(gacha-forge): describe mobile help overlay behavior - [`3a94e40`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3a94e408042204c960a72f0831993f144c9e106c) feat(gacha-forge): add daily unit messages and floating Writing help - [`73f0bf8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/73f0bf8a3b7aab6cd71389823b1bdacae75fbc90) fix(gacha-forge): retain saved message counts and help toggles - [`395c2d8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/395c2d8ece041747b7664787a1ef71dd56895be3) fix(gacha-forge): preserve WebKit history anchoring on incoming messages - [`2525a57`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2525a57a34875a233fdc080c14e1d04c3597a9de) fix(gacha-forge): reserve Formation output and restore readable setup hints - [`091ffe3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/091ffe384e6776a7dab3f467984adc38837701ab) fix(gacha-forge): preserve message pacing and enforce output minimums - [`a3408e2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a3408e29bc4610644b4f8ccca87104525913ea8c) fix(gacha-forge): explain insufficient generation capacity - [`ed9fd68`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ed9fd68a838bbd79b1799b35a30e770e5fe28c8a) Merge staging into Gacha Forge output and messaging fixes ### 📊 Changes **41 files changed** (+4387 additions, -164 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/gacha-forge-browser.yml` (+3 -1) 📝 `.github/workflows/pull-request-checks.yml` (+6 -0) ➕ `artifacts/gacha-forge-1.20.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+30 -10) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+30 -10) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+30 -10) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/gacha-forge/CHANGELOG.md` (+8 -0) 📝 `packages/gacha-forge/README.md` (+11 -1) 📝 `packages/gacha-forge/bundle-patches.json` (+164 -0) 📝 `packages/gacha-forge/client.js` (+427 -48) 📝 `packages/gacha-forge/manifest.json` (+27 -7) 📝 `packages/gacha-forge/server.mjs` (+424 -7) 📝 `packages/gacha-forge/src/audio-client.mjs` (+6 -2) 📝 `packages/gacha-forge/src/browser-presentation.mjs` (+141 -30) 📝 `packages/gacha-forge/src/chat-continuity-client.mjs` (+46 -4) 📝 `packages/gacha-forge/src/formation-settings-client.mjs` (+7 -4) ➕ `packages/gacha-forge/src/proactive-messages-adapter.mjs` (+74 -0) _...and 21 more files_ </details> ### 📄 Description ## Why this change Let unlocked characters initiate conversations at the player's chosen daily frequency. Make mobile Writing help and combat setup usable, and prevent insufficient output budgets from silently truncating Gacha writing or character replies. ## What changed Players can opt into messages initiated by unlocked units through setup or **Settings → Story → Continuity → Daily unit messages**. The default is **0/off**. A typed nonnegative whole number sets one daily total across all eligible units; a random eligible unit is selected for each opportunity. Messages are spaced while the world is visible, without offline catch-up. Incoming messages reuse saved, scrollable conversations and the normal story connection, debug logging, authored character grounding and played story context. Delivery preserves drafts and older-history position. Durable reservations and atomic message/quota writes prevent duplicate paid attempts across reloads or tabs; failed or interrupted attempts consume an opportunity. Reopening or settings revisions preserve the existing paid pacing deadline. Mobile **Writing → Advanced** help now opens in separate native top-layer popovers above Settings, with compact question-mark controls, outside-tap dismissal, scrolling and keyboard support. Classic and Formation setup choices each have a readable, accessible description. **Every Gacha text generation requests at least 8,192 output tokens**, including normal and autonomous character messages, retries and Formation conversion. The shared dispatcher preserves additional reasoning headroom where capacity permits, the selected model, reasoning settings and cancellation. A configured context window or hard output override below the minimum produces a clear capacity error before a model request; it cannot silently fall back to 4,096. Conversion truncation remains an unconfirmed explanation for the original saved-game failure. Rebuild Gacha Forge **1.20.0** through the official builder, including maintained sources, manifest, ZIP and all catalog lanes/notes. This PR contains no Home artwork/download feature; that work remains independently scoped in #1708. Closes #1698. Closes #1699. Closes #1701. Closes #1702. Implementation owner: @SpicyMarinara via Codex. ## Package and security impact Package-owned executable client/server changes; no dependencies, permissions or Engine compatibility changes. Default 0 makes no autonomous model requests. Scheduling uses the existing authenticated routes, cancellation and public persistence, with no detached background job. State is additive in existing session/chat documents; uninstall retains worlds. The configured daily limit counts message attempts, not any separate automatic-memory preparation calls. Candidate: `ed9fd68a838bbd79b1799b35a30e770e5fe28c8a`, including current staging's unrelated Long Term Memory repair without changing its files. ZIP: **8,634,782 bytes**, SHA-256 `3c2ab1b60aee4c3a700a57d928f41d76b881cf0fc58b810a637f3d4e771b16f8`. Client `2844fbb908848f9355db791b6ca2e557c4ea71781c71c95b8ec9c06e7a67c078`; server `5af4af0dab2b591b7fe270dadc438e8dfba436bbebc8b9dc1edc54f9d657806c`. Historical Gacha archives are unchanged. ## Validation - `npm run check` passes with **0 errors and 812 existing warnings**. Catalog, lanes, locales, release notes and diff checks pass on the integrated tree. An official no-op rebuild preserves all **313 package files, 12 catalog files, 262 declared payloads and 263 ZIP members** byte for byte. Temporary historical-archive links and the exact Git-backed LTM archive used for sparse-checkout validation were removed; original sparse flags were restored. - **55/55 Gacha regression suites pass**, including actual activated-SDK minimum-budget and early capacity controls, four pacing regressions, ordinary/proactive messages, conversion and retries. Six positive fixtures were calibrated only after real early-capacity failures; their 269 assertion calls, negative controls and timeouts remain unchanged. Those failures are retained as evidence. - Four fresh processes with Engine's real public FileNativeDB prove delivery/quota durability, rollback after a real chat write, and no duplicate paid attempt on reopening. Exact 1.19→1.20 install/update, integrity negative controls, offline restart, uninstall and no-resurrection pass, preserving all **13 saved records**. - Installed-package browser matrix: **62 pass, 2 intentional desktop-hover-on-touch skips**, across dark/light desktop and mobile Chromium/WebKit. Cases cover help overlays, setup descriptions, autonomous messages, history/drafts, Formation, Seasonal events and readable native capacity-error guidance with Retry. The served client hash matches the ZIP. Initial port-collision and positive-fixture capacity failures remain recorded; the final isolated run passes without weakening assertions or timeouts. - Local CodeRabbit reviews of the two committed repair deltas complete with **0 findings** across 28 and 10 text files respectively; earlier valid trigger-retap feedback was repaired. ZIP bytes are independently validated rather than text-reviewed. The subsequent staging merge changes only unrelated LTM/catalog/build inputs; all 368 owned package/regression files remain identical to the locally reviewed candidate. Final-head required CI, a viable Dottore verdict and resolved review threads remain merge gates. Browser emulation and controlled SDK transports do not prove physical-iPhone or real paid-provider behavior. ## Manual verification - [ ] Manually verify mobile keyboard, touch and native fullscreen on a physical phone. - [ ] Manually verify autonomous messages and Formation conversion with a configured real provider and an existing saved world. ## Documentation impact Package README, canonical English copy and 1.20 release notes cover opt-in pacing, help overlays, readable choices and the shared minimum output budget. No Engine user documentation changed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:05:57 +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#1702
No description provided.