mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2124] 5. Characters #1037
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#1037
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?
Originally created by @Promansis on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2124
Originally assigned to: @Promansis on GitHub.
Target 5: Characters
Scope
Included:
Not checked:
UI Authoring Static Refresh - 2026-06-04
Static trace refreshed these requested rows against
refactorat7d4f39f4, withmainat77a30fa4treated as legacy.covered_staticCharactersPanel,CharacterLibraryView, anduse-characters-panel-*hooks cover list/search/filter/sort, favorites, groups, selection, quick-start conversation/roleplay, and active chat assignment.covered_staticwith quote-formatting exceptionCharacterEditor/useUpdateCharacter; quote normalization drift is tracked separately below.covered_staticgaps_opencreator_notes,system_prompt,post_history_instructions, anddepth_prompt.prompt. Follow-up filed: #2128.covered_staticuseCreateCharacter; Card Update modal applies targeted non-stale field replacements throughuseUpdateCharacterwith version metadata.refactor_better.json,.png,.charx, and.marinara; supports new vs update-in-place, target selection, tag modes, status rows, embedded-lorebook prompt, regex import, update snapshots, and duplicate cleanup partial-success messaging.covered_staticCharacterEditorDialogs, bulk native/compatible exports from the panel, shared download payloads, and Rustcharacter_export,character_export_png, andcharacters_export_bulkcommands.Stale Follow-Up Refresh - 2026-06-04
Static trace refreshed these stale rows against
refactorat7d4f39f4, withmainas legacy:covered_staticuseCharacterPanelSummarieswithCHARACTER_PANEL_SUMMARY_OPTIONS, uses projectedstorage_list, and keeps full summary/detail paths separate.covered_statictriggerDownloadWithToast(...)andtoastExportError(...); bulk character export still reports success/failure.covered_staticAvatarCropWidgetnow reserves stableMAX_DISPLAY_W/MAX_DISPLAY_Hstage bounds and hides the measured image frame untilimgRectis available. Browser proof was not run.refactor_betterRightPanellazy-loadsfeatures/catalog/characters/panel, the panel uses the lightweight summary projection, and compact rows no longer compute prompt/book token estimates.Storage/Performance Static Refresh - 2026-06-04
Static trace refreshed these requested storage/performance rows against
refactor, withmaintreated as legacy.gaps_openwith mostlyrefactor_betterimplementationdata,comment,avatarPath,avatar,avatarFilePath, andavatarFilename, and duplicate copies managed avatar files instead of sharing the source file. Remaining gap: version history likely renders oldest-first because the UI does not request descendingcreatedAt; follow-up filed: #2129.refactor_betterfieldSelections, separate full summary/detail reads, and a projected-search test that avoids returning avatar payloads. Legacy panel used the full/characterslist.refactor_betterrefactor_betterRightPanellazy-loads the narrowfeatures/catalog/characters/panelentrypoint, the panel usesuseCharacterPanelSummaries, compact rows no longer compute prompt/book token estimates, and full first-message data is lazy-loaded only for add/start actions.Contract/API Static Refresh - 2026-06-04
Static trace refreshed the requested contract/API rows against
refactorat7d4f39f4, withmainat77a30fa4treated as legacy.covered_staticsrc/engine/contracts/types/character.tsandsrc/engine/contracts/schemas/character.schema.tspreserve the legacy Chara Card V2 envelope, core data fields, comments/avatar/version/group adjacency, and now use pass-through parsing for unknown card data.covered_staticcovered_staticcovered_staticstorageApi,characterApi,importApi, export/gallery/sprite wrappers; no rawinvokeTaurior rawfetchcalls were found insrc/features/catalog/charactersorsrc/features/catalog/sprites.covered_staticsrc-tauri/src/http_dispatch.rscover character export/export PNG, embedded-lorebook import, ST character import/inspect/batch, storage CRUD, avatar upload/remove, version restore, gallery, and sprite command paths.Assets/Compat/Error Static Refresh - 2026-06-04
Static trace refreshed these requested asset, compatibility, and error rows against
refactorat7d4f39f4, withmainat77a30fa4treated as legacy.refactor_bettergaps_openwith CRUD/display coverageurlis already an inlinedata:image/..., so normal managed gallery uploads are omitted from.marinaraexport/round-trip; follow-up filed: #2130.refactor_betterrefactor_better.json,.png,.charx, and.marinara; PNG/CharX payload extraction, ST normalization, embedded lorebook handling, regex scripts, tags, and trusted avatar-source handling are covered.gaps_opencovered_staticrefactor_betterRuntime/Mode Consumers Static Refresh - 2026-06-04
Static trace refreshed these requested runtime/mode consumer rows against
refactor, withmaintreated as legacy.covered_staticcovered_staticcovered_staticconversationSchedulesEnabled,characterSchedules, andscheduleWeekStart, derives current status/activity, updates characterextensions.conversationStatus, exposesgetConversationStatus, and injects schedule/status context plus schedule update command instructions into conversation prompts.gaps_openmentionedCharacterNamesyetresolveConversationAvailabilityalways uses genericgetBusyDelay; follow-up filed: #2131.covered_staticcharacterIds, lazy-load first greetings for non-conversation first-message confirmation, and preserve conversation-specific behavior by skipping roleplay first-message injection in conversation chats.covered_static_for_character_sliceClosure Rescan - 2026-06-05
Focused parityscan refreshed the four closed Target 5 follow-ups after fast-forwarding local
refactortoorigin/refactorat95690e30.origin/mainat9e960485was used as the legacy reference for these focused rows. No documented intentional divergence was found indocs/REFACTOR_PARITY_PIPELINE.mdfor the refreshed differences.covered_staticwith focused test proofsrc/features/catalog/characters/lib/character-editor-model.ts:39-:51now includescreator_notes,system_prompt,post_history_instructions, anddepth_prompt;:66-:73formatsdepth_prompt.promptwhile preserving the rest of the object. Focused Vitest passed.origin/main:packages/client/src/components/characters/CharacterEditor.tsx:170-:172and:200include the advanced fields and depth prompt text in quote formatting.covered_staticwith focused test proofsrc/features/catalog/characters/hooks/use-characters.ts:314-:318now listscharacter-versionswithorderBy: "createdAt"anddescending: true. Focused hook Vitest passed.origin/main:packages/server/src/services/storage/characters.storage.ts:67-:72orders character card versions by descendingcreatedAt.covered_staticwith focused Rust proofsrc-tauri/src/commands/storage/exports.rs:805-:850now exports inline gallery rows and managed gallery files;src-tauri/src/commands/storage/imports/marinara_assets.rs:115-:157restores native gallery data throughstorage_create_inner, which materializes inline images as managed gallery files. Focused Rust gallery tests passed.origin/main:packages/server/src/routes/characters.routes.ts:160-:208reads gallery image files and embeds them in the native character envelope.covered_staticwith focused test proofsrc/engine/generation/start-generation.ts:1400-:1449now carries manual-target and mention context into availability resolution and selectsgetMentionDelay(...)only for mentioned/manual-target characters;src/engine/modes/chat/schedules/schedule.service.ts:1004-:1014preserves the legacy short idle/DND delay windows. Focused generation Vitest passed.origin/main:packages/server/src/routes/generate.routes.ts:2595-:2635treats requested mentions/manual targets as urgent and callsgetMentionDelay(...), defined atorigin/main:packages/server/src/services/conversation/schedule.service.ts:405-:412.Verification run:
pnpm test -- src/features/catalog/characters/lib/character-editor-model.test.ts src/features/catalog/characters/hooks/use-characters.test.tsx src/engine/generation/start-generation.test.tscargo test --manifest-path src-tauri/Cargo.toml --workspace galleryTarget 5 status is upgraded to
on_parfor the refreshed blocker rows. Remaining proof limits: no hands-on Tauri/browser visual QA was run for Avatar Crop layout or side-panel timing beyond the earlier static coverage; deeper roleplay/game/tracker consumers remain target-owned by later mode scans.Surface Inventory
packages/shared/src/types/character.ts,packages/shared/src/schemas/character.schema.ts,packages/server/src/db/schema/characters.tssrc/engine/contracts/types/character.ts,src/engine/contracts/schemas/character.schema.tspackages/shared/src/types/character.ts,packages/client/src/components/characters/CharacterEditor.tsxsrc/engine/contracts/types/character.ts,src/features/catalog/characters/components/*Tab.tsxpackages/shared/src/types/character.ts,packages/shared/src/schemas/character.schema.tssrc/engine/contracts/types/character.ts,src/engine/contracts/schemas/character.schema.ts,src/features/catalog/characters/components/CharacterLorebookTab.tsxpackages/server/src/services/storage/characters.storage.ts,packages/server/src/routes/characters.routes.tssrc-tauri/src/commands/storage/characters.rs,src-tauri/src/commands/storage/commands/entities.rs,src/features/catalog/characters/hooks/use-characters.tscreatedAt; focused hook test passed.packages/client/src/hooks/use-characters.ts,packages/server/src/routes/characters.routes.tssrc/features/catalog/characters/hooks/use-characters.ts,src-tauri/src/commands/storage/commands/entities.rspackages/server/src/services/storage/characters.storage.ts,packages/server/src/services/storage/character-gallery.storage.tssrc-tauri/src/commands/storage/commands/entities.rs,src-tauri/src/commands/storage/avatars.rssrc/shared/api/character-api.ts,src/shared/api/storage-api.ts,src/features/catalog/characters/hooks/use-characters.ts,src/features/catalog/sprites/hooks/use-sprites.tssrc/shared/api/remote-runtime.ts,src-tauri/src/http_dispatch.rs,src-tauri/src/lib.rspackages/client/src/components/panels/CharactersPanel.tsx,packages/client/src/components/characters/CharacterLibraryView.tsxsrc/features/catalog/characters/components/CharactersPanel.tsx,src/features/catalog/characters/components/CharacterLibraryView.tsx,src/features/catalog/characters/hooks/use-characters-panel-*packages/client/src/components/characters/CharacterEditor.tsxsrc/features/catalog/characters/components/CharacterEditor.tsx,src/features/catalog/characters/components/Character*Tab.tsxpackages/client/src/components/characters/CharacterEditor.tsxsrc/features/catalog/characters/components/CharacterDescriptionTab.tsx,CharacterColorsTab.tsx,CharacterStatsTab.tsx,CharacterLorebookTab.tsx,CharacterGalleryTab.tsx,CharacterSpritesTab.tsx,CharacterAdvancedTab.tsxpackages/client/src/components/characters/CharacterEditor.tsxsrc/features/catalog/characters/lib/character-editor-model.ts,src/features/catalog/characters/components/CharacterEditor.tsx,src/shared/lib/dialogue-quotes.tsdepth_prompt.promptare now covered; focused formatter test passed.packages/client/src/components/modals/CreateCharacterModal.tsx,CharacterMakerModal.tsx,CharacterCardUpdateModal.tsxsrc/features/catalog/characters/components/CreateCharacterModal.tsx,CharacterMakerModal.tsx,CharacterCardUpdateModal.tsxpackages/client/src/components/modals/ImportCharacterModal.tsx,packages/client/src/lib/character-import.tssrc/features/catalog/characters/hooks/use-character-import-flow.ts,src/features/catalog/characters/components/ImportCharacterModal.tsx,src/shared/lib/character-import.tspackages/client/src/components/characters/CharacterEditor.tsx,packages/server/src/routes/characters.routes.tssrc/features/catalog/characters/components/CharacterEditorDialogs.tsx,src/features/catalog/characters/components/CharactersPanel.tsx,src-tauri/src/commands/storage/commands/profile.rssrc/features/catalog/characters/components/CharacterEditorDialogs.tsx,src/features/catalog/characters/hooks/use-characters-panel-selection.tssrc/features/catalog/characters/components/CharacterMetadataTab.tsx,src/shared/components/ui/AvatarCropWidget.tsxpackages/client/src/components/chat/ChatSetupWizard.tsx,packages/client/src/components/chat/ChatSettingsDrawer.tsx,packages/client/src/components/chat/ConversationView.tsxsrc/features/modes/shared/chat-ui,src/features/modes/conversation,src/app/shell/ChatSidebar.tsxpackages/server/src/services/prompt/marker-expander.ts,packages/server/src/services/prompt/character-description-extensions.tssrc/engine/generation-core/prompt/character-description-extensions.ts,src/engine/generation/active-characters.ts, mode prompt builderssrc/engine/generation/connected-commands.ts,src/features/modes/shared/chat-ui/hooks/use-chat-surface-data.ts,src/app/shell/ChatSidebar.tsxpackages/server/src/services/conversation/autonomous.service.ts,packages/server/src/routes/generate.routes.tssrc/engine/generation, conversation generation hooks, chat metadata schedule servicescharacterIds, names, avatars, unread state, and sidebar status dots.packages/client/src/hooks/use-start-chat-from-character.ts, chat/sidebar componentssrc/features/catalog/characters/hooks/use-start-chat-from-character.ts,src/app/shell/ChatSidebar.tsx, mode surface data hookssrc/features/modes/roleplay,src/features/modes/game,src/features/runtime/tracker,src/engine/modes/roleplaysrc-tauri/src/commands/storage/avatars.rs,src-tauri/src/state.rs,src/features/catalog/characters/components/CharacterAvatarImage.tsx,src/shared/api/local-file-api.tspackages/server/src/services/storage/character-gallery.storage.ts,packages/client/src/components/characters/CharacterEditor.tsxsrc/features/catalog/characters/components/CharacterGalleryTab.tsx,src/features/catalog/characters/hooks/use-characters.ts,src-tauri/src/commands/storage/commands/media.rspackages/client/src/hooks/use-characters.ts,packages/server/src/routes/sprites.routes.tssrc/features/catalog/characters/components/CharacterSpritesTab.tsx,src/features/catalog/sprites/hooks/use-sprites.ts,src-tauri/src/commands/storage/sprites.rspackages/server/src/services/import/st-character.importer.ts,packages/server/src/routes/import.routes.tssrc-tauri/src/commands/storage/imports/*,src-tauri/src/commands/storage/commands/imports.rs,src/features/catalog/characters/hooks/use-character-import-flow.ts.marinaracharacter import/export preserves card data, avatar files, embedded lorebooks, sprites/gallery adjacency, and bulk payloads.packages/server/src/services/import/marinara.importer.ts, character export routessrc-tauri/src/commands/storage/imports/marinara.rs,src-tauri/src/commands/storage/exports.rs,src-tauri/src/commands/storage/commands/profile.rssrc/app/shell/RightPanel.tsx,src/features/catalog/characters/panel.ts,src/features/catalog/characters/hooks/use-characters.ts,src/features/catalog/characters/components/CharacterListRow.tsxpackages/server/src/services/import/*, legacy import modalsrc-tauri/src/commands/storage/imports/service_tests.rs,src/features/catalog/characters/lib/character-import-model.ts,src/features/catalog/characters/hooks/use-character-import-flow.tssrc-tauri/src/commands/storage/avatars.rs,src/features/catalog/characters/components/CharacterAvatarImage.tsx,src/shared/api/avatar-api.tsCoverage Matrix
Follow-Ups
95690e30depth_prompt.prompt; focused Vitest passed.95690e30createdAtordering; focused hook Vitest passed.95690e3095690e30Rescan Criteria
95690e30on 2026-06-05 found #2128, #2129, #2130, and #2131 fixed; no intentional-divergence entry is needed for those rows.