mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2103] [MERGED] Fix empty new chat setup cleanup #5439
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#5439
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/2103
Author: @cha1latte
Created: 6/4/2026
Status: ✅ Merged
Merged: 6/4/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-2101-empty-conversations📝 Commits (5)
8137e66Fix empty new chat setup cleanupdef0eefRecord issue 2101 PR proof metadatac1877f7Tighten empty setup cleanup identity8f2c305Preserve setup identity through legacy open8a4643aMerge remote-tracking branch 'upstream/refactor' into fix/issue-2101-empty-conversations📊 Changes
7 files changed (+263 additions, -3 deletions)
View changed files
➕
scratch/issue-2101-bugfix-verification.json(+98 -0)📝
src/features/modes/conversation/components/ConversationModeRoute.tsx(+26 -1)📝
src/features/modes/roleplay/components/RoleplayModeRoute.tsx(+39 -1)📝
src/features/modes/shared/chat-ui/hooks/use-chat-overlays.ts(+12 -1)📝
src/features/modes/shared/chat-ui/index.ts(+1 -0)➕
src/features/modes/shared/chat-ui/lib/empty-new-chat.test.ts(+65 -0)➕
src/features/modes/shared/chat-ui/lib/empty-new-chat.ts(+22 -0)📄 Description
Linked issue
Closes #2101
Why this change
Skip, the wizard finished normally and kept a completely empty chat in history.What changed
isEmptyNewChatSetuphelper for detecting setup placeholders with no selected characters and zero messages.Skipis used on an empty setup.Refactor impact
Primary owner:
chat mode / roleplay mode
Impact areas reviewed:
src/app/shell/useStartNewChat.tssrc/features/modes/router/components/ModeHomeSurface.tsxsrc/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsxBoundary notes:
Pressure points touched:
ConversationModeRouteRoleplayModeRouteValidation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
pnpm test -- src/features/modes/shared/chat-ui/lib/empty-new-chat.test.ts(4 tests passed).pnpm typecheck(passed).node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json(passed).pnpm check(passed).Skipwithout characters/messages, and confirm no empty chat remains in the list.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.