[GH-ISSUE #2128] [Issue]: Character editor quote formatting misses advanced card fields #1040

Closed
opened 2026-10-21 05:25:28 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @cha1latte on GitHub.

Summary

The refactor character editor still skips configured quote-style formatting for several legacy-covered card fields. The earlier quote-formatting follow-up is closed, but current formatter coverage omits creator notes, system prompt, post-history instructions, and the depth prompt text.

Expected behavior

Character-card authoring should apply the configured quote formatter to the same text fields legacy covered: description, personality, scenario, first message, example dialogue, alternate greetings, creator notes, system prompt, post-history instructions, backstory, appearance, alternate description content, and depth_prompt.prompt.

Actual behavior

src/features/catalog/characters/lib/character-editor-model.ts only formats description, personality, scenario, first_mes, mes_example, alternate_greetings, backstory, appearance, and altDescriptions. The current editor still routes creator_notes, system_prompt, post_history_instructions, and depth_prompt.prompt through updateField / updateExtension, but those keys are ignored by the formatter.

Steps to reproduce

  1. Configure a non-default quote style.
  2. Edit a character's Creator Notes, System Prompt, Post-History Instructions, or Depth Prompt text with quotation marks.
  3. Save the character and inspect the stored card data.
  4. Observe that these fields keep the raw quote style instead of the configured normalized style.

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 at 7d4f39f4
  • Run mode: Tauri desktop / catalog editor path
  • OS + version: Not OS-specific
  • Node + pnpm versions: Not checked; static parityscan
  • Rust version, if relevant: Not relevant
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

No runtime log or screenshot captured. Static evidence:

  • Refactor formatter key set: src/features/catalog/characters/lib/character-editor-model.ts
  • Current editor field callers: src/features/catalog/characters/components/CharacterMetadataTab.tsx, src/features/catalog/characters/components/CharacterAdvancedTab.tsx, and src/features/catalog/characters/components/CharacterEditor.tsx
  • Legacy formatter coverage: main:packages/client/src/components/characters/CharacterEditor.tsx

Regression notes

Legacy packages/client/src/components/characters/CharacterEditor.tsx formatted creator_notes, system_prompt, post_history_instructions, and depth_prompt.prompt in addition to the fields the refactor now covers. The current refactor partially fixed the prior quote-formatting issue but left these legacy-covered fields out.

Additional context

Found during the 2026-06-04 target 5 Characters parityscan UI authoring slice for #2124 / #1904. Related previous issue #1959 is closed, so this issue tracks the remaining missed-field gap rather than reopening the original broad report.

Suggested fix: add creator_notes, system_prompt, and post_history_instructions to the refactor quote-formatted character field set, and teach formatCharacterEditorExtension to format depth_prompt.prompt while preserving depth and role.

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 @Promansis on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2128 Originally assigned to: @cha1latte on GitHub. ## Summary The refactor character editor still skips configured quote-style formatting for several legacy-covered card fields. The earlier quote-formatting follow-up is closed, but current formatter coverage omits creator notes, system prompt, post-history instructions, and the depth prompt text. ## Expected behavior Character-card authoring should apply the configured quote formatter to the same text fields legacy covered: description, personality, scenario, first message, example dialogue, alternate greetings, creator notes, system prompt, post-history instructions, backstory, appearance, alternate description content, and `depth_prompt.prompt`. ## Actual behavior `src/features/catalog/characters/lib/character-editor-model.ts` only formats `description`, `personality`, `scenario`, `first_mes`, `mes_example`, `alternate_greetings`, `backstory`, `appearance`, and `altDescriptions`. The current editor still routes `creator_notes`, `system_prompt`, `post_history_instructions`, and `depth_prompt.prompt` through `updateField` / `updateExtension`, but those keys are ignored by the formatter. ## Steps to reproduce 1. Configure a non-default quote style. 2. Edit a character's Creator Notes, System Prompt, Post-History Instructions, or Depth Prompt text with quotation marks. 3. Save the character and inspect the stored card data. 4. Observe that these fields keep the raw quote style instead of the configured normalized style. ## Impact area - [ ] App shell, navigation, startup, or providers - [x] 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` at `7d4f39f4` - Run mode: Tauri desktop / catalog editor path - OS + version: Not OS-specific - Node + pnpm versions: Not checked; static parityscan - Rust version, if relevant: Not relevant - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video No runtime log or screenshot captured. Static evidence: - Refactor formatter key set: `src/features/catalog/characters/lib/character-editor-model.ts` - Current editor field callers: `src/features/catalog/characters/components/CharacterMetadataTab.tsx`, `src/features/catalog/characters/components/CharacterAdvancedTab.tsx`, and `src/features/catalog/characters/components/CharacterEditor.tsx` - Legacy formatter coverage: `main:packages/client/src/components/characters/CharacterEditor.tsx` ## Regression notes Legacy `packages/client/src/components/characters/CharacterEditor.tsx` formatted `creator_notes`, `system_prompt`, `post_history_instructions`, and `depth_prompt.prompt` in addition to the fields the refactor now covers. The current refactor partially fixed the prior quote-formatting issue but left these legacy-covered fields out. ## Additional context Found during the 2026-06-04 target 5 Characters parityscan UI authoring slice for #2124 / #1904. Related previous issue #1959 is closed, so this issue tracks the remaining missed-field gap rather than reopening the original broad report. Suggested fix: add `creator_notes`, `system_prompt`, and `post_history_instructions` to the refactor quote-formatted character field set, and teach `formatCharacterEditorExtension` to format `depth_prompt.prompt` while preserving `depth` and `role`. ## 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:25:28 +07:00
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#1040
No description provided.