[GH-ISSUE #1562] Active World Info masks scan errors as no active entries #804

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

Originally created by @Xelvanis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1562

Originally assigned to: @Promansis on GitHub.

Summary

Active World Info can silently show "No active entries for this chat" when its scan fails before activation. In the verified case, the chat had active lorebook entries, but its connectionId pointed at a missing connection, so the active-lorebook scan failed while the panel rendered the empty state instead of an error.

Expected behavior

Active World Info should either:

  • show the active lorebook entries that can be determined without provider-send wiring, or
  • show a visible scan error when prompt assembly cannot run.

It should not present a failed scan as "No active entries".

Actual behavior

The panel showed:

Active World Info

No active entries for this chat

The same disposable chat normally shows four active entries, and the saved provider prompt snapshot for the prior generation includes the expected lore block.

Source trace:

  • scanActiveLorebookEntries(...) in src/engine/generation/active-lorebooks.ts calls resolveGenerationConnection(...).
  • resolveGenerationConnection(...) throws when the chat points to a missing connection.
  • WorldInfoPanel reads data/isLoading but does not render isError/error, so the query failure falls through to the empty state.

Steps to reproduce

  1. In Tauri desktop dev, use a chat with an active lorebook entry that normally appears in Active World Info.
  2. Set that chat's connectionId to a missing/deleted connection id.
  3. Open the chat's Active World Info panel.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor at f120eb33
  • Run mode: Tauri desktop dev
  • OS + version: Windows
  • Node + pnpm versions: not relevant
  • Rust version, if relevant: not relevant
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: chat was temporarily pointed at a missing connection id

Logs, screenshots, or video

No public attachment. Local native QA observed the panel render "No active entries for this chat" after the scan failed due the missing chat connection.

Regression notes

Unknown.

Additional context

This was found during the Lorebooks native Tauri QA pass. The disposable chat was restored to its original connection after the probe.

The likely fix is to render query errors in WorldInfoPanel and consider whether scanActiveLorebookEntries should depend on resolving a generation connection when the user only asked to inspect active lorebook entries.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (May 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1562 Originally assigned to: @Promansis on GitHub. ## Summary Active World Info can silently show "No active entries for this chat" when its scan fails before activation. In the verified case, the chat had active lorebook entries, but its `connectionId` pointed at a missing connection, so the active-lorebook scan failed while the panel rendered the empty state instead of an error. ## Expected behavior Active World Info should either: - show the active lorebook entries that can be determined without provider-send wiring, or - show a visible scan error when prompt assembly cannot run. It should not present a failed scan as "No active entries". ## Actual behavior The panel showed: ```text Active World Info No active entries for this chat ``` The same disposable chat normally shows four active entries, and the saved provider prompt snapshot for the prior generation includes the expected lore block. Source trace: - `scanActiveLorebookEntries(...)` in `src/engine/generation/active-lorebooks.ts` calls `resolveGenerationConnection(...)`. - `resolveGenerationConnection(...)` throws when the chat points to a missing connection. - `WorldInfoPanel` reads `data`/`isLoading` but does not render `isError`/`error`, so the query failure falls through to the empty state. ## Steps to reproduce 1. In Tauri desktop dev, use a chat with an active lorebook entry that normally appears in Active World Info. 2. Set that chat's `connectionId` to a missing/deleted connection id. 3. Open the chat's Active World Info panel. ## Impact area <!-- Check the areas you think are relevant. Leave uncertain items unchecked. --> - [ ] App shell, navigation, startup, or providers - [x] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [x] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [x] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `refactor` at `f120eb33` - Run mode: Tauri desktop dev - OS + version: Windows - Node + pnpm versions: not relevant - Rust version, if relevant: not relevant - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: chat was temporarily pointed at a missing connection id ## Logs, screenshots, or video No public attachment. Local native QA observed the panel render "No active entries for this chat" after the scan failed due the missing chat connection. ## Regression notes Unknown. ## Additional context This was found during the Lorebooks native Tauri QA pass. The disposable chat was restored to its original connection after the probe. The likely fix is to render query errors in `WorldInfoPanel` and consider whether `scanActiveLorebookEntries` should depend on resolving a generation connection when the user only asked to inspect active lorebook entries. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:21:22 +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#804
No description provided.