[codex] Avoid lazy loading local character avatars#1167
Conversation
📝 WalkthroughWalkthroughCharacter avatar rendering now determines image loading behavior dynamically. A new ChangesCharacter Avatar Loading Mode Control
Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly Related PRs
Suggested Labels
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Migrated from Pasta-Devs/Marinara-Engine-Refactor#53: Pasta-Devs/Marinara-Engine-Refactor#53
Original author: @Promansis
Target base: Pasta-Devs/Marinara-Engine refactor
Linked issue
N/A - migrated refactor PR; no matching avatar-loading issue found in this repo.
Why this change
Importing multiple PNG character cards can immediately refresh character avatar thumbnails with local inline image data. Those thumbnails were marked for lazy loading, which can produce browser console warnings around load timing even though the image source is already local to the app.
What changed
data:andblob:avatar sources eager while preserving lazy loading for normal URLs.CharacterAvatarImagecomponent so current character avatar surfaces inherit the behavior.Refactor impact
Primary owner:
Catalog characters / React UI.
Impact areas reviewed:
Boundary notes:
The change stays in feature/catalog character UI code. It does not touch engine, storage, shared API, Rust, prompt assembly, imports, or remote runtime boundaries.
Pressure points touched:
None.
Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
Codex ran
pnpm checklocally after resolving the refactor conflict. GitHub CI passed Frontend/Architecture/Organization, Browser Smoke and Performance, and Rust Capability Layer on commit07c30364. CodeRabbit completed with no actionable comments.A human can optionally smoke-test the original console-warning path by importing multiple PNG character cards in the Tauri app with devtools open and confirming local avatar render does not emit the lazy-loading warning.
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
No screenshot attached; this is a browser loading-attribute behavior change for local character avatar rendering.