mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3575] [issue]: Setup wizard Name field reverts when opening the Connection dropdown (Roleplay / Conversation) #1936
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#1936
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 @yozlet on GitHub (Jul 13, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3575
Summary
In the New Roleplay (and New Conversation) setup wizard, replacing the default Name and then clicking the Connection dropdown causes the Name field to snap back to the default (
New Roleplay/New Conversation) as soon as the dropdown opens — before any connection is selected.[NOTE: The initial investigation & recommendations were made by Prof. Mari (Nemotron 3 Ultra), then reviewed & refined by Cursor (Grok 4.5 Medium) and me.]
Expected behavior
The Name field should keep the typed value when focus moves to the Connection dropdown (and when a connection is later selected).
Actual behavior
Opening the Connection dropdown blurs the Name field. The Name input remounts and shows the previous default chat name again. The typed name is discarded from the field (a rename mutation may still be in flight / later succeed for the sidebar, but the visible wizard field has already reset).
Steps to reproduce
Test.New Roleplay/New Conversation.Environment
Logs, screenshots, or video
N/A — reproducible in UI. Trigger is opening Connection, not selecting a connection.
Additional context
Root cause:
ChatSetupWizard.tsxuses an uncontrolled Name input with:key={userEditedName ? "user" : chat.name}defaultValue={chat.name}onBlur→setUserEditedName(true)+updateChat.mutate({ name })Flipping
userEditedNamechanges the Reactkey, remounting the input whilechat.nameis still the default (useUpdateChatis not optimistic). Same pattern exists for both Roleplay and Conversation Name fields.Not affected: New Game setup (
GameSetupWizard) uses controlledgameNamestate and does not show this reset on connection interaction.Files:
packages/client/src/components/chat/ChatSetupWizard.tsx(Roleplay ~2208–2218; Conversation ~1067–1077)packages/client/src/hooks/use-chats.ts(useUpdateChat)Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: