[PR #3705] [MERGED] Move About Me writing to Professor Mari and resolve prompt macros #6063

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

📋 Pull Request Information

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

Base: staging ← Head: agent/3704-resolve-prompt-macros


📝 Commits (2)

  • cbb716c Resolve late prompt identity macros
  • 80a0d8c Move About Me writing to Professor Mari

📊 Changes

25 files changed (+268 additions, -925 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 docs/conversation/profiles.md (+5 -20)
📝 e2e/core-flows.e2e.ts (+35 -0)
➖ packages/client/src/components/characters/AboutMeSourcePicker.tsx (+0 -183)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+2 -14)
📝 packages/client/src/components/characters/ConvoProfileFields.tsx (+16 -133)
📝 packages/client/src/components/modals/AboutMeViewerModal.tsx (+8 -127)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+0 -8)
📝 packages/client/src/hooks/use-characters.ts (+0 -36)
📝 packages/server/src/db/seed-mari.ts (+8 -6)
📝 packages/server/src/routes/characters.routes.ts (+1 -203)
📝 packages/server/src/routes/generate.routes.ts (+24 -5)
📝 packages/server/src/routes/generate/dry-run-route.ts (+3 -0)
➖ packages/server/src/services/conversation/about-me-macros.ts (+0 -66)
📝 packages/server/src/services/conversation/character-commands.ts (+13 -4)
📝 packages/server/src/services/generation/lorebook-generation-runtime.ts (+3 -1)
📝 packages/server/src/services/generation/professor-mari-command-runtime.ts (+4 -0)
📝 packages/server/src/services/mari-db/mari-db.service.ts (+18 -6)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+4 -2)
📝 packages/server/src/services/prompt/index.ts (+1 -0)

...and 5 more files

📄 Description

Why

This PR combines two maintainer-requested changes already completed on isolated branches.

First, the Conversation About Me editor should no longer own a separate AI Write model route, connection selector, or button. Professor Mari should write Character and Persona About Me text through her normal workspace abilities and save it into the same fields.

Second, fixes #3704. Opening greetings and /guided instructions were normally macro-expanded during early history or helper assembly, but prompt content added later did not have a final macro-resolution boundary. The raw guided instruction was also reused for lorebook routing and embedding scans, allowing captured model-facing requests to retain {{user}} or {{char}}.

What changed

Professor Mari About Me writing

  • removed the About Me AI Write button, source picker, connection setting, dedicated generation route, schema, and client hook
  • taught Professor Mari to write and update About Me sections for Characters and Personas through workspace commands
  • retained direct manual editing and the existing About Me viewer
  • updated Conversation profile documentation, changelog notes, browser coverage, and open-issue regressions

Prompt macro resolution

  • resolve provider-bound prompt messages one final time after late injections
  • scope that final pass to the actual responding character, preserving correct group-chat {{char}} and card-field values
  • keep Peek Prompt aligned with the live provider request
  • resolve /guided text before lorebook routing and embedding scans without committing macro variable writes
  • add regressions for greeting history, late guided injections, per-character scoping, provider-boundary wiring, and lorebook scan input

Validation already completed

  • pnpm check
  • pnpm --filter @marinara-engine/server lint
  • pnpm regression:prompt
  • pnpm regression:issues
  • focused Playwright coverage for Conversation About Me
  • pnpm version:check

Manual verification

  • Manually ask Professor Mari to write a Character About Me and verify the field is updated.
  • Manually ask Professor Mari to write a Persona About Me and verify the field is updated.
  • Manually confirm the old AI Write button and model connection setting are absent.
  • Manually start a Roleplay chat whose greeting contains {{user}} and {{char}}, then inspect Peek Prompt.
  • Manually run /guided and inspect the provider request.
  • Manually verify a targeted Individual-group responder resolves {{char}} to that character.

