mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8012] [MERGED] fix(chat): the setup wizard starts from the starred profile and stays above popped-out settings #8054
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#8054
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/8012
Author: @JamesMowery
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/setup-wizard-waits-for-profile📝 Commits (6)
c4a90a7fix(chat): start the setup wizard from the starred profileb425c4afix(chat): keep popped-out Chat Settings sections behind the setup wizard1d81a2dfix(chat): the wizard's loading spinner respects reduced motion; the regression uses the wizard's cache key41cdf9bfix(chat): only the apply the wizard opened with holds it back21c6cc6Merge remote-tracking branch 'origin/staging' into fix/setup-wizard-waits-for-profile7c1dd5arefactor(chat): the wizard's apply hold starts empty instead of repeating the next line📊 Changes
5 files changed (+138 additions, -21 deletions)
View changed files
📝
packages/client/src/components/chat/ChatCommonOverlays.tsx(+2 -1)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+39 -19)📝
packages/client/src/hooks/use-chat-presets.ts(+8 -1)➕
packages/client/src/lib/chat-preset-apply.ts(+27 -0)➕
scripts/regressions/setup-wizard-waits-for-profile.regression.ts(+62 -0)📄 Description
Linked issue
Closes #8011
@SpicyMarinara
Why this change
What changed
useApplyChatPresethas a mutation key, anduseIsApplyingChatPreset(chatId)(throughchatPresetApplyFilters, matched by the key and the chat id) says when a profile is being applied to this chat.ChatSetupWizardshows its loading state while that apply is pending, then starts from the cached chat (chatKeys.detail), which holds the applied profile by then. The loading state is one sharedWizardLoading(its spinner only spins undermotion-safe).nextWizardApplyHold); once that ends or fails, a profile picked inside the wizard (its profile shortcut) doesn't unmount it or apply saved wizard defaults again.ChatCommonOverlays.tsx). The window store and the chat's saved layout are untouched; only rendering waits.Open question for the maintainers: when you also have saved wizard defaults (Save as my defaults in the wizard), the wizard now applies them after the profile, so they win over it, and Reset returns to the profile's settings. Before this change the two writes raced. If the starred profile should win over saved wizard defaults instead, that is a one-line change in
SavedChatSetupWizard's first apply.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated runs on 2026-10-21 on
staging5e7468ab4, Node 24.21.0:pnpm check: passes. Its one lint warning, inHomeProfessorMariChat.tsx, is not from this PR.pnpm localization:check: passes.setup-wizard-waits-for-profile(new): the wait starts with the apply, ends only after the applied chat is cached under the wizard's own cache key, and ignores applies to other chats. It fails when the apply is not keyed.pnpm regressiononb425c4a7b: 961/961 pass. On1d81a2dea: client type check, ESLint on the wizard, andsetup-wizard-waits-for-profilepass.1d81a2dea: the loading spinner under reduced motion; the regression now uses the key the wizard reads (["chats", "detail", id], mirrored becauseuse-chats.tscan't load in a Node regression).1d81a2dea: 0 findings.pnpm smoke:uiandpnpm regression:ui.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)docs/chats/chat-settings.mdalready says a new chat gets the starred profile; this makes it true when the wizard finishes too.UI evidence (if applicable)
The only visible change is the wizard's existing loading state showing while a profile applies, and a popped-out window waiting for the wizard.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.