[GH-ISSUE #1777] [Issue]: Track Character feature legacy parity gaps #862

Closed
opened 2026-10-21 05:22:32 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The refactor Character feature had several legacy parity gaps after the architecture split. The main gaps were version snapshot behavior, avatar lifecycle/removal, duplicate visible names, and character depth-prompt generation. This issue tracks the problem and links the PRs that address the slices.

Expected behavior

Character behavior on refactor should match legacy behavior while preserving the refactor architecture boundaries:

  • Character data/comment/avatar updates should create recoverable character-versions snapshots unless explicitly skipped.
  • Avatar upload, removal, restore, and cleanup should be safe for managed files and should not read or delete arbitrary user paths.
  • Duplicated character cards should update the visible nested data.name copy label while preserving the rest of the card data.
  • Character extensions.depth_prompt data should participate in prompt assembly where character-backed generation owns that behavior.
  • Character library/search/editor behavior should remain performant and modular after the parity fixes.

Actual behavior

Before the parity slices, the refactor Character feature had these gaps:

  • Normal editor/agent/card updates did not consistently create legacy-style version snapshots.
  • Avatar removal was missing from the Character editor/API path.
  • Avatar snapshot/cleanup paths needed managed-file guards so snapshots and deletes could not follow unmanaged local paths.
  • Character duplicate behavior could keep the same nested visible data.name.
  • Character depth prompts were editable but not injected into generation.
  • Prompt insertion needed mode-aware ownership so Character depth prompts did not interfere with game-mode GM prompting.

Steps to reproduce

  1. On a refactor build before the linked parity PRs, edit a character card field, comment, or avatar.
  2. Check the character version history and restore behavior.
  3. Try to remove an avatar from the Character editor.
  4. Duplicate a character and inspect the copied card's nested data.name.
  5. Add data.extensions.depth_prompt to a character and start conversation/roleplay generation.
  6. Attach the same character to game mode and inspect whether character card depth prompts are mixed into GM prompt assembly.

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: refactor, across the Character parity slices listed below
  • Run mode: Tauri desktop; remote runtime routing is relevant for storage/avatar command parity
  • OS + version: not OS-specific
  • Node + pnpm versions: not version-specific
  • Rust version, if relevant: not version-specific
  • Remote Runtime URL configured? relevant for command routing, but the core gap exists in embedded Tauri too
  • Provider, model, or integration, if relevant: prompt assembly/provider-independent

Logs, screenshots, or video

No external logs or screenshots needed for the tracking issue. Linked PRs include their own validation notes.

Regression notes

This tracks legacy parity, not a newly requested capability. The behavior should line up with the legacy Character feature while keeping the refactor split between src-tauri, src/shared/api, src/features/catalog/characters, and src/engine/generation.

Additional context

PRs addressing the Character parity work:

  • #1629 addressed Character library/search parity and summary projection behavior.
  • #1714 split the Character catalog into focused modules so parity fixes could land without further bloating the editor/panel files.
  • #1728 restored Character version snapshot semantics for update/restore/avatar upload paths.
  • #1773 addresses the remaining Character parity gaps: avatar removal, managed avatar safety controls, duplicate nested names, and depth-prompt generation behavior.

Historical legacy reference:

  • #1064 added character avatar removal on the pre-refactor/staging line.

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 @Xelvanis on GitHub (Jun 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1777 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The refactor Character feature had several legacy parity gaps after the architecture split. The main gaps were version snapshot behavior, avatar lifecycle/removal, duplicate visible names, and character depth-prompt generation. This issue tracks the problem and links the PRs that address the slices. ## Expected behavior Character behavior on `refactor` should match legacy behavior while preserving the refactor architecture boundaries: - Character data/comment/avatar updates should create recoverable `character-versions` snapshots unless explicitly skipped. - Avatar upload, removal, restore, and cleanup should be safe for managed files and should not read or delete arbitrary user paths. - Duplicated character cards should update the visible nested `data.name` copy label while preserving the rest of the card data. - Character `extensions.depth_prompt` data should participate in prompt assembly where character-backed generation owns that behavior. - Character library/search/editor behavior should remain performant and modular after the parity fixes. ## Actual behavior Before the parity slices, the refactor Character feature had these gaps: - Normal editor/agent/card updates did not consistently create legacy-style version snapshots. - Avatar removal was missing from the Character editor/API path. - Avatar snapshot/cleanup paths needed managed-file guards so snapshots and deletes could not follow unmanaged local paths. - Character duplicate behavior could keep the same nested visible `data.name`. - Character depth prompts were editable but not injected into generation. - Prompt insertion needed mode-aware ownership so Character depth prompts did not interfere with game-mode GM prompting. ## Steps to reproduce 1. On a `refactor` build before the linked parity PRs, edit a character card field, comment, or avatar. 2. Check the character version history and restore behavior. 3. Try to remove an avatar from the Character editor. 4. Duplicate a character and inspect the copied card's nested `data.name`. 5. Add `data.extensions.depth_prompt` to a character and start conversation/roleplay generation. 6. Attach the same character to game mode and inspect whether character card depth prompts are mixed into GM prompt assembly. ## Impact area - [ ] App shell, navigation, startup, or providers - [x] Catalog resources - [x] Chat mode - [x] Roleplay mode - [x] Game mode - [ ] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [x] 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: `refactor`, across the Character parity slices listed below - Run mode: Tauri desktop; remote runtime routing is relevant for storage/avatar command parity - OS + version: not OS-specific - Node + pnpm versions: not version-specific - Rust version, if relevant: not version-specific - Remote Runtime URL configured? relevant for command routing, but the core gap exists in embedded Tauri too - Provider, model, or integration, if relevant: prompt assembly/provider-independent ## Logs, screenshots, or video No external logs or screenshots needed for the tracking issue. Linked PRs include their own validation notes. ## Regression notes This tracks legacy parity, not a newly requested capability. The behavior should line up with the legacy Character feature while keeping the refactor split between `src-tauri`, `src/shared/api`, `src/features/catalog/characters`, and `src/engine/generation`. ## Additional context PRs addressing the Character parity work: - #1629 addressed Character library/search parity and summary projection behavior. - #1714 split the Character catalog into focused modules so parity fixes could land without further bloating the editor/panel files. - #1728 restored Character version snapshot semantics for update/restore/avatar upload paths. - #1773 addresses the remaining Character parity gaps: avatar removal, managed avatar safety controls, duplicate nested names, and depth-prompt generation behavior. Historical legacy reference: - #1064 added character avatar removal on the pre-refactor/staging line. ## 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:22:32 +07:00
Author
Owner

@Xelvanis commented on GitHub (Jun 1, 2026):

Additional Character parity gap from static parity review:

  • Legacy exposed an estimated character-card token count in the Character panel/library via packages/client/src/lib/character-token-count.ts, surfaced from CharactersPanel.tsx and CharacterLibraryView.tsx.
  • Refactor appears to have no equivalent estimator/display under src/features/catalog/characters.

Impact: users lose quick visibility into a card's prompt footprint before choosing, editing, importing, or starting with long cards.

Suggested fix: add a small refactor-side estimator over prompt-relevant fields such as description/personality/scenario/first message/examples/system prompt/post-history instructions/alternate greetings/depth prompt/embedded lorebook, then surface the estimate in the Character library/detail/editor UI.

<!-- gh-comment-id:4590502407 --> @Xelvanis commented on GitHub (Jun 1, 2026): Additional Character parity gap from static parity review: - Legacy exposed an estimated character-card token count in the Character panel/library via `packages/client/src/lib/character-token-count.ts`, surfaced from `CharactersPanel.tsx` and `CharacterLibraryView.tsx`. - Refactor appears to have no equivalent estimator/display under `src/features/catalog/characters`. Impact: users lose quick visibility into a card's prompt footprint before choosing, editing, importing, or starting with long cards. Suggested fix: add a small refactor-side estimator over prompt-relevant fields such as description/personality/scenario/first message/examples/system prompt/post-history instructions/alternate greetings/depth prompt/embedded lorebook, then surface the estimate in the Character library/detail/editor UI.
Author
Owner

@SpicyMarinara commented on GitHub (Jun 1, 2026):

On it.

<!-- gh-comment-id:4591269641 --> @SpicyMarinara commented on GitHub (Jun 1, 2026): On it.
Author
Owner

@SpicyMarinara commented on GitHub (Jun 1, 2026):

Covered and closed on refactor.

What changed:

  • The main character parity slices were merged in PR #1773.
  • The remaining review note is fixed in 6d00ffa6: character card token estimates are restored with a refactor-side estimator.
  • The estimate is shown in the Characters panel row, Character Library card/detail surfaces, and Character Editor header.
  • Character summary loading now includes the prompt-relevant card fields needed for the estimate before opening the full editor.

Verification for the follow-up:

  • pnpm typecheck
  • pnpm check:architecture
  • git diff --check
<!-- gh-comment-id:4591987800 --> @SpicyMarinara commented on GitHub (Jun 1, 2026): Covered and closed on refactor. What changed: - The main character parity slices were merged in PR #1773. - The remaining review note is fixed in 6d00ffa6: character card token estimates are restored with a refactor-side estimator. - The estimate is shown in the Characters panel row, Character Library card/detail surfaces, and Character Editor header. - Character summary loading now includes the prompt-relevant card fields needed for the estimate before opening the full editor. Verification for the follow-up: - pnpm typecheck - pnpm check:architecture - git diff --check
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#862
No description provided.