mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8851] [MERGED] fix: confirm character sprite image imports through the regular file picker #8841
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#8841
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8851
Author: @DSBwizzard
Created: 11/5/2026
Status: ✅ Merged
Merged: 11/5/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/sprite-import-confirmation📝 Commits (10+)
d8995b3fix: confirm sprite folder imports inside Enginefaec0e7test: adapt sprite library checks to folder confirmation5604cb7test: preserve dropped image MIME types and reject native dialogsb4a55f0fix: restore sprite folder selection before Engine confirmation52c9f23test: open sprite tools before selecting a folder3337c49fix: confirm sprite images selected through the regular file pickera084de7docs: align sprite import help with image selection7aa9ffbfix: use generic image upload progress text9eaaf61Merge remote-tracking branch 'upstream/staging' into codex/sprite-import-confirmationcb050f0ci: skip optional CUDA download in native CPU checks📊 Changes
12 files changed (+250 additions, -73 deletions)
View changed files
📝
.github/workflows/platform-artifacts.yml(+3 -0)📝
docs/agents/avatars.md(+1 -1)📝
docs/characters/sprites.md(+9 -5)📝
e2e/core-flows.e2e.ts(+91 -0)📝
e2e/sprite-library.e2e.ts(+57 -16)📝
packages/client/src/components/characters/CharacterEditor.tsx(+10 -45)➕
packages/client/src/components/characters/SpriteImageImport.tsx(+64 -0)📝
packages/client/src/components/personas/PersonaEditor.tsx(+1 -1)📝
packages/client/src/hooks/use-characters.ts(+2 -1)➕
packages/client/src/lib/sprite-folder-import.ts(+3 -0)📝
packages/client/src/localization/locales/en.json(+7 -3)📝
scripts/regressions/restart-supervisor.regression.ts(+2 -1)📄 Description
Linked issue
Closes #8849
Why this change
Character folder upload can invoke a browser-owned security warning before Engine receives any files. The requested cross-device flow is to browse inside a folder, select images, and confirm their count in Engine. Sprite uploads also showed the misleading “Uploading character sheet…” label.
What changed
You can no longer select whole folders in character Sprites. Select individual images with the ordinary multiple-image picker instead. Character imports no longer scan subfolders or restore folder-export catalogs; imported sprites start loose. Existing folder organization and persona whole-folder upload remain available.
Confirm the supported-image count in Engine before importing selected or dropped images. Cancel sends no sprite uploads, and the same selection can be retried.
Display exactly Uploading Images... for sprite and character-sheet uploads. The shared translation also covers persona sheet uploads.
Reuse the existing upload control and import path, update localized help and English guides, and add focused browser coverage. Sprite identity, duplicate-label behavior, storage and backend validation are unchanged.
Native CI now skips ONNX Runtime's optional CUDA download, matching the existing CPU validation jobs. Dependency installation, build and native runtime tests continue to run.
Restart-check failures now include the supervisor exit code/signal and detect signal termination directly, improving investigation evidence while retaining all startup/restart deadlines and ownership assertions.
Maintainer decision requested: @SpicyMarinara, please confirm whether replacing character whole-folder import with selected-image import is acceptable. This completed implementation remains draft under the capability-removal gate in
.github/agents/chai-workflow.md.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run results on
9eaaf61ca071c5ffa111859f83ed7c02742ca131, integrating staging0313889a4:pnpm install --frozen-lockfile,pnpm checkandgit diff --check: passed. Lint retains 12 existing hook-dependency warnings.node scripts/run-regressions.mjs --filter sprite: 7/7 passed.pnpm smoke:ui: 7/7 passed.pnpm smoke:production --workers=1: 3/3 passed.CI-only follow-up on
cb050f00f15bdda3e6b00bc5437964a2d0ee2c7f:pnpm check, the existing restart-diagnostics workflow regression and YAML formatting passed. A network-disabled disposable Linux container verified the optional installer exits successfully withONNXRUNTIME_NODE_INSTALL=skip, the bundled CPU backend loads, and the inference API remains available. CodeRabbit reviewed the workflow change with zero findings. The prior functional/browser evidence above remains on9eaaf61ca; application code is identical after this workflow-only follow-up. Fresh hosted CI completed: the Ubuntu native install/build check now passes, as do project validation, all three full Node regression shards, CodeQL and container checks. A separate Windows launcher startup failure on that earlier head prompted the diagnostic follow-up below; its successful fresh replay supersedes the earlier rerun request. The intermittent startup cause remains unproven.Diagnostic follow-up on
4f15905b7025223b7b596a21c743e52c39eb1dc1:pnpm checkand focused formatting passed. On CI's exact Node24.22.2, real-child exit42 and SIGTERM controls stayed failed with the correct status in the assertion; the real startup/restart case passed. Final CodeRabbit review has zero findings after reproducing/fixing its signal-guard finding. Reusable controls are in the evidence gist; further observations were shared with the existing #8081 investigation. The intermittent hosted startup exit is not claimed fixed. All executed technical CI on this head passed, including both Windows checks, Ubuntu native install/build, full Node regressions, project validation, CodeQL and container/platform checks. Maintainer direction/approval and ready-state Dottore review remain.Manual verification notes
The requester tested the isolated preview, reported the behavior acceptable and completed the human validation checklist.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUpdated
docs/characters/sprites.mdanddocs/agents/avatars.md. Translation follow-up: #8850. No file/heading renames, version bump or CHANGELOG changes.UI evidence (if applicable)
Synthetic before/after screenshots and phone confirmation.
The HTML contains original embedded PNGs for download/viewing. Before captures use the unmodified staging CharacterEditor and English catalog; after captures use this branch, with disposable synthetic fixtures. Reporter screenshots, private preview addresses and saved user images are excluded.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.