mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8151] [MERGED] fix(ui): cancel untouched Home chats and align loading surfaces #8126
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#8126
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/8151
Author: @SpicyMarinara
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/home-wizard-and-loading📝 Commits (9)
c22e5b4chore: begin home wizard and loading fixes3f94909fix(ui): discard untouched setup drafts and theme editor loaders4640538fix: preserve cleanup through setup shortcutsbcdae56fix: release stalled new-chat cancellationc25f675fix: show chat setup cancellation progress472d2c4Merge branch 'staging' into fix/home-wizard-and-loading0b33cf7fix(chat): protect completed setup and normalize profile defaults48e1ba9Merge branch 'staging' into fix/home-wizard-and-loadingfc4ca9efix: finish setup provenance and normalize profile translators📊 Changes
21 files changed (+1659 additions, -55 deletions)
View changed files
➕
e2e/home-setup-cancel-loading.e2e.ts(+983 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+21 -9)📝
packages/client/src/components/chat/ChatCommonOverlays.tsx(+1 -1)📝
packages/client/src/components/chat/ChatConversationSurface.tsx(+1 -1)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+1 -1)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+103 -25)📝
packages/client/src/components/chat/NewChatConnectionGate.tsx(+5 -3)📝
packages/client/src/components/game/GameSurface.tsx(+7 -8)📝
packages/client/src/components/layout/AppShell.tsx(+13 -1)📝
packages/client/src/components/layout/ChatSidebar.tsx(+5 -3)📝
packages/client/src/hooks/use-chat-presets.ts(+11 -0)📝
packages/client/src/hooks/use-chats.ts(+3 -0)➕
packages/client/src/hooks/use-discard-new-chat-setup.ts(+73 -0)📝
packages/client/src/hooks/use-start-new-chat-mode.ts(+5 -3)➕
packages/client/src/lib/chat-setup-draft.ts(+86 -0)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/client/src/stores/chat.store.ts(+14 -0)📝
packages/client/src/styles/globals.css(+5 -0)📝
packages/server/src/routes/chats.routes.ts(+18 -0)📝
packages/server/src/services/storage/chats.storage.ts(+54 -0)...and 1 more files
📄 Description
Linked issue
Closes #8144
Closes #8147
Why this change
Tapping a Home mode could leave an unwanted empty chat after setup was closed or skipped. Editor loading placeholders also used an old background rather than the configured editor surface.
Accepted cleanup boundary: remove only a newly created, untouched, same-tab empty draft without a character or persona. Existing, populated, configured or content-bearing chats remain protected. A confirmed retained result retires the draft into a normal existing chat; request/save uncertainty preserves its baseline for retry. Reloads without creation provenance keep the chat. This PR does not add persistent deletion provenance or a retention-reason API.
Latest repair proof,
fc4ca9edd9bf92802636c09cad192c45a0e0e2b8: Conversation Start, both immediate and buffered schedule, and Roleplay Apply & Start previously sent one unwanted discard POST after completion (rows stayed200). They now retire completed setup before navigation: zero discard POSTs and GET200 in all three browser projects. A rejected profile application still leaves its untouched draft eligible for cleanup: one POST and GET404. Four malformed translator-profile variants previously retained untouched chats; actual create/apply/discard routes now delete all four, with valid legacy-language back-fill preserved. Exact before/after scripts, logs, source and SHA256 manifest, all 19 raw files byte-verified.What changed
Validation
Final local source is committed at
fc4ca9edd9bf92802636c09cad192c45a0e0e2b8, directly after the maintainer's 48e1 staging merge. Fullpnpm checkpassed after the last repair, with one inherited HomeProfessorMariChat hook warning. Canonical empty-setup storage/race regression 1/1, actual profile HTTP 5/5, focused browser 21/21, source shell smoke 7/7 and compiled-startup 3/3 passed. Local CodeRabbit first reported one valid failed-application case; it was reproduced and repaired. Final four-file review completed with zero findings. Hosted final-head checks and an actual viable Dottore verdict remain required before merge.pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Manually verify Home mode setup Close/Skip, a completed Conversation/Roleplay, saved defaults and a failed profile application on a physical phone. Automated browser evidence uses desktop Chromium, mobile Chromium and mobile WebKit emulation. The buffered completion test stubs only schedule generation; no external scheduling model is claimed. No local Docker daemon was available; hosted container validation is a separate gate.
The earlier protected retained-chat/reopen proof and actual initial metadata-shape proof cover unchanged boundaries on their recorded revisions. They are not presented as new final-head runs.
Docs and release impact
No new user-facing setting or documentation path; no version/release metadata or changelog changes.
docs-i18nbranch updated to match, or a follow-up issue openedUI evidence (if applicable)
The loading surface remains covered by the earlier desktop/mobile dark/light gallery on its recorded revision. The latest repair changes setup lifecycle and profile-baseline filtering, with no layout or color changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #8151] fix(ui): cancel untouched Home chats and align loading surfacesto [PR #8151] [MERGED] fix(ui): cancel untouched Home chats and align loading surfaces