mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1754] [MERGED] fix(gacha-forge): keep Auto and Formation edits through background work; Send-only chat (1.24.8) #1951
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#1951
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/1754
Author: @SpicyMarinara
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/gacha-forge-autoplay-formation-lag📝 Commits (8)
2fbb929fix(gacha-forge): keep Auto and Formation edits through background work (1.24.8)621d40efix(gacha-forge): only Send sends a character chat message (1.24.8)67f0a89test(gacha-forge): pin Auto, Formation and refreshes through background work041cdd4chore(gacha-forge): rebuild 1.24.8 catalog notes with the chat Enter changef620673fix(gacha-forge): address 1.24.8 review findings00b4078fix(gacha-forge): don't start a battle after a failed Formation saveeaf6081fix(gacha-forge): address second-round review of the 1.24.8 fixes597734afix(gacha-forge): a throwing Formation save request cannot stall the queue📊 Changes
19 files changed (+777 additions, -73 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+1 -0)➕
artifacts/gacha-forge-1.24.8.zip(+0 -0)📝
catalog/catalog.json(+10 -10)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+10 -10)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+10 -10)📝
catalog/v3/notes.json(+6 -6)📝
packages/gacha-forge/CHANGELOG.md(+6 -0)📝
packages/gacha-forge/bundle-patches.json(+116 -0)📝
packages/gacha-forge/client.js(+107 -7)📝
packages/gacha-forge/manifest.json(+7 -7)📝
packages/gacha-forge/server.mjs(+6 -6)📝
packages/gacha-forge/src/browser-presentation.mjs(+16 -0)📝
packages/gacha-forge/src/formation-combat-client.mjs(+84 -0)➕
tests/gacha-forge-background-work.regression.mjs(+311 -0)📝
tests/gacha-forge-persona-voices.regression.mjs(+8 -5)📝
tests/package-gacha-forge-audio.e2e.ts(+59 -0)📝
tests/package-gacha-forge-formation.e2e.ts(+8 -0)📄 Description
Pull request
Linked issue
Fixes #1752
Fixes #1753
The Enter-to-send change was requested by the maintainer in the same session. It has no separate issue.
Why this change
Three reports from playing Gacha Forge:
The first two share one root cause. The "working on…" chip's labels were part of every screen's render key. Whenever background work started or finished, the whole screen was rebuilt. That work includes scenes written ahead, expression portraits, portraits, combat guides and /state refreshes. Each rebuild:
Hiding the tab also sent
/beat/mark, which was mislabelled as "Writing the next scene". That rebuilt the reader twice.What changed
Package
gacha-forge1.24.8.client.jsandserver.mjsare rebuilt from the newbundle-patches.jsonentries. The artifact, manifest and catalog are regenerated.Client
syncForgeBusyChip). Only the worlds list, which shows the tasks, still redraws for them./beat/markno longer shows a chip./state?light=1.Server
/formation/saveretries through the existingxn()re-read helper, rechecking the roster on each attempt, instead of failing on the first concurrent session write./state?light=1skipsYr(), the full-history context-token count. Only boot uses it.contextTokensoutside the shared generation dedupe. The pre-forge chain skips it, because nothing reads it there.Tests
tests/gacha-forge-background-work.regression.mjs, registered in PR checks. It covers:client.jschapters reload;gacha-forge-persona-voices.regression.mjsnow sends with the Send button and pins that Enter is unbound.Package and security impact
gacha-forgeGET /stateaccepts an optionallight=1query. Older clients without it get the same response as before.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-side checks:
tests/gacha-forge-*.regression.mjsfiles pass locally.git diff --checkis clean.00b4078b1.f6206738b: the chapters list was stale after Keep playing, the battle wait was latched to its first node, and a Formation reopen didn't wait for queued saves.eaf60814c: the chapters list re-dealt its cards on every chip change, Formation reopens queued duplicate reads, and a failed save sent tower fights to Formation and could act on a world the player had left.eaf60814c: 0 findings./battlereply can replace a re-entered fight. That race dates from 1.1.0 and this PR doesn't change it.validate-catalogpasses the changelog/notes check locally. The sparse worktree lacks other packages' zips, so the full run is left to CI.To verify by hand:
Documentation impact
UI evidence (if applicable)
No layout changes. The chip, reader and editor render as before.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.