[PR #3841] [MERGED] Unify Roleplay Active Context lorebook details #6125

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

📋 Pull Request Information

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

Base: staging ← Head: fix/roleplay-active-context-provenance


📝 Commits (3)

  • 70add9b chore: start roleplay active context parity
  • 58b5900 fix: enrich roleplay active context details
  • d02021f Merge remote-tracking branch 'origin/staging' into fix/roleplay-active-context-provenance

📊 Changes

4 files changed (+211 additions, -152 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+111 -0)
📝 packages/client/src/components/chat/ChatRoleplayPanels.tsx (+62 -50)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+37 -102)

📄 Description

Why

Roleplay Active Context rendered only a simplified lorebook list even though Conversation and Game already exposed activation sources, matched keys, semantic scores, current-location grouping, budget-skipped reasons, and expandable entry content. Users should retain the same lorebook debugging depth across modes.

This PR intentionally covers only the Roleplay Active Context parity request from #3840. Peek Prompt provenance, backend scan payloads, and recursion metadata remain out of scope.

Refs #3840

What changed

  • extracted the existing rich lorebook-entry content from the shared Active Context panel so Roleplay can reuse it directly
  • preserved Roleplay's Character, Lorebook, and Preset resource links while replacing its duplicate simplified lore rows
  • kept the wider rich panel within desktop and mobile viewport bounds
  • marked the portaled Roleplay panel as floating so expandable lore and budget details remain interactive inside the mobile toolbar overflow
  • added desktop and mobile regression coverage for sources, matched keys, semantic scores, location grouping, budget skips, expanded content, and responsive bounds

Automated validation

  • pnpm check — passed
  • focused desktop/mobile Active Context Playwright coverage — 2 passed
  • pnpm smoke:ui — new coverage passed in both projects; 73 passed and 46 skipped overall, with one unrelated mobile Noodle pointer-interception timeout
  • isolated rerun of that Noodle test — passed
  • git diff --check — passed

Test plan

  • Manually compare Roleplay Active Context with Conversation and Game
  • Manually verify activation sources, matched keys, semantic scores, and location badges
  • Manually verify budget-skipped reasons and expandable entry content
  • Manually verify empty state
  • Manually verify desktop and mobile layouts
  • Run pnpm check
  • Run pnpm smoke:ui

Summary by CodeRabbit

  • New Features

    • Enhanced Roleplay’s Active Context panel with richer lorebook details, including activation sources, matched keywords, semantic matches, and current-location grouping.
    • Added expandable entry details with clearer activation provenance and explanations for entries skipped due to budget limits.
    • Improved the panel layout across desktop and mobile views, with token counts and active lore visibility.
  • Bug Fixes

    • Aligned Active Context lorebook information with Conversation and Game behavior for more consistent results.

🔄 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/3841 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/19/2026 **Status:** ✅ Merged **Merged:** 7/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/roleplay-active-context-provenance` --- ### 📝 Commits (3) - [`70add9b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/70add9b0c42733375297d93c4ddb7a16651fcace) chore: start roleplay active context parity - [`58b5900`](https://github.com/Pasta-Devs/Marinara-Engine/commit/58b59001dd52f1558b353d7af47dea026e047a90) fix: enrich roleplay active context details - [`d02021f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d02021f94a7e1ba003f826e24ec1e302a506d0a7) Merge remote-tracking branch 'origin/staging' into fix/roleplay-active-context-provenance ### 📊 Changes **4 files changed** (+211 additions, -152 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+111 -0) 📝 `packages/client/src/components/chat/ChatRoleplayPanels.tsx` (+62 -50) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+37 -102) </details> ### 📄 Description ## Why Roleplay Active Context rendered only a simplified lorebook list even though Conversation and Game already exposed activation sources, matched keys, semantic scores, current-location grouping, budget-skipped reasons, and expandable entry content. Users should retain the same lorebook debugging depth across modes. This PR intentionally covers only the Roleplay Active Context parity request from #3840. Peek Prompt provenance, backend scan payloads, and recursion metadata remain out of scope. Refs #3840 ## What changed - extracted the existing rich lorebook-entry content from the shared Active Context panel so Roleplay can reuse it directly - preserved Roleplay's Character, Lorebook, and Preset resource links while replacing its duplicate simplified lore rows - kept the wider rich panel within desktop and mobile viewport bounds - marked the portaled Roleplay panel as floating so expandable lore and budget details remain interactive inside the mobile toolbar overflow - added desktop and mobile regression coverage for sources, matched keys, semantic scores, location grouping, budget skips, expanded content, and responsive bounds ## Automated validation - `pnpm check` — passed - focused desktop/mobile Active Context Playwright coverage — 2 passed - `pnpm smoke:ui` — new coverage passed in both projects; 73 passed and 46 skipped overall, with one unrelated mobile Noodle pointer-interception timeout - isolated rerun of that Noodle test — passed - `git diff --check` — passed ## Test plan - [ ] Manually compare Roleplay Active Context with Conversation and Game - [ ] Manually verify activation sources, matched keys, semantic scores, and location badges - [ ] Manually verify budget-skipped reasons and expandable entry content - [ ] Manually verify empty state - [ ] Manually verify desktop and mobile layouts - [ ] Run `pnpm check` - [ ] Run `pnpm smoke:ui` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced Roleplay’s **Active Context** panel with richer lorebook details, including activation sources, matched keywords, semantic matches, and current-location grouping. - Added expandable entry details with clearer activation provenance and explanations for entries skipped due to budget limits. - Improved the panel layout across desktop and mobile views, with token counts and active lore visibility. - **Bug Fixes** - Aligned Active Context lorebook information with Conversation and Game behavior for more consistent results. <!-- 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:07:18 +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#6125
No description provided.