[GH-ISSUE #2582] Port nested lorebook folders to staging (from refactor #2353) #1275

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

Originally created by @kolacheee on GitHub (Jun 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2582

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Port nested lorebook folders to staging. Shipped to refactor in #2353. staging reserves the parentFolderId field but currently rejects it (400) — the nested-folder feature itself is not implemented.

Why

Lorebook folders in staging are flat. This adds true nesting (folders within folders) for organizing large lorebooks, including correct behavior for the disabled-folder scanner walking ancestors so a disabled parent disables its descendants.

Scope (Node re-implementation)

  • shared: activate parentFolderId in the lorebook folder type/schema (currently reserved).
  • server: accept + validate parentFolderId (cycle prevention, existence), persist the tree; update the disabled-folder scanner to walk ancestors (packages/server/src/services/storage/lorebooks.storage.ts).
  • client: nested folder tree UI, move-into-folder, reorder across levels.
  • Note: re-implementation on the Node stack.

Dependencies

None (groundwork field parentFolderId already reserved in staging).

Reference

  • Source: refactor #2353 — "feat: nested lorebook folders"
Originally created by @kolacheee on GitHub (Jun 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2582 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Port **nested lorebook folders** to `staging`. Shipped to `refactor` in #2353. `staging` reserves the `parentFolderId` field but currently **rejects** it (400) — the nested-folder feature itself is not implemented. ## Why Lorebook folders in `staging` are flat. This adds true **nesting** (folders within folders) for organizing large lorebooks, including correct behavior for the disabled-folder scanner walking ancestors so a disabled parent disables its descendants. ## Scope (Node re-implementation) - **shared**: activate `parentFolderId` in the lorebook folder type/schema (currently reserved). - **server**: accept + validate `parentFolderId` (cycle prevention, existence), persist the tree; update the disabled-folder scanner to walk ancestors (`packages/server/src/services/storage/lorebooks.storage.ts`). - **client**: nested folder tree UI, move-into-folder, reorder across levels. - Note: re-implementation on the Node stack. ## Dependencies None (groundwork field `parentFolderId` already reserved in `staging`). ## Reference - Source: refactor #2353 — "feat: nested lorebook folders"
bsakaguchi 2026-10-21 05:30:32 +07:00
  • closed this issue
  • added the
    in-pr
    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#1275
No description provided.