[PR #1936] [MERGED] Fix active world info hidden scan #5348

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1936
Author: @Xelvanis
Created: 6/2/2026
Status: ✅ Merged
Merged: 6/2/2026
Merged by: @Xelvanis

Base: refactor ← Head: fix/active-world-info-hidden-scan


📝 Commits (6)

  • a75cfe8 Fix active world info hidden scan
  • 7331067 Address active world info review findings
  • 92f73cc Restore active world info scan semantics
  • fdd8d40 Align active world info triggers
  • b537851 Restore active world info scan parity
  • 7a6a9b8 Gate test scan trigger opt in

📊 Changes

5 files changed (+44 additions, -74 deletions)

View changed files

📝 src/engine/generation/active-lorebook-scanner.ts (+3 -1)
📝 src/engine/generation/active-lorebooks.ts (+25 -3)
📝 src/features/catalog/lorebooks/hooks/use-lorebooks.ts (+11 -41)
📝 src/features/runtime/visuals/components/ActiveWorldInfoButton.tsx (+1 -1)
📝 src/features/runtime/visuals/components/WorldInfoPanel.tsx (+4 -28)

📄 Description

Linked issue

Closes #1926

Why this change

  • Opening or switching into a chat mounted the Active World Info control and could run semantic active-lorebook work while the panel was closed.
  • Legacy behavior kept Active World Info as a cheap inspector of the previous generation, while semantic lorebook matching stayed on generation paths.

What changed

  • Restored Active World Info to a keyword-only inspector scan with no embedding source.
  • Scans messages before the latest assistant or narrator message so the panel reflects the lorebook entries used by the last generation instead of previewing the next turn.
  • Keeps semantic active-lorebook matching on generation paths.
  • Removes the semantic scan warning from the Active World Info panel because the inspector intentionally does not run semantic scans.

Refactor impact

Primary owner:

Runtime visuals and engine generation active-lorebook scan.

Impact areas reviewed:

  • Runtime visuals Active World Info button and panel.
  • Catalog lorebook React Query hook.
  • Engine active lorebook scanner.
  • Conversation, roleplay, and game surfaces that mount Active World Info.

Boundary notes:

  • Feature hook still calls the engine scan helper through the existing storage API path.
  • Engine scanner now accepts optional generation triggers; existing generation callers keep their default trigger behavior.
  • No raw Tauri calls, remote-runtime routing changes, Rust command changes, or provider transport changes.

Pressure points touched:

  • Shared runtime visuals panel touched.
  • GameSurface, ConversationView, and ChatRoleplaySurface reviewed as callers; not edited.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • pnpm typecheck passed.
  • pnpm check:architecture passed.
  • git diff --check passed.
  • pnpm check passed: line endings, architecture, frontend typecheck, Rust check, docs, discovery metadata, and unused export check.
  • Native Tauri manual/profile pass not run.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Bugfix to existing Active World Info behavior; no new discoverable feature or workflow added.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

No docs changes made; this restores existing Active World Info inspector semantics and does not change run commands, architecture docs, or contributor workflow.

UI evidence

No screenshots added. This changes when the inspector scan runs provider work and which messages it scans; layout is unchanged.


🔄 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/1936 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 6/2/2026 **Status:** ✅ Merged **Merged:** 6/2/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `fix/active-world-info-hidden-scan` --- ### 📝 Commits (6) - [`a75cfe8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a75cfe80bde25709cabb767680f574bce9534efc) Fix active world info hidden scan - [`7331067`](https://github.com/Pasta-Devs/Marinara-Engine/commit/733106744f5a5a0e6aca756e9edbefdcffe7e06c) Address active world info review findings - [`92f73cc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/92f73cc424bbeb09428211c21afa0ba0d9396391) Restore active world info scan semantics - [`fdd8d40`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fdd8d404862de7ae05e88bee5a4ab1940a326fa5) Align active world info triggers - [`b537851`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b53785131c6af87d96b63b8652e6ecbf53d64486) Restore active world info scan parity - [`7a6a9b8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7a6a9b8e21e86c3a6ddbfd07ce3a1f5423354b5d) Gate test scan trigger opt in ### 📊 Changes **5 files changed** (+44 additions, -74 deletions) <details> <summary>View changed files</summary> 📝 `src/engine/generation/active-lorebook-scanner.ts` (+3 -1) 📝 `src/engine/generation/active-lorebooks.ts` (+25 -3) 📝 `src/features/catalog/lorebooks/hooks/use-lorebooks.ts` (+11 -41) 📝 `src/features/runtime/visuals/components/ActiveWorldInfoButton.tsx` (+1 -1) 📝 `src/features/runtime/visuals/components/WorldInfoPanel.tsx` (+4 -28) </details> ### 📄 Description ## Linked issue Closes #1926 ## Why this change - Opening or switching into a chat mounted the Active World Info control and could run semantic active-lorebook work while the panel was closed. - Legacy behavior kept Active World Info as a cheap inspector of the previous generation, while semantic lorebook matching stayed on generation paths. ## What changed - Restored Active World Info to a keyword-only inspector scan with no embedding source. - Scans messages before the latest assistant or narrator message so the panel reflects the lorebook entries used by the last generation instead of previewing the next turn. - Keeps semantic active-lorebook matching on generation paths. - Removes the semantic scan warning from the Active World Info panel because the inspector intentionally does not run semantic scans. ## Refactor impact Primary owner: Runtime visuals and engine generation active-lorebook scan. Impact areas reviewed: - Runtime visuals Active World Info button and panel. - Catalog lorebook React Query hook. - Engine active lorebook scanner. - Conversation, roleplay, and game surfaces that mount Active World Info. Boundary notes: - Feature hook still calls the engine scan helper through the existing storage API path. - Engine scanner now accepts optional generation triggers; existing generation callers keep their default trigger behavior. - No raw Tauri calls, remote-runtime routing changes, Rust command changes, or provider transport changes. Pressure points touched: - Shared runtime visuals panel touched. - GameSurface, ConversationView, and ChatRoleplaySurface reviewed as callers; not edited. ## Validation - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - `pnpm typecheck` passed. - `pnpm check:architecture` passed. - `git diff --check` passed. - `pnpm check` passed: line endings, architecture, frontend typecheck, Rust check, docs, discovery metadata, and unused export check. - Native Tauri manual/profile pass not run. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Bugfix to existing Active World Info behavior; no new discoverable feature or workflow added. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims No docs changes made; this restores existing Active World Info inspector semantics and does not change run commands, architecture docs, or contributor workflow. ## UI evidence No screenshots added. This changes when the inspector scan runs provider work and which messages it scans; layout is unchanged. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:15:27 +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#5348
No description provided.