[GH-ISSUE #1992] [Issue]: Persona avatar surfaces bypass avatar thumbnails #975

Closed
opened 2026-10-21 05:24:33 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1992

Originally assigned to: @Promansis on GitHub.

Summary

Several persona-heavy UI surfaces render persona.avatarPath directly instead of using the existing avatar thumbnail/resolution pipeline. Tiny persona avatars in lists, setup flows, and switchers can therefore render full-size or inline images.

Expected behavior

Persona avatar surfaces that display small repeated avatars should use the same thumbnail-capable path as character avatar surfaces, including managed avatar files and inline/data avatar sources where supported.

Actual behavior

The audit found direct <img src={persona.avatarPath}> rendering in repeated or compact surfaces rather than CharacterAvatarImage, ResolvedAvatarImage, or an equivalent persona avatar wrapper.

Known examples:

  • src/features/catalog/personas/components/panel/PersonaListItem.tsx
  • src/features/modes/shared/chat-ui/components/QuickPersonaSwitcher.tsx
  • src/features/modes/shared/chat-ui/components/ChatSetupWizard.tsx

Related existing issue: #1944 covers inline avatarPath thumbnail behavior in character/avatar paths, but these persona surfaces also need to stop bypassing the thumbnail-capable UI path.

Steps to reproduce

  1. Create or import personas with large avatar images or inline avatar data.
  2. Open persona list, quick persona switcher, or chat setup persona selection surfaces.
  3. Observe that the small avatar cells render persona.avatarPath directly instead of a thumbnail URL.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor
  • Run mode: not measured; expected to affect Tauri desktop and remote runtime where large or inline persona avatars are present
  • OS + version: not confirmed
  • Node + pnpm versions: not confirmed
  • Rust version, if relevant: not confirmed
  • Remote Runtime URL configured? not confirmed
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

No screenshots or runtime measurements. Static audit evidence found direct image rendering at:

  • src/features/catalog/personas/components/panel/PersonaListItem.tsx
  • src/features/modes/shared/chat-ui/components/QuickPersonaSwitcher.tsx
  • src/features/modes/shared/chat-ui/components/ChatSetupWizard.tsx

Regression notes

Not confirmed as a regression. This appears to be a remaining coverage gap after avatar thumbnail support was added elsewhere.

Additional context

Likely fix shape:

  • Introduce or reuse a persona avatar image component that accepts avatarFilename, avatarFilePath, avatarPath, crop data, and a thumbnail size.
  • Route compact/repeated persona surfaces through that component.
  • Keep the existing avatar thumbnail ownership: UI chooses the bucket, src/shared/api/local-file-api.ts resolves embedded vs remote URLs, and Rust owns decode/cache/path safety.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Jun 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1992 Originally assigned to: @Promansis on GitHub. ## Summary Several persona-heavy UI surfaces render `persona.avatarPath` directly instead of using the existing avatar thumbnail/resolution pipeline. Tiny persona avatars in lists, setup flows, and switchers can therefore render full-size or inline images. ## Expected behavior Persona avatar surfaces that display small repeated avatars should use the same thumbnail-capable path as character avatar surfaces, including managed avatar files and inline/data avatar sources where supported. ## Actual behavior The audit found direct `<img src={persona.avatarPath}>` rendering in repeated or compact surfaces rather than `CharacterAvatarImage`, `ResolvedAvatarImage`, or an equivalent persona avatar wrapper. Known examples: - `src/features/catalog/personas/components/panel/PersonaListItem.tsx` - `src/features/modes/shared/chat-ui/components/QuickPersonaSwitcher.tsx` - `src/features/modes/shared/chat-ui/components/ChatSetupWizard.tsx` Related existing issue: #1944 covers inline `avatarPath` thumbnail behavior in character/avatar paths, but these persona surfaces also need to stop bypassing the thumbnail-capable UI path. ## Steps to reproduce 1. Create or import personas with large avatar images or inline avatar data. 2. Open persona list, quick persona switcher, or chat setup persona selection surfaces. 3. Observe that the small avatar cells render `persona.avatarPath` directly instead of a thumbnail URL. ## Impact area - [ ] App shell, navigation, startup, or providers - [x] Catalog resources - [x] Chat mode - [ ] Roleplay mode - [ ] Game mode - [x] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [x] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `refactor` - Run mode: not measured; expected to affect Tauri desktop and remote runtime where large or inline persona avatars are present - OS + version: not confirmed - Node + pnpm versions: not confirmed - Rust version, if relevant: not confirmed - Remote Runtime URL configured? not confirmed - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video No screenshots or runtime measurements. Static audit evidence found direct image rendering at: - `src/features/catalog/personas/components/panel/PersonaListItem.tsx` - `src/features/modes/shared/chat-ui/components/QuickPersonaSwitcher.tsx` - `src/features/modes/shared/chat-ui/components/ChatSetupWizard.tsx` ## Regression notes Not confirmed as a regression. This appears to be a remaining coverage gap after avatar thumbnail support was added elsewhere. ## Additional context Likely fix shape: - Introduce or reuse a persona avatar image component that accepts `avatarFilename`, `avatarFilePath`, `avatarPath`, crop data, and a thumbnail size. - Route compact/repeated persona surfaces through that component. - Keep the existing avatar thumbnail ownership: UI chooses the bucket, `src/shared/api/local-file-api.ts` resolves embedded vs remote URLs, and Rust owns decode/cache/path safety. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:24:33 +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#975
No description provided.