[PR #1165] [MERGED] Fix default conversation character seed #4950

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/1165
Author: @ghost
Created: 5/24/2026
Status: ✅ Merged
Merged: 5/25/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/refactor-pr-30-default-character-seed


📝 Commits (2)

  • 2ef16e8 Migrate Refactor PR #30: Fix default conversation character seed
  • 0be2c79 Address Professor Mari seed review feedback

📊 Changes

1 file changed (+128 additions, -4 deletions)

View changed files

📝 src-tauri/src/seed_defaults.rs (+128 -4)

📄 Description

Migrated from Pasta-Devs/Marinara-Engine-Refactor#30: https://github.com/Pasta-Devs/Marinara-Engine-Refactor/pull/30
Original author: @cha1latte
Target base: Pasta-Devs/Marinara-Engine refactor
Source draft state: False
Verification after port: cargo check --manifest-path src-tauri/Cargo.toml
Port note: source updates/ tracker/evidence files were omitted because the target refactor branch removed repo-local updates guidance.


Summary

Fixes the Discord-sourced setup blocker where fresh Conversation setup had no selectable Professor Mari/default character, leaving the new-chat flow unable to reach Characters: 1.

The default seeding path now creates the built-in __professor_mari__ character when missing, and the legacy cleanup no longer deletes that active default character id on startup.

Proof

Before fix, the controlled setup repro had no selectable Professor Mari result and kept Start Chatting disabled:

Before: Professor Mari unavailable

After fix, Professor Mari appears, can be selected, and the setup flow creates a chat with exactly one character:

After: Professor Mari selected

Validation

  • CARGO_INCREMENTAL=0 cargo test --manifest-path src-tauri/Cargo.toml seeds_professor_mari_as_default_character
  • CARGO_INCREMENTAL=0 pnpm check
  • Fresh Conversation setup can select Professor Mari/default character
  • Brand-new chat reaches Characters: 1
  • Existing chat setup/settings behavior remains in scope for manual smoke verification in real Tauri

Scope Notes

No remote runtime, sync server, browser hosting, auth, Docker, SSE, /api/invoke, AI background remover, drag-and-drop, schema, version, or prompt-pipeline changes.

Summary by CodeRabbit

  • New Features

    • Professor Mari is now bundled as a built-in assistant and automatically initialized when launching the app.
  • Bug Fixes

    • Enhanced cleanup of legacy character data to remove outdated entries more effectively.

Review Change Stack


🔄 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/1165 **Author:** [@ghost](https://github.com/ghost) **Created:** 5/24/2026 **Status:** ✅ Merged **Merged:** 5/25/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/refactor-pr-30-default-character-seed` --- ### 📝 Commits (2) - [`2ef16e8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2ef16e8d5a6781b37870728a856b15001095dedc) Migrate Refactor PR #30: Fix default conversation character seed - [`0be2c79`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0be2c79d099b607e11637e01ec433598dd391e96) Address Professor Mari seed review feedback ### 📊 Changes **1 file changed** (+128 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src-tauri/src/seed_defaults.rs` (+128 -4) </details> ### 📄 Description Migrated from Pasta-Devs/Marinara-Engine-Refactor#30: https://github.com/Pasta-Devs/Marinara-Engine-Refactor/pull/30 Original author: @cha1latte Target base: Pasta-Devs/Marinara-Engine refactor Source draft state: False Verification after port: `cargo check --manifest-path src-tauri/Cargo.toml` Port note: source updates/ tracker/evidence files were omitted because the target refactor branch removed repo-local updates guidance. --- ## Summary Fixes the Discord-sourced setup blocker where fresh Conversation setup had no selectable Professor Mari/default character, leaving the new-chat flow unable to reach `Characters: 1`. The default seeding path now creates the built-in `__professor_mari__` character when missing, and the legacy cleanup no longer deletes that active default character id on startup. ## Proof Before fix, the controlled setup repro had no selectable Professor Mari result and kept **Start Chatting** disabled: ![Before: Professor Mari unavailable](https://raw.githubusercontent.com/cha1latte/Marinara-Engine-Refactor/ca40798aa18c512c4c84df3c195b012647ca4103/updates/evidence/default-character-conversation-setup/conversation-default-before.png) After fix, Professor Mari appears, can be selected, and the setup flow creates a chat with exactly one character: ![After: Professor Mari selected](https://raw.githubusercontent.com/cha1latte/Marinara-Engine-Refactor/ca40798aa18c512c4c84df3c195b012647ca4103/updates/evidence/default-character-conversation-setup/conversation-default-after.png) ## Validation - [ ] `CARGO_INCREMENTAL=0 cargo test --manifest-path src-tauri/Cargo.toml seeds_professor_mari_as_default_character` - [ ] `CARGO_INCREMENTAL=0 pnpm check` - [ ] Fresh Conversation setup can select Professor Mari/default character - [ ] Brand-new chat reaches `Characters: 1` - [ ] Existing chat setup/settings behavior remains in scope for manual smoke verification in real Tauri ## Scope Notes No remote runtime, sync server, browser hosting, auth, Docker, SSE, `/api/invoke`, AI background remover, drag-and-drop, schema, version, or prompt-pipeline changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Professor Mari is now bundled as a built-in assistant and automatically initialized when launching the app. * **Bug Fixes** * Enhanced cleanup of legacy character data to remove outdated entries more effectively. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1165?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <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#4950
No description provided.