mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3813] [MERGED] Add logical group macros and fix tracker retry persistence #6113
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3813
Author: @SpicyMarinara
Created: 7/19/2026
Status: ✅ Merged
Merged: 7/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/conditional-macro-logic📝 Commits (2)
e91c014Add logical conditional macros7f48675Apply CodeRabbit macro review suggestions📊 Changes
14 files changed (+541 additions, -71 deletions)
View changed files
📝
CHANGELOG.md(+5 -0)📝
docs/prompts/conditional-prompts.md(+33 -1)📝
docs/prompts/macros.md(+5 -0)📝
packages/client/src/components/panels/SettingsPanel.tsx(+2 -2)📝
packages/client/src/components/ui/MacroTextarea.tsx(+3 -3)📝
packages/client/src/lib/slash-commands.ts(+1 -1)📝
packages/server/src/routes/generate.routes.ts(+2 -0)📝
packages/server/src/routes/generate/dry-run-route.ts(+2 -0)📝
packages/server/src/routes/generate/retry-agents-route.ts(+51 -31)📝
packages/server/src/services/prompt/assembler.ts(+3 -0)📝
packages/server/src/services/prompt/macro-context.ts(+6 -0)📝
packages/shared/src/utils/macro-engine.ts(+283 -33)📝
scripts/regressions/prompt.regression.ts(+121 -0)📝
scripts/regressions/roleplay-streaming.regression.ts(+24 -0)📄 Description
Linked issue
Closes #3812
Why this change
What changed
||,&&, parentheses, and equality-list shorthand to conditional prompt macros.{{group}}, preserving the full active character roster through targeted Roleplay generation and Peek Prompt assembly while excluding only the current responder.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
{{group}}resolved toPowers That Be, Maukie, while the same-named active persona remained available separately through{{user}}.pnpm check,pnpm regression:prompt,pnpm regression:roleplay,pnpm smoke:ui(72 passed, 46 intentionally skipped),pnpm version:check, andgit diff --check.Docs and release impact
Prompt macro documentation and
CHANGELOG.mdare updated. This PR does not bump the application version.UI evidence (if applicable)
No screenshot is attached. The Settings change reuses the existing
mari-chrome-texttoken on two installed-item name labels and was manually confirmed on the combined branch.Risk notes
Prompt assembly is the highest-risk path touched. Current and targeted/manual Roleplay paths are covered by regression checks and the saved-preset probe; Peek Prompt receives the same full-roster input. Existing identity macros remain unchanged.
Summary by CodeRabbit
New Features
{{group}}for listing other active chat characters.||,&&, parentheses, and equality-list shorthand.Bug Fixes
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.