🔄 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/3705 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/16/2026 **Status:** ✅ Merged **Merged:** 7/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/3704-resolve-prompt-macros` --- ### 📝 Commits (2) - [`cbb716c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cbb716c9406841d8b37fdadd2c8582781a819239) Resolve late prompt identity macros - [`80a0d8c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/80a0d8c4f0e1ba2e2ed432023a2ab069863236b8) Move About Me writing to Professor Mari ### 📊 Changes **25 files changed** (+268 additions, -925 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `docs/conversation/profiles.md` (+5 -20) 📝 `e2e/core-flows.e2e.ts` (+35 -0) ➖ `packages/client/src/components/characters/AboutMeSourcePicker.tsx` (+0 -183) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+2 -14) 📝 `packages/client/src/components/characters/ConvoProfileFields.tsx` (+16 -133) 📝 `packages/client/src/components/modals/AboutMeViewerModal.tsx` (+8 -127) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+0 -8) 📝 `packages/client/src/hooks/use-characters.ts` (+0 -36) 📝 `packages/server/src/db/seed-mari.ts` (+8 -6) 📝 `packages/server/src/routes/characters.routes.ts` (+1 -203) 📝 `packages/server/src/routes/generate.routes.ts` (+24 -5) 📝 `packages/server/src/routes/generate/dry-run-route.ts` (+3 -0) ➖ `packages/server/src/services/conversation/about-me-macros.ts` (+0 -66) 📝 `packages/server/src/services/conversation/character-commands.ts` (+13 -4) 📝 `packages/server/src/services/generation/lorebook-generation-runtime.ts` (+3 -1) 📝 `packages/server/src/services/generation/professor-mari-command-runtime.ts` (+4 -0) 📝 `packages/server/src/services/mari-db/mari-db.service.ts` (+18 -6) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+4 -2) 📝 `packages/server/src/services/prompt/index.ts` (+1 -0) _...and 5 more files_ </details> ### 📄 Description ## Why This PR combines two maintainer-requested changes already completed on isolated branches. First, the Conversation About Me editor should no longer own a separate AI Write model route, connection selector, or button. Professor Mari should write Character and Persona About Me text through her normal workspace abilities and save it into the same fields. Second, fixes #3704. Opening greetings and `/guided` instructions were normally macro-expanded during early history or helper assembly, but prompt content added later did not have a final macro-resolution boundary. The raw guided instruction was also reused for lorebook routing and embedding scans, allowing captured model-facing requests to retain `{{user}}` or `{{char}}`. ## What changed ### Professor Mari About Me writing - removed the About Me AI Write button, source picker, connection setting, dedicated generation route, schema, and client hook - taught Professor Mari to write and update About Me sections for Characters and Personas through workspace commands - retained direct manual editing and the existing About Me viewer - updated Conversation profile documentation, changelog notes, browser coverage, and open-issue regressions ### Prompt macro resolution - resolve provider-bound prompt messages one final time after late injections - scope that final pass to the actual responding character, preserving correct group-chat `{{char}}` and card-field values - keep Peek Prompt aligned with the live provider request - resolve `/guided` text before lorebook routing and embedding scans without committing macro variable writes - add regressions for greeting history, late guided injections, per-character scoping, provider-boundary wiring, and lorebook scan input ## Validation already completed - `pnpm check` - `pnpm --filter @marinara-engine/server lint` - `pnpm regression:prompt` - `pnpm regression:issues` - focused Playwright coverage for Conversation About Me - `pnpm version:check` ## Manual verification - [ ] Manually ask Professor Mari to write a Character About Me and verify the field is updated. - [ ] Manually ask Professor Mari to write a Persona About Me and verify the field is updated. - [ ] Manually confirm the old AI Write button and model connection setting are absent. - [ ] Manually start a Roleplay chat whose greeting contains `{{user}}` and `{{char}}`, then inspect Peek Prompt. - [ ] Manually run `/guided` and inspect the provider request. - [ ] Manually verify a targeted Individual-group responder resolves `{{char}}` to that character. --- <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:44 +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#6063
No description provided.