mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8444] [MERGED] fix: include inactive names in the characters macro #8605
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#8605
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/8444
Author: @SpicyMarinara
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/full-roster-macro-8438📝 Commits (3)
1982434docs: clarify full chat roster macro semantics124a219fix: keep full names roster separate from active character cardse3fd9cefix: normalize agent rosters and preserve Game party macro scope📊 Changes
14 files changed (+365 additions, -14 deletions)
View changed files
📝
docs/prompts/macros.md(+1 -1)📝
packages/client/src/components/chat/ChatMessage.tsx(+4 -3)📝
packages/client/src/components/chat/ConversationMessage.tsx(+3 -1)📝
packages/client/src/lib/chat-macros.ts(+15 -1)📝
packages/server/src/routes/generate.routes.ts(+4 -0)📝
packages/server/src/routes/generate/retry-agents-route.ts(+4 -0)📝
packages/server/src/services/advanced-memory.ts(+6 -2)📝
packages/server/src/services/agents/agent-executor.ts(+9 -1)📝
packages/server/src/services/prompt/macro-context.ts(+16 -1)📝
packages/shared/src/types/agent.ts(+1 -1)📝
packages/shared/src/utils/macro-engine.ts(+2 -2)📝
scripts/regressions/advanced-memory-audience.regression.ts(+15 -0)➕
scripts/regressions/full-roster-macro.regression.ts(+282 -0)📝
scripts/regressions/image-appearance-game.regression.ts(+3 -1)📄 Description
Linked issue
Closes #8438
Why this change
Disabling an off-scene character removed their name from scenario text such as
The crew consists of {{characters}}, so the setting lost its full cast. The maintainer approved distinct full-roster and active-roster semantics in https://github.com/Pasta-Devs/Marinara-Engine/issues/8438#issuecomment-6491534520.What changed
{{characters}}now includes inactive character names, so existing presets can no longer use it as an active-only roster. This follows the maintainer's decision. Use{{char}}with{{group}}when you need the current responder plus the other active characters.{{group}}limited to other active characters, including composer messages and rendered messages. Use the full names-only roster in prompt previews, generation, agent templates, and recalled summaries.Validation
Final repair head:
e3fd9cea4c3cb961e31556f20e751fa5ec8a96bf.pnpm installcompleted.pnpm checkpassed, including production build and localization checks. It reported one existing, unrelated hook-dependency warning inHomeProfessorMariChat.tsx.pnpm regression:promptpassed all three files.node scripts/run-regressions.mjs --filter full-roster-macropassed. It covers full versus active names, inactive card/reference exclusions, previews and captured provider requests, composer/display macros, renaming/removal, agent blank/padded names, fallback/escaping, and one active reader with a larger names roster.node scripts/run-regressions.mjs --filter image-appearance-gamepassed: five plain-text and eight macro preview/dispatch pairs, two historical storyboard planner cases, and the Character Tracker portrait path. The fixture includes both a legacy metadata-only party and a synchronized current session.node scripts/run-regressions.mjs --filter decision --concurrency 2passed 18/18 files. The focused roster guard also checks missing-profile and multi-profile conservative planning controls.124a2194bruntime before their respective fixes, then passed on the final head.coderabbit review --committed --base 124a2194b0236c372a0892bf20b81420e8200d27 --agentcompleted on the final head, reviewed all four repair files, and reported zero findings. The preceding full-PR local review covered all 13 files at124a2194bwith zero findings; the repair adds one existing Game regression file to the PR.Earlier UI proof at parent
124a2194bremains explicitly separate:pnpm smoke:uipassed 7/7, the macro-filtered Node suite passed 12/12, and a temporary browser harness passed 12/12 cases across Roleplay/Conversation, dark/light, desktop Chromium, mobile Chromium, and mobile WebKit. The repair changes server macro handling and regression proof; client source and documentation are unchanged from that tested parent. Browser proof was not rerun for this repair.Review trace: Game setup, recruit/remove, and checkpoint writes normally synchronize the chat's library IDs; the existing illustration reader also supports an authoritative metadata/setup party when a legacy row is empty. Activity, main-generation, and retry-agent base contexts all provide
chatCharacters; pipeline, knowledge, historical, capability, and post-reply contexts preserve it by spreading their base context. The standalone builder's fallback remains covered.Optional Dottore notes left unchanged:
parseChatMetadatareturns current normalized metadata objects directly, so memo extraction is not required to repair the demonstrated defects. The two small route roster projections remain explicit; extracting a shared abstraction would add scope without changing their behavior.pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
{{characters}}, while{{group}}lists only other active members.{{characters}}behavior./Users/marysia/.orbstack/run/docker.sockmissing). Hosted container checks are separate merge-gate evidence.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUpdated
docs/prompts/macros.md; #8443 / #8445 cover translated guides. No version or changelog change. No documentation changes in the review repair.UI evidence (if applicable)
No layout or styling changes. Parent-head browser screenshots were captured for all 12 focused cases; desktop Roleplay dark and mobile Conversation light screenshots were inspected for readable, correct roster text. Permanent executable proofs are
scripts/regressions/full-roster-macro.regression.tsandscripts/regressions/image-appearance-game.regression.ts.Combined integration validation
Latest isolated candidate
9f7e6771bae3be3e5bd26a9579c43976c991dc43(tree16723f5210f18e86de41df66b38fe6adc4ff2532) combines #8441 at4d0c8d3c, #8444 ate3fd9cea, and merged #8442 ataaa9ab0e. All 29 changed file blobs match their owning heads exactly.pnpm check, the prompt suite, 12 macro regressions, the real Game image route fixture, 18 decision regressions, card-search/pagination and memory-audience regressions all passed. Focused desktop/mobile Chromium/WebKit cases passed 9/9; shell smokes passed 7/7. Browser emulation, local fixture-provider proof, hosted checks and physical-device testing remain distinct evidence.Game scope audit: inactive flags do not apply to Game. The legacy dry-run path still derives IDs from the empty chat column and cannot select a named target; that blank-roster limitation is identical in the pre-change base. This PR restores party-aware Game callers without claiming a new legacy dry-run fallback.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.