mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8696] [MERGED] fix(chat): keep the setup wizard open when an editor or stray click interrupts it #8752
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#8752
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/8696
Author: @Gunterlie
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/8690-setup-wizard-survives-editors📝 Commits (3)
7334708Keep the chat setup wizard open while an editor covers the chat5826927Reset to the pre-defaults chat after the wizard remounts7b8a286Clear the open setup wizard on chat store reset📊 Changes
4 files changed (+62 additions, -11 deletions)
View changed files
📝
packages/client/src/components/chat/ChatArea.tsx(+10 -4)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+17 -7)📝
packages/client/src/stores/chat.store.ts(+7 -0)➕
scripts/regressions/setup-wizard-survives-editor.regression.ts(+28 -0)📄 Description
Linked issue
Closes #8690
Why this change
During RP chat setup, opening a model's settings from the model step (or opening any other editor, such as a character or Agents) closed the setup wizard for good. Users landed on the chat settings page, and because the wizard never finished, the card's opening message often did not appear. A stray click on the dimmed area around the wizard did the same thing.
Cause: on desktop,
AppShellunmountsChatAreawhile an editor is open, andChatAreakept the wizard's open flag in local state. When the editor closed, the flag was gone. The backdrop click called the wizard's dismiss path, which for a non-blank chat opens chat settings.What changed
setupWizardChatId.ChatAreareads the wizard's open state from it, so the wizard comes back when the editor closes. Switching to another chat and a store reset still close it.scripts/regressions/setup-wizard-survives-editor.regression.ts.Known limit: when the wizard comes back, it starts again at its first step. Most RP picks are saved to the chat immediately, so they are kept; unsaved local toggles (for example the conversation automation step) start from their defaults. Keeping the wizard mounted outside
ChatAreawould avoid this but is a larger change.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (not the boxes above): client
tsc --noEmitclean, ESLint on the changed files (no new warnings), Prettier check, and the new regression. Fullpnpm checkand a browser run were not done. Local review: one Claude review pass (one finding about Reset defaults after a remount — fixed) and CodeRabbit (store reset finding — fixed; "restore wizard step after remount" — not fixed, see Known limit).Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
No visual change; behavior only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.