mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1598] [MERGED] feat(gacha-forge): add player choices and canonical story branches #1596
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#1596
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/1598
Author: @SpicyMarinara
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/gacha-player-choices📝 Commits (10+)
8792695fix(gacha-forge): align the chapter fullscreen icon with its headercabed6dfeat(gacha-forge): polish chapter controls and Units presentation4a99ddefix(gacha-forge): stabilize visible portraits and chapter controls49fbc36test(gacha-forge): verify native keyboard focus and chapter presentation527e3c1chore: start Gacha Forge player choices3fe7149feat(gacha-forge): add player choices and canonical story branchesbf62a97fix(gacha-forge): keep cached choice scenes responsive0b343e1ci(gacha-forge): run choice and bundle rebuild regressions73654c0test(gacha-forge): cover saved choice settings restoration98d8e4eMerge branch 'staging' into feat/gacha-player-choices📊 Changes
27 files changed (+3262 additions, -75 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+3 -1)➕
artifacts/gacha-forge-1.10.0.zip(+0 -0)➕
artifacts/gacha-forge-1.9.1.zip(+0 -0)📝
catalog/catalog.json(+9 -9)📝
catalog/notes.json(+12 -0)📝
catalog/v2/catalog.json(+9 -9)📝
catalog/v2/notes.json(+12 -0)📝
catalog/v3/catalog.json(+9 -9)📝
catalog/v3/notes.json(+12 -0)📝
packages/gacha-forge/CHANGELOG.md(+13 -0)📝
packages/gacha-forge/README.md(+12 -0)📝
packages/gacha-forge/bundle-patches.json(+232 -4)📝
packages/gacha-forge/client.js(+341 -6)📝
packages/gacha-forge/manifest.json(+6 -6)📝
packages/gacha-forge/server.mjs(+355 -10)📝
packages/gacha-forge/src/browser-presentation.mjs(+53 -0)➕
packages/gacha-forge/src/player-choices-client.mjs(+266 -0)➕
packages/gacha-forge/src/player-choices-en.mjs(+13 -0)➕
packages/gacha-forge/src/player-choices-server.mjs(+343 -0)📝
scripts/gacha-forge-bundle-patches.mjs(+13 -7)...and 7 more files
📄 Description
Linked issue
Closes #1597. Depends on #1594: this branch includes its reviewed Gacha Forge 1.9.1 UI fixes until that PR is merged. Implementation owner: @SpicyMarinara (Codex).
Why this change
Players need to shape their protagonist's dialogue and actions while preserving a consistent first-play history. Replaying an alternative scene must not rewrite the decisions used to generate future chapters.
What changed
Package and security impact
gacha-forge; client playback/settings and server narration, persistence and continuity routes. No Engine source changes.>=2.5.1 <4.0.0, capability API 1.376, built against Engine staging commit1c8d6575af6d7c55a9c4ead54e5f1df6c2cc61cc.gacha-forge-1.10.0.zip, 7,888,709 bytes; SHA-256d7f2ea8c98615b7667d5452ef6c954c42807d9bbb5ae8ef6eee37f014de6644a. Prior versioned archives are retained.Validation
Completed locally against the final generated payloads:
npm ci,npm run check, catalog-lane tests, package localization validation, catalog/archive/hash validation, release-note regressions and whitespace checks passed./stateclient path, remain off after page reload, enable with exactly one partial update, preserve pre-forging, and reload enabled. Persistence responses are mocked; this does not prove server disk persistence. Both installed test copies match the final client/server hashes.Review response
The reported settings argument mix-up is disproven by the shipped renderer:
ny({contextTokens:t,warnTokens:e,run:a})passes its run asforgeChoiceSettings(a).Vhis a separate handler scope with different bindings. Executing the actual generated pane and its settings caller renders saved-off, saved-on and default fixtures correctly; changingato the suggestedepasses numericwarnTokensand makes saved-off render checked. The new browser regression passes on the unchanged payload. This follow-up changes only the test; package version, payload hashes and archive bytes remain unchanged.The other review hypotheses were traced against the shipped payloads. Browser re-render stops the beat player and calls
attach(null)before replacing its dock; an actual-function remount harness verified a fresh connected pending panel and one resumed branch. Pending canonical-segment filtering is used for continuity/completion, while/beatserves raw saved segments and choices; reactivating a pending save preservedresumeAt, paused pre-forging without locking playback, and made zero model calls or document writes. The supported legacy plan shape remains covered by the route regressions. Manifest runtime inventory declares the built payloads, notsrc/*.mjs, and catalog/hash validation passed. The two nonblocking notes were retained: the saved-fate status is noninteractive, and once-visible portraits intentionally remain loaded.Manual verification notes
The browser harness installs the built package into disposable compatible Engine instances. It uses synthetic saves and model/API fixtures; it does not prove physical-device rendering or live-model storytelling quality. Interactive Download Agents update, restart/offline restart and uninstall cleanup were not manually exercised for this feature.
Documentation impact
Updated the package README, 1.10.0 changelog, generated release-note sidecars and semantic English UI catalog. Catalog membership, Engine compatibility and installation steps are unchanged.
UI evidence
Desktop and landscape mobile choice/settings screenshots, captured from the final package with synthetic fixtures. All five themes also have automated layout coverage.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.