mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2806] [MERGED] Fix game setup cancel delete guard #5740
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5740
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-Engine/pull/2806
Author: @SpicyMarinara
Created: 6/22/2026
Status: ✅ Merged
Merged: 6/22/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/fix-2804-game-setup-cancel📝 Commits (2)
2fb3cfcfix game setup cancel delete guardc123e62address game group delete guard review📊 Changes
8 files changed (+95 additions, -21 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
packages/client/src/components/chat/ChatBranchSelector.tsx(+2 -2)📝
packages/client/src/components/chat/ChatFilesDrawer.tsx(+2 -2)📝
packages/client/src/components/game/GameSurface.tsx(+16 -5)📝
packages/client/src/components/layout/ChatSidebar.tsx(+4 -4)📝
packages/client/src/hooks/use-chats.ts(+18 -6)📝
packages/server/src/routes/chats.routes.ts(+22 -2)📝
packages/server/src/services/storage/chats.storage.ts(+27 -0)📄 Description
Why this change
Fixes #2804.
Canceling the Game Setup Wizard could hard-delete an existing game campaign when stale metadata or
setupsession status made the wizard appear for a real game. That is a data-loss path, so the cancel behavior needs a stronger distinction between a newborn empty setup chat and an existing campaign.What changed
CHANGELOG.mdunder Unreleased.Validation
pnpm check(completed locally; passed on this branch)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.