[GH-ISSUE #665] [Issue]: PR #661 chat-side avatar-crop propagation breaks four render sites #317

Closed
opened 2026-10-20 17:27:34 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Romuromylus on GitHub (May 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/665

Summary

PR #661 added a new source-rectangle crop format whose render path requires position: relative; overflow: hidden; on the <img>'s parent. The chat-side propagation was explicitly deferred ("Out of scope" in the PR body). With #661 merged, four chat surfaces render broken avatars when a saved new-format crop is present.

Expected behavior

Cropped persona/character avatars render within their tile bounds in chat surfaces, matching what the persona panel already shows correctly.

Actual behavior

  1. RP scene character header — image bleeds beyond container, stripey pixel artifacts at the bottom of the tile.
  2. Conversation-mode chat bubbles (persona) — only the leftmost vertical sliver of the persona avatar shows.
  3. Conversation-mode chat bubbles (character) — character avatar renders as a giant horizontal banner spanning the chat area.
  4. QuickPersonaSwitcher strip — only a partial slice of the persona avatar shows in the header switcher.

Confirmed-working sites (for reference of what good propagation looks like): persona panel main rows, RP chat list sidebar, chat top header for the active character.

Steps to reproduce

  1. Create or open a persona, set a new-format avatar crop via the cropper widget, save.
  2. Do the same for a character.
  3. Open a Conversation-mode chat that uses both — observe both avatars broken in bubbles.
  4. Open the QuickPersonaSwitcher strip in the chat header — observe persona icon clipped.
  5. Switch to a Roleplay-mode chat — observe stripey artifacts on the top character avatar.

Environment

  • Marinara Engine version: post-#661 (upstream main `be4f0d9`)
  • Install type: source (EasyPanel Docker container)
  • OS + version: Windows 11
  • Browser or app shell: Chrome

Logs, screenshots, or video

Reported by a Marinara user with reproductions on a deployed instance running post-#661 main; screenshots covered all four broken sites.

Additional context

The chat-side propagation is non-trivial — roughly 14 getAvatarCropStyle call sites across packages/client/src/components/chat/** and packages/client/src/components/game/**, plus PersonaInfo plumbing through ChatArea.tsx's `userPersonaInfo` useMemo, plus widening `CharacterMap.avatarCrop` in `chat-area.types.ts` to accept the new shape. Rather than rush it into a same-day follow-up, this issue covers reverting #661 on main now and re-introducing it as a fresh PR with the full chat-side propagation included.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Romuromylus on GitHub (May 11, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/665 ## Summary PR #661 added a new source-rectangle crop format whose render path requires `position: relative; overflow: hidden;` on the `<img>`'s parent. The chat-side propagation was explicitly deferred ("Out of scope" in the PR body). With #661 merged, four chat surfaces render broken avatars when a saved new-format crop is present. ## Expected behavior Cropped persona/character avatars render within their tile bounds in chat surfaces, matching what the persona panel already shows correctly. ## Actual behavior 1. **RP scene character header** — image bleeds beyond container, stripey pixel artifacts at the bottom of the tile. 2. **Conversation-mode chat bubbles (persona)** — only the leftmost vertical sliver of the persona avatar shows. 3. **Conversation-mode chat bubbles (character)** — character avatar renders as a giant horizontal banner spanning the chat area. 4. **QuickPersonaSwitcher strip** — only a partial slice of the persona avatar shows in the header switcher. Confirmed-working sites (for reference of what good propagation looks like): persona panel main rows, RP chat list sidebar, chat top header for the active character. ## Steps to reproduce 1. Create or open a persona, set a new-format avatar crop via the cropper widget, save. 2. Do the same for a character. 3. Open a Conversation-mode chat that uses both — observe both avatars broken in bubbles. 4. Open the QuickPersonaSwitcher strip in the chat header — observe persona icon clipped. 5. Switch to a Roleplay-mode chat — observe stripey artifacts on the top character avatar. ## Environment - Marinara Engine version: post-#661 (upstream main \`be4f0d9\`) - Install type: source (EasyPanel Docker container) - OS + version: Windows 11 - Browser or app shell: Chrome ## Logs, screenshots, or video Reported by a Marinara user with reproductions on a deployed instance running post-#661 main; screenshots covered all four broken sites. ## Additional context The chat-side propagation is non-trivial — roughly 14 `getAvatarCropStyle` call sites across `packages/client/src/components/chat/**` and `packages/client/src/components/game/**`, plus `PersonaInfo` plumbing through `ChatArea.tsx`'s \`userPersonaInfo\` useMemo, plus widening \`CharacterMap.avatarCrop\` in \`chat-area.types.ts\` to accept the new shape. Rather than rush it into a same-day follow-up, this issue covers reverting #661 on main now and re-introducing it as a fresh PR with the full chat-side propagation included. ## Template check - [ ] I DID NOT read this template and provide the requested details.
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#317
No description provided.