[GH-ISSUE #1944] [Issue]: Inline avatarPath images do not use avatar thumbnails #952

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

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

Originally assigned to: @Promansis on GitHub.

Summary

Inline avatar images stored only in avatarPath are displayed as full data:image/... sources instead of using the avatar thumbnail cache. This appears to affect legacy/imported avatar data and may also affect malformed scheme-wrapped inline values such as *://data:....

Expected behavior

Character/avatar list surfaces that request thumbnails should use the same thumbnail behavior for inline avatarPath images as they do for managed avatar files.

Actual behavior

The thumbnail path only considers avatarFilename and avatarFilePath. When an avatar has only avatarPath with inline image data, the UI falls back to rendering the original source directly.

Steps to reproduce

  1. Create or load a character whose avatar image is stored in avatarPath as inline image data, with no avatarFilePath or avatarFilename.
  2. Open a catalog surface that renders CharacterAvatarImage with thumbnailSize, such as the character list or card view.
  3. Observe that the component renders the original avatarPath source instead of a generated thumbnail cache 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: fix/1938-avatar-thumbnails
  • Run mode: not confirmed
  • 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 logs or screenshots available. Static investigation found the thumbnail eligibility gate in src/features/catalog/characters/components/CharacterAvatarImage.tsx only checks avatarFilename and avatarFilePath, and the Rust thumbnail command only accepts managed avatar files under the avatars directory.

Regression notes

Not confirmed. This may be a remaining gap from the managed avatar thumbnail work rather than a new regression.

Additional context

Likely fix: allow the avatar thumbnail resolver to accept inline avatarPath image data, decode/hash/cache it safely, and have CharacterAvatarImage pass src when managed avatar metadata is absent. If actual stored data includes scheme-wrapped inline URLs like asset://data:image/..., normalize those to data:image/... before thumbnail/display handling.

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 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1944 Originally assigned to: @Promansis on GitHub. ## Summary Inline avatar images stored only in `avatarPath` are displayed as full `data:image/...` sources instead of using the avatar thumbnail cache. This appears to affect legacy/imported avatar data and may also affect malformed scheme-wrapped inline values such as `*://data:...`. ## Expected behavior Character/avatar list surfaces that request thumbnails should use the same thumbnail behavior for inline `avatarPath` images as they do for managed avatar files. ## Actual behavior The thumbnail path only considers `avatarFilename` and `avatarFilePath`. When an avatar has only `avatarPath` with inline image data, the UI falls back to rendering the original source directly. ## Steps to reproduce 1. Create or load a character whose avatar image is stored in `avatarPath` as inline image data, with no `avatarFilePath` or `avatarFilename`. 2. Open a catalog surface that renders `CharacterAvatarImage` with `thumbnailSize`, such as the character list or card view. 3. Observe that the component renders the original `avatarPath` source instead of a generated thumbnail cache URL. ## Impact area <!-- Check the areas you think are relevant. Leave uncertain items unchecked. --> - [ ] App shell, navigation, startup, or providers - [x] 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 - [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: `fix/1938-avatar-thumbnails` - Run mode: not confirmed - 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 logs or screenshots available. Static investigation found the thumbnail eligibility gate in `src/features/catalog/characters/components/CharacterAvatarImage.tsx` only checks `avatarFilename` and `avatarFilePath`, and the Rust thumbnail command only accepts managed avatar files under the avatars directory. ## Regression notes Not confirmed. This may be a remaining gap from the managed avatar thumbnail work rather than a new regression. ## Additional context Likely fix: allow the avatar thumbnail resolver to accept inline `avatarPath` image data, decode/hash/cache it safely, and have `CharacterAvatarImage` pass `src` when managed avatar metadata is absent. If actual stored data includes scheme-wrapped inline URLs like `asset://data:image/...`, normalize those to `data:image/...` before thumbnail/display handling. ## 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:01 +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#952
No description provided.