mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2294] [Issue]: Character Tracker "Auto-generate avatars" toggle is a dead control (NPC portraits are never generated) #1129
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#1129
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?
Originally created by @Romuromylus on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2294
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The Character Tracker agent's "Auto-generate avatars" setting (
autoGenerateAvatars) is exposed in the roleplay HUD and the agent editor and persists when toggled, but no code path consumes it. Enabling it generates zero NPC portraits, unlike main which auto-generates them.Expected behavior
When "Auto-generate avatars" is enabled on the Character Tracker agent and an image connection is configured, present NPCs that lack an avatar but have an appearance description should get portraits auto-generated (fire-and-forget) and streamed back into the tracker, in both roleplay and game modes.
Actual behavior
Toggling the control only persists
settings.autoGenerateAvatars = true. Nothing reads it to trigger generation, so NPC portraits are never auto-generated and the user must manually upload every avatar. The toggle and its help text ("the Character Tracker will automatically generate portrait images for NPCs that don't have an avatar") are a falsely-advertised, dead control.Steps to reproduce
Impact area
Environment
f56a3774(compared against main @b4ab97fb)Logs, screenshots, or video
n/a (static source comparison of main vs refactor)
Regression notes
Worked in main. Main
packages/server/src/routes/generate.routes.ts:8951-9040implements the fire-and-forget auto-gen: gated oncharTrackerAgent.settings.autoGenerateAvatars && imageConnectionId(8953-8955), filters present characters needing avatars (!avatarPath, non-manual id, has name + appearance; 8956-8962), generates viagenerateImage(8989-8997), saves under the NPC avatar dir (9004-9006), then re-persists and streams agame_state_patchback to the client (9017-9031).Refactor: the setting is read only to render and persist the toggle.
src/features/runtime/world-state/hooks/use-tracker-character-avatar-actions.ts:65derivesautoGenerateCharacterAvatars;:67-76toggleAutoGenerateCharacterAvatarsonly flips the persisted key;uploadCharacterAvatar(:78-132) is manual upload only (npcAvatarApi.upload). The derived flag is consumed only by button rendering insrc/features/modes/roleplay/components/RoleplayHUDCharactersTrackerSection.tsx:136,140andsrc/features/runtime/tracker/components/TrackerSectionList.tsx:119,129, and persisted fromsrc/features/catalog/agents/components/AgentEditor.tsx:297,547. The help text promising auto-generation is atAgentEditor.tsx:1089. GreppingautoGenerateAvatars/autoGenerateCharacterAvatarsacross the whole refactor tree (src + src-tauri incl crates) finds no generation trigger. The only avatar-generation entry point (avatar_generationcommand,src-tauri/src/commands/storage/images.rs) is a manual request handler with no tracker-settings-keyed caller, and the game-modegeneratedNpcAvatarsflow is gated onenableSpriteGeneration, notautoGenerateAvatars.Additional context
Two ways to resolve: wire
autoGenerateAvatarsinto the character-tracker result path so it generates portraits as main does, or remove the toggle and help text so the UI does not advertise a feature that currently does nothing.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jun 6, 2026):
Let's wire autoGenerateAvatars into the character-tracker result path.
@SpicyMarinara commented on GitHub (Jun 6, 2026):
Fixed on refactor in commit
1844810e.What changed:
Verification: