[PR #3650] [MERGED] Resolve About Me macros and unify Cards Library UI #6033

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

📋 Pull Request Information

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

Base: staging ← Head: fix/issues-3646-3647-card-library


📝 Commits (6)

  • 7c7fc29 Fix About Me macros and unify Cards Library
  • f081713 Stabilize Cards Library failure coverage
  • d292d2c Log resolved About Me prompts in debug mode
  • 2d50bd4 Apply CodeRabbit review feedback
  • 538840c Refine Cards Library failure mock
  • 8014ef5 Merge branch 'staging' into fix/issues-3646-3647-card-library

📊 Changes

8 files changed (+267 additions, -77 deletions)

View changed files

📝 CHANGELOG.md (+3 -1)
📝 e2e/core-flows.e2e.ts (+20 -2)
📝 packages/client/src/components/bot-browser/BotBrowserView.tsx (+86 -59)
📝 packages/client/src/hooks/use-characters.ts (+5 -1)
📝 packages/server/src/routes/characters.routes.ts (+58 -14)
➕ packages/server/src/services/conversation/about-me-macros.ts (+66 -0)
📝 packages/shared/src/schemas/character.schema.ts (+2 -0)
📝 scripts/regressions/prompt.regression.ts (+27 -0)

📄 Description

Why

Conversation About Me AI Write was assembling a one-shot provider prompt outside the normal Conversation prompt pipeline, so selected card fields could leak literal macros such as {{user}}. Separately, the online Card Browser still used an older header and legacy error color instead of the shared library presentation. The file-schema crash in #3647 was reported against a pre-fix staging build and needed its existing capability-runtime coverage tied to the report.

What changed

  • resolve About Me AI Write card fields, lorebook text, chat context, and extra direction with the active character/persona macro context before provider submission
  • add prompt regression coverage for persona and character identity/card macros
  • present the online browser as Cards Library with Browse character cards online, the shared library back navigation, responsive provider controls, and chroma-aware styling
  • render Browser search failures with the configured chroma text color
  • document and link the capability table-identity/runtime quarantine fix that covers the #3647 crash

Closes #3646

Validation

  • Run pnpm check
  • Run pnpm regression:prompt
  • Run the Card Browser/Persona Library Playwright flow on desktop
  • Run the Card Browser/Persona Library Playwright flow on mobile
  • Manually verify About Me AI Write with {{user}} in persona source fields
  • Manually verify the Cards Library header, back action, provider picker, and failed-search chroma color

Summary by CodeRabbit

  • Bug Fixes

    • AI Write now performs persona-aware macro resolution for user, persona, and character fields before generating output.
    • Downloaded Maps and Conversation Calls packages no longer fail on file-native storage and now quarantine incompatible versions more safely.
    • Cards Library “search failed” and related errors show clearer, consistent panel-themed styling.
  • New Features

    • Refreshed Cards Library experience with improved headings, provider info, login indicators, and browsing feedback.
    • Added optional debug-mode support for AI Write generation.
  • Tests

    • Added E2E coverage for offline Card Browser search behavior and a macro resolution regression.

🔄 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/3650 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/15/2026 **Status:** ✅ Merged **Merged:** 7/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/issues-3646-3647-card-library` --- ### 📝 Commits (6) - [`7c7fc29`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7c7fc29f4b408a6386f895d2b6c977e6fb6c68b2) Fix About Me macros and unify Cards Library - [`f081713`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f0817133f245b9bb2fad184e2154d0939c8119e3) Stabilize Cards Library failure coverage - [`d292d2c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d292d2c74d434db9fa3d366bbe2130f986079152) Log resolved About Me prompts in debug mode - [`2d50bd4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2d50bd4312a28d7c7a67ab09fd030f1f55b3be7a) Apply CodeRabbit review feedback - [`538840c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/538840c121a30e9ebf0ecc2996f27879c81313f9) Refine Cards Library failure mock - [`8014ef5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8014ef576f1bd3588dfe17a620890dad0c2a4dae) Merge branch 'staging' into fix/issues-3646-3647-card-library ### 📊 Changes **8 files changed** (+267 additions, -77 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+3 -1) 📝 `e2e/core-flows.e2e.ts` (+20 -2) 📝 `packages/client/src/components/bot-browser/BotBrowserView.tsx` (+86 -59) 📝 `packages/client/src/hooks/use-characters.ts` (+5 -1) 📝 `packages/server/src/routes/characters.routes.ts` (+58 -14) ➕ `packages/server/src/services/conversation/about-me-macros.ts` (+66 -0) 📝 `packages/shared/src/schemas/character.schema.ts` (+2 -0) 📝 `scripts/regressions/prompt.regression.ts` (+27 -0) </details> ### 📄 Description ## Why Conversation About Me AI Write was assembling a one-shot provider prompt outside the normal Conversation prompt pipeline, so selected card fields could leak literal macros such as `{{user}}`. Separately, the online Card Browser still used an older header and legacy error color instead of the shared library presentation. The file-schema crash in #3647 was reported against a pre-fix staging build and needed its existing capability-runtime coverage tied to the report. ## What changed - resolve About Me AI Write card fields, lorebook text, chat context, and extra direction with the active character/persona macro context before provider submission - add prompt regression coverage for persona and character identity/card macros - present the online browser as **Cards Library** with **Browse character cards online**, the shared library back navigation, responsive provider controls, and chroma-aware styling - render Browser search failures with the configured chroma text color - document and link the capability table-identity/runtime quarantine fix that covers the #3647 crash Closes #3646 ## Validation - [ ] Run `pnpm check` - [ ] Run `pnpm regression:prompt` - [ ] Run the Card Browser/Persona Library Playwright flow on desktop - [ ] Run the Card Browser/Persona Library Playwright flow on mobile - [ ] Manually verify About Me AI Write with `{{user}}` in persona source fields - [ ] Manually verify the Cards Library header, back action, provider picker, and failed-search chroma color <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - AI Write now performs persona-aware macro resolution for user, persona, and character fields before generating output. - Downloaded Maps and Conversation Calls packages no longer fail on file-native storage and now quarantine incompatible versions more safely. - Cards Library “search failed” and related errors show clearer, consistent panel-themed styling. - **New Features** - Refreshed Cards Library experience with improved headings, provider info, login indicators, and browsing feedback. - Added optional debug-mode support for AI Write generation. - **Tests** - Added E2E coverage for offline Card Browser search behavior and a macro resolution regression. <!-- 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:06:26 +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#6033
No description provided.