mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7597] [MERGED] fix(agents): show only what affects the 2D and 3D Avatars on their pages #7826
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#7826
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/7597
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/avatar-agents-no-context-sources📝 Commits (2)
3f92285fix(agents): hide Context sources on the 2D and 3D Avatars pages23f3f3cfix(agents): show only what affects the 2D and 3D Avatars on their pages📊 Changes
3 files changed (+292 additions, -211 deletions)
View changed files
📝
e2e/avatar-setup.e2e.ts(+64 -1)📝
packages/client/src/components/agents/AgentEditor.tsx(+226 -208)📝
scripts/regressions/prompt.regression.ts(+2 -2)📄 Description
Linked issue
No linked issue: asked by the maintainer on 2026-10-14. She decided the same day which sections stay.
Why this change
execution: "host", and the pipeline skips host agents (agent-resolution.ts:412and:593,retry-agents-route.ts:1684and:1694). The Engine draws the avatars, and faces come from the local mood reader or the Game Master's expressions. No chat context, prompt or tool call is ever sent for them.PresetEditor.tsx:1286-1292), and that marker is always empty because the agent never produces output.generation-context.ts:224,mesh-rig.ts:175), so it stays on the 2D page.What changed
AgentEditor.tsx) no longer show:isAvatarAgent(L1966), drives every condition, including the existing Avatars setup check.prompt.regression.ts: two Storyboard source checks matched the old guard text{!isStoryboardAgent && (for Agent Budget and{!isStoryboardAgent ? (for Prompt Template. Only their expected text changed, to include the new!isAvatarAgentclause. They still check that Storyboard hides both sections.What I confirmed in code for each hidden setting, for these two agents:
agent-executor.ts,tool-resolution-runtime.ts,generate.routes.ts:5419,:5520and:12286), and the pipeline never includes host agents. The mesh layout uses a fixed 1500-token limit (mesh-rig.ts:149), not the agent's budget. The packages shipdefaultTools: [].promptTemplateandsettings.promptTemplates. The 2D agent's real prompts (blink, talking, mesh layout) are insettings.avatarGenerationTemplates(generation-context.ts:222), a separate key. The only other read is the macro preload scan (generate.routes.ts:3049), which does not send the text anywhere.PresetEditor.tsx:1292). The Roleplay HUD reads it for custom agents only (RoleplayHUDActionsMenu.tsx:546and:603).generation-context.ts:220-224). The picture tools appear only on the 2D page (AvatarAgentSetup.tsx:309).The previous "Not changed (for the maintainer to decide)" list is gone. Mari decided on 2026-10-14 to hide all of those sections and keep the 2D connection.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent (results as reported locally, not human-verified):
playwright test e2e/avatar-setup.e2e.ts -g "agent pipeline" --project=desktop-chromium, with the new test and without theAgentEditor.tsxchange: failed as expected. On the 2D Avatars page it found 1 "Pipeline Phase" heading where it expected 0.playwright test e2e/avatar-setup.e2e.ts --project=desktop-chromium --project=mobile-chromium: 6 passed (all three tests in the file on both projects). The new test also passed onmobile-webkit.pnpm regression:prompt: failed first on the Storyboard source check described above. After that expectation update: passed (3/3).run-regressions --filterforavatar-stage-logic,open-issuesandprompt-token-counters(the other regressions that readAgentEditor.tsx): passed.pnpm localization:check: passed (no new or changed copy).pnpm check: passed. Its one lint warning is already on staging, inHomeProfessorMariChat.tsx.coderabbit review --agent --committed): 1 finding (trivial), rejected. It asked for 16px text on the Connection Override select so phones don't zoom on focus. This PR doesn't change that select, it only wraps it. On touch screens,globals.css:7157-7161(@media (pointer: coarse), outside any layer) already sets everyselectto1rem, and the mobile-webkit screenshot taken during the e2e run shows the larger text.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/agents/avatars.mddoesn't describe any of the hidden sections. Its mention of "the connection set on the 2D Avatars page" (L146) is still accurate.UI evidence (if applicable)
Not attached. The e2e checks each section directly. Screenshots taken locally during the run showed 2D Avatars with Description, Avatars and Connection Override only, and 3D Avatars with Description and Avatars only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.