mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2265] [Issue]: 08-CHATPRESET-RUNTIME-new-chat-starred-apply misses game and quick-start preset apply #1104
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#1104
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 @Promansis on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2265
Originally assigned to: @Xelvanis on GitHub.
Summary
08-CHATPRESET-RUNTIME-new-chat-starred-apply: active/starred chat-settings presets are not applied on every refactor new-chat start path. Refactor skipsgamepresets in the shared new-chat/gate helpers, and the mode home quick-start path creates chats without applying any active/starred chat preset.Expected behavior
Legacy applied the user's active/starred chat-settings preset when starting new chats through the sidebar, connection gate, and character-start flows for supported preset modes. Refactor should preserve that behavior for the current supported chat preset modes, including seeded
gamechat presets, unless game preset runtime apply is explicitly de-scoped.Linked parity tracker: #2259.
Surface ID:
08-CHATPRESET-RUNTIME-new-chat-starred-applyActual behavior
Refactor applies starred presets for
conversationandroleplayin some paths, but:src/app/shell/useStartNewChat.tsresolvespresetModeonly forconversationorroleplay, sogamestarts never apply an active/starred game chat preset.src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsxrepeats the samegame -> nullpreset-mode skip.src/features/modes/router/components/ModeHomeSurface.tsxquick-start creates a chat and opens settings/wizard without reading or applying chat presets at all.Storage save/apply behavior itself matched legacy in the parityscan; the confirmed gap is runtime apply coverage.
Steps to reproduce
refactor, create or select a non-default chat-settings preset forgame, mark it active/starred, and give it visible settings such as a distinct connection or preset-controlled metadata.Impact area
Environment
refactorparityscan, 2026-06-05Logs, screenshots, or video
Parityscan proof:
Legacy behavior:
main:packages/client/src/components/layout/ChatSidebar.tsx:472resolves the user's starred preset for the new-chat mode and applies it after create atmain:packages/client/src/components/layout/ChatSidebar.tsx:483.main:packages/client/src/components/chat/NewChatConnectionGate.tsx:51resolves starred presets and applies them after create atmain:packages/client/src/components/chat/NewChatConnectionGate.tsx:68.main:packages/client/src/hooks/use-start-chat-from-character.ts:27resolves starred presets for character starts and applies them after create atmain:packages/client/src/hooks/use-start-chat-from-character.ts:41.Refactor behavior:
src/app/shell/useStartNewChat.ts:88limitspresetModetoconversationandroleplay;src/app/shell/useStartNewChat.ts:108only applies when that lookup found a preset.src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx:96limitspresetModetoconversationandroleplay;src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx:110only applies when that lookup found a preset.src/features/modes/router/components/ModeHomeSurface.tsx:54handles quick-start;src/features/modes/router/components/ModeHomeSurface.tsx:65creates the chat andsrc/features/modes/router/components/ModeHomeSurface.tsx:68opens it without any chat-preset lookup/apply.src-tauri/src/seed_defaults.rs:132seeds default chat presets forconversation,roleplay, andgame.src/engine/contracts/schemas/chat.schema.ts:7includes canonicalgamemode.Storage parity checked but not the source of this issue:
src/features/catalog/chat-presets/hooks/use-chat-presets.ts:95sanitizes preset settings.src/features/catalog/chat-presets/hooks/use-chat-presets.ts:147enforces one active preset per mode.src/features/catalog/chat-presets/hooks/use-chat-presets.ts:235applies a preset while preserving excluded chat-specific metadata.src-tauri/src/commands/storage/commands/entities.rs:1482protects default chat presets from mutation.Regression notes
Legacy
mainapplied active/starred chat presets on the listed new-chat paths. Refactor has partial carryover for conversation/roleplay but misses game preset runtime apply and the mode home quick-start path.Additional context
Acceptance criteria:
gamechat through the shared new-chat and connection-gate paths applies the active/starredgamechat preset when one exists, or the behavior is explicitly de-scoped in #2259 with product rationale.ModeHomeSurfacequick-start uses the same active/starred chat-preset apply behavior as the primary new-chat path for all supported modes.promptPresetIdper existing storage/apply contract.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: