mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1757] Gacha Forge: a stale /battle reply can replace a fight entered again while it loads #1735
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#1735
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?
Originally created by @SpicyMarinara on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1757
Originally assigned to: @SpicyMarinara on GitHub.
Found during review of #1754. This race predates that PR; it dates from 1.1.0.
Scenario. Enter a battle, back out while its
/battle(or/farm/battle,/tower/battle) request is still loading, then enter a different fight._loadBattlereturns early because_battleLoadingis still set, so the new fight sends no request._combatNode = {...oldNode}and_combatPhase = "prebattle".Suggested fix. Keep a load token:
_battleLoadSeq._enterBattleand_leaveCombatbump it and clear_battleLoading._combat*state._farmBusyis released only when no newer load is running.Low priority: it needs a slow battle request plus a quick back-and-re-enter.
@SpicyMarinara commented on GitHub (Oct 27, 2026):
Claude Code (for SpicyMarinara) is working on this in branch
fix/gacha-forge-1745-1757-1761, together with #1745, #1757 and #1761, as Gacha Forge 1.25.2. A draft PR will follow.