Stop the restart button refusing rooms it could replay #327
No reviewers
Labels
No labels
4-29
bug
documentation
duplicate
enhancement
flow improvement
good first issue
help wanted
invalid
investigating
issue-agent
issue-agent-blocked
issue-agent-complete
issue-agent-pr-open
issue-agent-runner-nelsonlaptop
issue-agent-runner-nelsonpc
issue-agent-runner-nelsonpc-user
issue-agent-running
needs-verification
next to do
question
queue
recon
relics-stats-onboarding
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens!327
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/restart-button-always-acts"
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?
Three of the button's eleven refusals were unwritten code rather than real limits.
Rest sites and treasure rooms
They fell through to
default: Blocked("not a combat, shop, or event"). Neither writes a save — verified, they carry noSaveManagerreference at all, exactly likeMerchantRoom, which the code already documents as "Merchants never save. The whole visit is replayable."Two
caselabels. A rest site is arguably the room most worth redoing, since smith vs. rest is a real decision.Fights and events that are already over
A won fight was refused as
"this fight is already over", because replaying lands on the reward screen rather than at the top of the fight. That's a destination, not a failure — picking a reward again is a legitimate reason to go back. Finished events and event-started fights were refused on the same reasoning and are now offered too.The label was lying
Since where a replay lands now varies by room,
RoomRestartAvailabilitycarries aReplayNoteand the menu prints it, instead of always claiming the room replays "from the start, undoing everything you did here" — untrue for every case above.The snapshot no longer dies on hot reload
The room-entry snapshot, which the run record rewinds to, was memory-only. A Core hot reload dropped it and the button stayed refused for the rest of the room — during development, most of the time. It's now written at capture and read back when a fresh Core load has none.
It lives in its own directory on purpose:
RunsDiris enumerated with*.jsonto find run records, so a snapshot placed there would be read back as one.What still refuses, correctly
A restart already in progress · no run · run shutting down · no save on disk · multiplayer (the restore path is
SetUpSavedSingleplayer, and the multiplayer equivalent needs aLoadRunLobbythat can't be rebuilt) · standing on the map with no room to replay.Verification
Built, deployed and hot-reloaded;
433 classes patched, 0 failed, clean log.2128 passed, 0 failed.Behavioural verification not run — per the repo's user-owned verification policy, the restart paths themselves haven't been exercised in a live run.
🤖 Generated with Claude Code