[PR #1164] [MERGED] Normalize boolish persisted config flags #4949

Closed
opened 2026-10-22 04:11:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1164
Author: @ghost
Created: 5/24/2026
Status: ✅ Merged
Merged: 5/24/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/refactor-pr-17-boolish-config


📝 Commits (1)

  • f244f11 Migrate Refactor PR #17: Normalize boolish persisted config flags

📊 Changes

11 files changed (+47 additions, -19 deletions)

View changed files

📝 src/engine/generation/context.ts (+4 -2)
📝 src/engine/modes/chat/core/summaries/auto-summary.service.ts (+5 -1)
📝 src/engine/modes/chat/schedules/schedule.service.ts (+5 -2)
📝 src/engine/modes/roleplay/scene/scene-service.ts (+5 -2)
📝 src/features/catalog/chats/hooks/use-chats.ts (+4 -1)
📝 src/features/catalog/presets/components/PresetsPanel.tsx (+3 -1)
📝 src/features/catalog/presets/hooks/use-presets.ts (+8 -1)
📝 src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx (+1 -3)
📝 src/features/modes/shared/chat-ui/components/QuickConnectionSwitcher.tsx (+4 -2)
📝 src/features/modes/shared/chat-ui/components/QuickSwitcherMobile.tsx (+4 -2)
📝 src/features/shell/connections/components/ConnectionsPanel.tsx (+4 -2)

📄 Description

Migrated from Pasta-Devs/Marinara-Engine-Refactor#17: https://github.com/Pasta-Devs/Marinara-Engine-Refactor/pull/17
Original author: @Promansis
Target base: Pasta-Devs/Marinara-Engine refactor
Source draft state: False
Verification after port: pnpm typecheck
Port note: source updates/ tracker/evidence files were omitted because the target refactor branch removed repo-local updates guidance.


Summary

  • Normalize persisted boolish reads for connection random-pool membership across connection UI, quick switchers, and dependent random/default connection resolvers.
  • Normalize prompt preset default reads so boolean defaults show the default badge and are found by default preset lookup.
  • Record local bug ownership/status for the two boolean configuration issues.

Root Cause

Some persisted configuration readers only treated string "true" as enabled, while current writers and engine contracts use boolean true. That made UI state and resolver state diverge for random-pool membership and prompt preset defaults.

Validation

  • pnpm typecheck
  • git diff --check
  • Searched for remaining strict useForRandom, isDefault, and default equality checks in src/features and src/engine.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1164 **Author:** [@ghost](https://github.com/ghost) **Created:** 5/24/2026 **Status:** ✅ Merged **Merged:** 5/24/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/refactor-pr-17-boolish-config` --- ### 📝 Commits (1) - [`f244f11`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f244f116ebd23ccdc10476aed3cbedf8ce64256e) Migrate Refactor PR #17: Normalize boolish persisted config flags ### 📊 Changes **11 files changed** (+47 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `src/engine/generation/context.ts` (+4 -2) 📝 `src/engine/modes/chat/core/summaries/auto-summary.service.ts` (+5 -1) 📝 `src/engine/modes/chat/schedules/schedule.service.ts` (+5 -2) 📝 `src/engine/modes/roleplay/scene/scene-service.ts` (+5 -2) 📝 `src/features/catalog/chats/hooks/use-chats.ts` (+4 -1) 📝 `src/features/catalog/presets/components/PresetsPanel.tsx` (+3 -1) 📝 `src/features/catalog/presets/hooks/use-presets.ts` (+8 -1) 📝 `src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx` (+1 -3) 📝 `src/features/modes/shared/chat-ui/components/QuickConnectionSwitcher.tsx` (+4 -2) 📝 `src/features/modes/shared/chat-ui/components/QuickSwitcherMobile.tsx` (+4 -2) 📝 `src/features/shell/connections/components/ConnectionsPanel.tsx` (+4 -2) </details> ### 📄 Description Migrated from Pasta-Devs/Marinara-Engine-Refactor#17: https://github.com/Pasta-Devs/Marinara-Engine-Refactor/pull/17 Original author: @Promansis Target base: Pasta-Devs/Marinara-Engine refactor Source draft state: False Verification after port: `pnpm typecheck` Port note: source updates/ tracker/evidence files were omitted because the target refactor branch removed repo-local updates guidance. --- ## Summary - Normalize persisted boolish reads for connection random-pool membership across connection UI, quick switchers, and dependent random/default connection resolvers. - Normalize prompt preset default reads so boolean defaults show the default badge and are found by default preset lookup. - Record local bug ownership/status for the two boolean configuration issues. ## Root Cause Some persisted configuration readers only treated string `"true"` as enabled, while current writers and engine contracts use boolean `true`. That made UI state and resolver state diverge for random-pool membership and prompt preset defaults. ## Validation - `pnpm typecheck` - `git diff --check` - Searched for remaining strict `useForRandom`, `isDefault`, and `default` equality checks in `src/features` and `src/engine`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:57 +07:00
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#4949
No description provided.