[PR #2630] [MERGED] [codex] Migrate extended descriptions to lorebooks #5695

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2630
Author: @SpicyMarinara
Created: 6/18/2026
Status: ✅ Merged
Merged: 6/18/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/migrate-extended-descriptions-lorebooks


📝 Commits (1)

  • bc7496d Migrate extended descriptions to lorebooks

📊 Changes

6 files changed (+342 additions, -19 deletions)

View changed files

📝 packages/client/src/components/characters/CharacterEditor.tsx (+1 -9)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+1 -1)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+1 -9)
📝 packages/server/src/app.ts (+2 -0)
📝 packages/server/src/services/import/st-character.importer.ts (+1 -0)
➕ packages/server/src/services/lorebook/extended-descriptions-migration.ts (+336 -0)

📄 Description

Linked issue

No linked issue yet. This PR bundles maintainer-requested fixes from the current bugfix pass.

Why this change

  • Preserve legacy Extended Descriptions after the editor surface was removed by migrating them into character-linked lorebooks.
  • Remove duplicated action controls from the character and persona editor headers.
  • Move Scoped Regex Scripts lower in Chat Settings, just before mode-specific sections.

What changed

  • Added a startup migration that creates a character-linked lorebook for legacy altDescriptions / descriptionExtensions, with each description becoming its own constant lorebook entry.
  • Preserved legacy unknown ST character extensions during import so old extended descriptions can still be migrated.
  • Removed the duplicate lower action row from character and persona editors while keeping the shared top action group.
  • Reordered Scoped Regex Scripts below Group Chat in Chat Settings.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • arch -x86_64 pnpm check passed locally.
  • Temp file-storage migration proof passed locally: legacy extended descriptions migrated into one character-linked lorebook, inactive descriptions stayed disabled, duplicate legacy alias content was deduped, and a second migration run was idempotent.
  • Browser/manual UI pass not run in this environment.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Not captured.

Summary by CodeRabbit

  • New Features

    • Character extended descriptions now migrate to lorebook entries for better organization and accessibility.
  • Bug Fixes

    • Character imports now preserve additional extension fields during the import process.
  • Style

    • Reordered chat settings sections for improved organization.
    • Streamlined header layouts in character and persona editors.

🔄 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/2630 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 6/18/2026 **Status:** ✅ Merged **Merged:** 6/18/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/migrate-extended-descriptions-lorebooks` --- ### 📝 Commits (1) - [`bc7496d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bc7496d4a9c78b7774624fae5313abaa33a5e5d1) Migrate extended descriptions to lorebooks ### 📊 Changes **6 files changed** (+342 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+1 -9) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+1 -1) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+1 -9) 📝 `packages/server/src/app.ts` (+2 -0) 📝 `packages/server/src/services/import/st-character.importer.ts` (+1 -0) ➕ `packages/server/src/services/lorebook/extended-descriptions-migration.ts` (+336 -0) </details> ### 📄 Description ## Linked issue No linked issue yet. This PR bundles maintainer-requested fixes from the current bugfix pass. ## Why this change - Preserve legacy Extended Descriptions after the editor surface was removed by migrating them into character-linked lorebooks. - Remove duplicated action controls from the character and persona editor headers. - Move Scoped Regex Scripts lower in Chat Settings, just before mode-specific sections. ## What changed - Added a startup migration that creates a character-linked lorebook for legacy `altDescriptions` / `descriptionExtensions`, with each description becoming its own constant lorebook entry. - Preserved legacy unknown ST character `extensions` during import so old extended descriptions can still be migrated. - Removed the duplicate lower action row from character and persona editors while keeping the shared top action group. - Reordered Scoped Regex Scripts below Group Chat in Chat Settings. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `arch -x86_64 pnpm check` passed locally. - Temp file-storage migration proof passed locally: legacy extended descriptions migrated into one character-linked lorebook, inactive descriptions stayed disabled, duplicate legacy alias content was deduped, and a second migration run was idempotent. - Browser/manual UI pass not run in this environment. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Not captured. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Character extended descriptions now migrate to lorebook entries for better organization and accessibility. * **Bug Fixes** * Character imports now preserve additional extension fields during the import process. * **Style** * Reordered chat settings sections for improved organization. * Streamlined header layouts in character and persona editors. <!-- 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:18:36 +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#5695
No description provided.