[GH-ISSUE #2265] [Issue]: 08-CHATPRESET-RUNTIME-new-chat-starred-apply misses game and quick-start preset apply #1104

Closed
opened 2026-10-21 05:26:42 +07:00 by bsakaguchi · 0 comments
Owner

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 skips game presets 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 game chat presets, unless game preset runtime apply is explicitly de-scoped.

Linked parity tracker: #2259.

Surface ID: 08-CHATPRESET-RUNTIME-new-chat-starred-apply

Actual behavior

Refactor applies starred presets for conversation and roleplay in some paths, but:

  • src/app/shell/useStartNewChat.ts resolves presetMode only for conversation or roleplay, so game starts never apply an active/starred game chat preset.
  • src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx repeats the same game -> null preset-mode skip.
  • src/features/modes/router/components/ModeHomeSurface.tsx quick-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

  1. On refactor, create or select a non-default chat-settings preset for game, mark it active/starred, and give it visible settings such as a distinct connection or preset-controlled metadata.
  2. Start a new game from the shell/sidebar or connection-gated flow.
  3. Observe the new game chat opens with initial create defaults instead of the active/starred game chat preset settings.
  4. Separately, start a new chat from the mode home quick-start path and observe no active/starred chat preset is applied on that path.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor parityscan, 2026-06-05
  • Run mode: static trace only
  • OS + version: not runtime-tested
  • Node + pnpm versions: not checked
  • Rust version, if relevant: not checked
  • Remote Runtime URL configured? not relevant to static trace
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

Parityscan proof:

Legacy behavior:

  • main:packages/client/src/components/layout/ChatSidebar.tsx:472 resolves the user's starred preset for the new-chat mode and applies it after create at main:packages/client/src/components/layout/ChatSidebar.tsx:483.
  • main:packages/client/src/components/chat/NewChatConnectionGate.tsx:51 resolves starred presets and applies them after create at main:packages/client/src/components/chat/NewChatConnectionGate.tsx:68.
  • main:packages/client/src/hooks/use-start-chat-from-character.ts:27 resolves starred presets for character starts and applies them after create at main:packages/client/src/hooks/use-start-chat-from-character.ts:41.

Refactor behavior:

  • src/app/shell/useStartNewChat.ts:88 limits presetMode to conversation and roleplay; src/app/shell/useStartNewChat.ts:108 only applies when that lookup found a preset.
  • src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx:96 limits presetMode to conversation and roleplay; src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx:110 only applies when that lookup found a preset.
  • src/features/modes/router/components/ModeHomeSurface.tsx:54 handles quick-start; src/features/modes/router/components/ModeHomeSurface.tsx:65 creates the chat and src/features/modes/router/components/ModeHomeSurface.tsx:68 opens it without any chat-preset lookup/apply.
  • src-tauri/src/seed_defaults.rs:132 seeds default chat presets for conversation, roleplay, and game.
  • src/engine/contracts/schemas/chat.schema.ts:7 includes canonical game mode.

Storage parity checked but not the source of this issue:

  • src/features/catalog/chat-presets/hooks/use-chat-presets.ts:95 sanitizes preset settings.
  • src/features/catalog/chat-presets/hooks/use-chat-presets.ts:147 enforces one active preset per mode.
  • src/features/catalog/chat-presets/hooks/use-chat-presets.ts:235 applies a preset while preserving excluded chat-specific metadata.
  • src-tauri/src/commands/storage/commands/entities.rs:1482 protects default chat presets from mutation.

Regression notes

Legacy main applied 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:

  • Starting a new game chat through the shared new-chat and connection-gate paths applies the active/starred game chat preset when one exists, or the behavior is explicitly de-scoped in #2259 with product rationale.
  • ModeHomeSurface quick-start uses the same active/starred chat-preset apply behavior as the primary new-chat path for all supported modes.
  • Existing conversation, roleplay, and character-start chat preset application still works.
  • Applying a preset continues to preserve chat-specific metadata and clear conversation promptPresetId per existing storage/apply contract.
  • Add focused proof or manual verification notes for conversation, roleplay, game, and quick-start paths.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
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 skips `game` presets 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 `game` chat presets, unless game preset runtime apply is explicitly de-scoped. Linked parity tracker: #2259. Surface ID: `08-CHATPRESET-RUNTIME-new-chat-starred-apply` ## Actual behavior Refactor applies starred presets for `conversation` and `roleplay` in some paths, but: - `src/app/shell/useStartNewChat.ts` resolves `presetMode` only for `conversation` or `roleplay`, so `game` starts never apply an active/starred game chat preset. - `src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx` repeats the same `game -> null` preset-mode skip. - `src/features/modes/router/components/ModeHomeSurface.tsx` quick-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 1. On `refactor`, create or select a non-default chat-settings preset for `game`, mark it active/starred, and give it visible settings such as a distinct connection or preset-controlled metadata. 2. Start a new game from the shell/sidebar or connection-gated flow. 3. Observe the new game chat opens with initial create defaults instead of the active/starred game chat preset settings. 4. Separately, start a new chat from the mode home quick-start path and observe no active/starred chat preset is applied on that path. ## Impact area - [x] App shell, navigation, startup, or providers - [ ] Catalog resources - [x] Chat mode - [x] Roleplay mode - [x] Game mode - [x] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `refactor` parityscan, 2026-06-05 - Run mode: static trace only - OS + version: not runtime-tested - Node + pnpm versions: not checked - Rust version, if relevant: not checked - Remote Runtime URL configured? not relevant to static trace - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video Parityscan proof: Legacy behavior: - `main:packages/client/src/components/layout/ChatSidebar.tsx:472` resolves the user's starred preset for the new-chat mode and applies it after create at `main:packages/client/src/components/layout/ChatSidebar.tsx:483`. - `main:packages/client/src/components/chat/NewChatConnectionGate.tsx:51` resolves starred presets and applies them after create at `main:packages/client/src/components/chat/NewChatConnectionGate.tsx:68`. - `main:packages/client/src/hooks/use-start-chat-from-character.ts:27` resolves starred presets for character starts and applies them after create at `main:packages/client/src/hooks/use-start-chat-from-character.ts:41`. Refactor behavior: - `src/app/shell/useStartNewChat.ts:88` limits `presetMode` to `conversation` and `roleplay`; `src/app/shell/useStartNewChat.ts:108` only applies when that lookup found a preset. - `src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx:96` limits `presetMode` to `conversation` and `roleplay`; `src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx:110` only applies when that lookup found a preset. - `src/features/modes/router/components/ModeHomeSurface.tsx:54` handles quick-start; `src/features/modes/router/components/ModeHomeSurface.tsx:65` creates the chat and `src/features/modes/router/components/ModeHomeSurface.tsx:68` opens it without any chat-preset lookup/apply. - `src-tauri/src/seed_defaults.rs:132` seeds default chat presets for `conversation`, `roleplay`, and `game`. - `src/engine/contracts/schemas/chat.schema.ts:7` includes canonical `game` mode. Storage parity checked but not the source of this issue: - `src/features/catalog/chat-presets/hooks/use-chat-presets.ts:95` sanitizes preset settings. - `src/features/catalog/chat-presets/hooks/use-chat-presets.ts:147` enforces one active preset per mode. - `src/features/catalog/chat-presets/hooks/use-chat-presets.ts:235` applies a preset while preserving excluded chat-specific metadata. - `src-tauri/src/commands/storage/commands/entities.rs:1482` protects default chat presets from mutation. ## Regression notes Legacy `main` applied 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: - Starting a new `game` chat through the shared new-chat and connection-gate paths applies the active/starred `game` chat preset when one exists, or the behavior is explicitly de-scoped in #2259 with product rationale. - `ModeHomeSurface` quick-start uses the same active/starred chat-preset apply behavior as the primary new-chat path for all supported modes. - Existing conversation, roleplay, and character-start chat preset application still works. - Applying a preset continues to preserve chat-specific metadata and clear conversation `promptPresetId` per existing storage/apply contract. - Add focused proof or manual verification notes for conversation, roleplay, game, and quick-start paths. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:26:42 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1104
No description provided.