[PR #3417] [MERGED] Refresh Keeper vectors and extend Illustrator timeout #5928

Closed
opened 2026-10-23 04:05:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3417
Author: @SpicyMarinara
Created: 7/10/2026
Status: ✅ Merged
Merged: 7/10/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/fix-lorebook-vectorization-illustrator-timeout-3415-3416


📝 Commits (3)

  • a601fe5 Claim issues 3415 and 3416
  • 656f2bb Refresh Keeper vectors and extend Illustrator timeout
  • afd1a19 Apply CodeRabbit review suggestions

📊 Changes

3 files changed (+33 additions, -10 deletions)

View changed files

📝 packages/server/src/routes/generate.routes.ts (+12 -1)
📝 packages/server/src/routes/generate/lorebook-keeper-utils.ts (+13 -3)
📝 packages/server/src/services/agents/agent-executor.ts (+8 -6)

📄 Description

Linked issue

Closes #3415
Closes #3416

Why this change

Lorebook Keeper updates invalidate an entry's previous embedding but leave it unvectorized, forcing users to run the bulk re-vectorization action manually. The Illustrator's LLM planning call also inherits the generic five-minute agent watchdog, which is too short for some local models even though image generation itself permits much longer work.

What changed

  • Re-vectorize each eligible lorebook entry immediately after Lorebook Keeper updates it.
  • Keep Keeper persistence successful when an embedding provider is temporarily unavailable, while logging the refresh failure.
  • Give standalone and batched Illustrator planning calls a 30-minute timeout while preserving the five-minute default for other agents.

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

  • Automated validation completed with pnpm check (TypeScript, ESLint, and production builds).
  • Manually verify a vector-enabled Keeper-managed entry receives a new embedding after an update.
  • Manually verify a local Illustrator planning request can continue beyond five minutes.

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 applicable; this is server-side behavior.

Summary by CodeRabbit

  • Bug Fixes

    • Updated lorebook embeddings after existing entries are changed, improving the accuracy of future semantic recall.
    • Prevented embedding refresh failures from interrupting lorebook updates.
  • Improvements

    • Increased the available processing time for illustration-related AI requests, reducing failures caused by longer-running generations.

🔄 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/3417 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/10/2026 **Status:** ✅ Merged **Merged:** 7/10/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/fix-lorebook-vectorization-illustrator-timeout-3415-3416` --- ### 📝 Commits (3) - [`a601fe5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a601fe53af869262600d7ec48c28b4099170ee08) Claim issues 3415 and 3416 - [`656f2bb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/656f2bb8df2d083c18b3c7004659742dcb6c437c) Refresh Keeper vectors and extend Illustrator timeout - [`afd1a19`](https://github.com/Pasta-Devs/Marinara-Engine/commit/afd1a19a990c89055e855c9423c2b4a7390466ff) Apply CodeRabbit review suggestions ### 📊 Changes **3 files changed** (+33 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/generate.routes.ts` (+12 -1) 📝 `packages/server/src/routes/generate/lorebook-keeper-utils.ts` (+13 -3) 📝 `packages/server/src/services/agents/agent-executor.ts` (+8 -6) </details> ### 📄 Description ## Linked issue Closes #3415 Closes #3416 ## Why this change Lorebook Keeper updates invalidate an entry's previous embedding but leave it unvectorized, forcing users to run the bulk re-vectorization action manually. The Illustrator's LLM planning call also inherits the generic five-minute agent watchdog, which is too short for some local models even though image generation itself permits much longer work. ## What changed - Re-vectorize each eligible lorebook entry immediately after Lorebook Keeper updates it. - Keep Keeper persistence successful when an embedding provider is temporarily unavailable, while logging the refresh failure. - Give standalone and batched Illustrator planning calls a 30-minute timeout while preserving the five-minute default for other agents. ## 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 - Automated validation completed with `pnpm check` (TypeScript, ESLint, and production builds). - Manually verify a vector-enabled Keeper-managed entry receives a new embedding after an update. - Manually verify a local Illustrator planning request can continue beyond five minutes. ## 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 applicable; this is server-side behavior. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Updated lorebook embeddings after existing entries are changed, improving the accuracy of future semantic recall. * Prevented embedding refresh failures from interrupting lorebook updates. * **Improvements** * Increased the available processing time for illustration-related AI requests, reducing failures caused by longer-running generations. <!-- 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-23 04:05:15 +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#5928
No description provided.