[PR #1814] [MERGED] fix(gacha-forge): 1.26.3 played story events in Chapters, no dead Hard fights #1979

Closed
opened 2026-11-07 16:38:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/gacha-forge-event-timeline-hard


📝 Commits (3)

  • a03264b fix(gacha-forge): 1.26.3 played story events in Chapters, no dead Hard fights (#1813)
  • e3458fc Merge remote-tracking branch 'origin/staging' into fix/gacha-forge-event-timeline-hard
  • 784e5c6 docs(gacha-forge): describe the timeline order as built, escape the middle dot

📊 Changes

22 files changed (+621 additions, -78 deletions)

View changed files

➕ artifacts/gacha-forge-1.26.3.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/gacha-forge/CHANGELOG.md (+6 -0)
📝 packages/gacha-forge/README.md (+11 -1)
📝 packages/gacha-forge/bundle-patches.json (+52 -0)
📝 packages/gacha-forge/client.js (+53 -10)
📝 packages/gacha-forge/docs/seasonal-story-events.md (+2 -1)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+4 -2)
📝 packages/gacha-forge/src/seasonal-events-client.mjs (+43 -4)
📝 packages/gacha-forge/src/seasonal-events-en.mjs (+4 -0)
📝 packages/gacha-forge/src/seasonal-events-server.mjs (+3 -1)
📝 tests/gacha-forge-battle-load.regression.mjs (+127 -0)
📝 tests/gacha-forge-event-choice.regression.mjs (+211 -5)
📝 tests/gacha-forge-seasonal-events-client.regression.mjs (+33 -0)

...and 2 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.

Linked issue

Fixes #1813

Why this change

The maintainer finished a seasonal story event and reported two problems: "it's not showing up in my timeline of chapters", and "I cannot start any fights on hard mode for it … Clicking the button does nothing." Both were reproduced against the real bundles, in Classic and Formation worlds.

  • The event was missing because the Chapters builder only placed events that could still be played.
  • Hard could never work. Story events are Normal-only, and the Hard pill was visible only because CSS beat its hidden attribute. Start battle then hit a server refusal that the briefing never showed.

What changed

Gacha Forge 1.26.3:

  • Played events in Chapters (src/seasonal-events-client.mjs, client ledger):
    • forgeSeasonalTimelineCards draws each chapter's slot: its finished Character Stories and played events, sorted by after, then by when each was opened, as story memory orders them.
    • An event card says Done, Ended or Paused (Seasonal events off) and opens to read its scenes again.
    • The bottom "Played story events" section keeps only events shown nowhere else.
    • Events → Story events offers Revisit played scenes for a finished event, not Continue event.
    • The server's /chapters Character Story offers now carry opened for that sort.
  • No dead Hard fights:
    • The event map's difficulty pills are removed, not hidden, and the leftover "Higher difficulty" hint is cleared.
    • /story-event/battle turns a cleared fight away before its briefing.
    • Any fight that cannot start now shows why, with Retry and Back. This covers chapters, Character Stories, events, Materials and the Tower. Before, refusals other than no-Vigor were stored where nothing drew them.
  • Related start fixes:
    • A no-Vigor refusal no longer sticks to a later, cheaper fight's briefing.
    • Start battle works at once in a world you switched to while a start was in flight. _initState resets the start flags, and Materials and Tower replies check the world they belong to.
  • Release: manifest, What's new (1.26.2 pinned), CHANGELOG (968 of 1000 characters), README, docs/seasonal-story-events.md, catalog and artifact.
  • Tests: new cases in gacha-forge-event-choice and gacha-forge-battle-load. Seasonal-events client, package and e2e tests are updated. Each new regression fails with its fix undone.

Product decision for the maintainer

This makes events Normal-only, as designed since 1.18.0: the Hard pill is gone rather than working. Real Hard and Very Hard for story events would be a separate feature. It would need per-difficulty progress, scaled event fights, replay starts and a reward policy.

Internal review

A skeptic re-ran both reproductions in the full shipped element and confirmed both root causes. Two reviewers found four problems in the first fix, all fixed with regressions:

  • two events after one chapter drew newest first;
  • an event always followed a Character Story regardless of opening order;
  • a stale no-Vigor cost on later briefings;
  • Start battle dead after a world switch.

Package and security impact

  • Affected package IDs: gacha-forge (1.26.3).
  • Engine compatibility impact: none.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: none. Data saved since 1.18.0 already holds what the timeline reads.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Agent-side checks:

  • node --test tests/gacha-forge-*.regression.mjs: 592 tests in 74 files pass, including the bundle rebuild and the location-ids ledger replay.
  • npm run check, both locale validators, test-catalog-lanes and git diff --check are clean.
  • Rebuilds are byte-identical.
  • The seasonal-events browser spec runs in CI.

Please verify by hand:

  • Manually verify, in a world with a finished story event, that Story → Chapters shows it right after the chapter it followed, and that it opens to reread its scenes.
  • Manually verify, with a finished event and a Character Story after the same chapter, that they are listed in the order you opened them.
  • Manually verify the finished event's map offers no Hard or Very Hard, and its Normal fights replay as before.
  • Manually verify a fight that can't start (for example, out of Vigor) shows why, with Retry and Back.
  • Manually verify Start battle works right after switching worlds.

🤖 Generated with Claude Code


🔄 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/1814 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/gacha-forge-event-timeline-hard` --- ### 📝 Commits (3) - [`a03264b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a03264bdd5f59f3e179c5119607160d9d417f397) fix(gacha-forge): 1.26.3 played story events in Chapters, no dead Hard fights (#1813) - [`e3458fc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e3458fcceb659bf4d7aac13cededccc8aa754fc2) Merge remote-tracking branch 'origin/staging' into fix/gacha-forge-event-timeline-hard - [`784e5c6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/784e5c620b1845dbadbb3c7fe9bfa15d97f6167d) docs(gacha-forge): describe the timeline order as built, escape the middle dot ### 📊 Changes **22 files changed** (+621 additions, -78 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.26.3.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/gacha-forge/CHANGELOG.md` (+6 -0) 📝 `packages/gacha-forge/README.md` (+11 -1) 📝 `packages/gacha-forge/bundle-patches.json` (+52 -0) 📝 `packages/gacha-forge/client.js` (+53 -10) 📝 `packages/gacha-forge/docs/seasonal-story-events.md` (+2 -1) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+4 -2) 📝 `packages/gacha-forge/src/seasonal-events-client.mjs` (+43 -4) 📝 `packages/gacha-forge/src/seasonal-events-en.mjs` (+4 -0) 📝 `packages/gacha-forge/src/seasonal-events-server.mjs` (+3 -1) 📝 `tests/gacha-forge-battle-load.regression.mjs` (+127 -0) 📝 `tests/gacha-forge-event-choice.regression.mjs` (+211 -5) 📝 `tests/gacha-forge-seasonal-events-client.regression.mjs` (+33 -0) _...and 2 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. ## Linked issue Fixes #1813 ## Why this change The maintainer finished a seasonal story event and reported two problems: "it's not showing up in my timeline of chapters", and "I cannot start any fights on hard mode for it … Clicking the button does nothing." Both were reproduced against the real bundles, in Classic and Formation worlds. - The event was missing because the Chapters builder only placed events that could still be played. - Hard could never work. Story events are Normal-only, and the Hard pill was visible only because CSS beat its `hidden` attribute. Start battle then hit a server refusal that the briefing never showed. ## What changed Gacha Forge 1.26.3: - **Played events in Chapters** (`src/seasonal-events-client.mjs`, client ledger): - `forgeSeasonalTimelineCards` draws each chapter's slot: its finished Character Stories and played events, sorted by `after`, then by when each was opened, as story memory orders them. - An event card says Done, Ended or Paused (Seasonal events off) and opens to read its scenes again. - The bottom "Played story events" section keeps only events shown nowhere else. - Events → Story events offers **Revisit played scenes** for a finished event, not **Continue event**. - The server's `/chapters` Character Story offers now carry `opened` for that sort. - **No dead Hard fights:** - The event map's difficulty pills are removed, not hidden, and the leftover "Higher difficulty" hint is cleared. - `/story-event/battle` turns a cleared fight away before its briefing. - Any fight that cannot start now shows why, with **Retry** and **Back**. This covers chapters, Character Stories, events, Materials and the Tower. Before, refusals other than no-Vigor were stored where nothing drew them. - **Related start fixes:** - A no-Vigor refusal no longer sticks to a later, cheaper fight's briefing. - Start battle works at once in a world you switched to while a start was in flight. `_initState` resets the start flags, and Materials and Tower replies check the world they belong to. - **Release:** manifest, What's new (1.26.2 pinned), CHANGELOG (968 of 1000 characters), README, `docs/seasonal-story-events.md`, catalog and artifact. - **Tests:** new cases in `gacha-forge-event-choice` and `gacha-forge-battle-load`. Seasonal-events client, package and e2e tests are updated. Each new regression fails with its fix undone. ### Product decision for the maintainer This makes events **Normal-only, as designed since 1.18.0**: the Hard pill is gone rather than working. Real Hard and Very Hard for story events would be a separate feature. It would need per-difficulty progress, scaled event fights, replay starts and a reward policy. ### Internal review A skeptic re-ran both reproductions in the full shipped element and confirmed both root causes. Two reviewers found four problems in the first fix, all fixed with regressions: - two events after one chapter drew newest first; - an event always followed a Character Story regardless of opening order; - a stale no-Vigor cost on later briefings; - Start battle dead after a world switch. ## Package and security impact - Affected package IDs: `gacha-forge` (1.26.3). - Engine compatibility impact: none. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: none. Data saved since 1.18.0 already holds what the timeline reads. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Agent-side checks: - `node --test tests/gacha-forge-*.regression.mjs`: 592 tests in 74 files pass, including the bundle rebuild and the location-ids ledger replay. - `npm run check`, both locale validators, `test-catalog-lanes` and `git diff --check` are clean. - Rebuilds are byte-identical. - The seasonal-events browser spec runs in CI. Please verify by hand: - [ ] Manually verify, in a world with a finished story event, that Story → Chapters shows it right after the chapter it followed, and that it opens to reread its scenes. - [ ] Manually verify, with a finished event and a Character Story after the same chapter, that they are listed in the order you opened them. - [ ] Manually verify the finished event's map offers no Hard or Very Hard, and its Normal fights replay as before. - [ ] Manually verify a fight that can't start (for example, out of Vigor) shows why, with Retry and Back. - [ ] Manually verify Start battle works right after switching worlds. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:38:28 +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#1979
No description provided.