[GH-ISSUE #2190] [Issue]: Lorebook overview treats comma-separated tags as one tag #1092

Closed
opened 2026-10-21 05:26:35 +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/2190

Originally assigned to: @Promansis on GitHub.

Summary

The refactor lorebook overview editor no longer supports adding multiple tags from one comma-separated input. Legacy main split a single input like npc, city, politics into three tags, while current refactor saves it as one literal tag.

Expected behavior

Typing comma-separated tags into the lorebook overview tag input and pressing Enter or the add button should add each trimmed, non-duplicate tag separately.

Actual behavior

The refactor overview editor trims the whole input string and appends it as one tag. For example, npc, city, politics becomes one tag named npc, city, politics.

Steps to reproduce

  1. On refactor, open a lorebook in the overview editor.
  2. In the Tags input, type npc, city, politics.
  3. Press Enter or click the add tag button.
  4. Observe that one combined tag is added instead of three separate tags.

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 577de008; compared against legacy main 77a30fa4
  • Run mode: not run; static parity trace only
  • OS + version: not recorded
  • Node + pnpm versions: not recorded
  • Rust version, if relevant: not relevant
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

Static parity evidence:

  • Legacy main:packages/client/src/components/lorebooks/LorebookEditor.tsx has appendNewTags(existingTags, rawInput) that splits rawInput on commas, trims each part, skips blanks and duplicates, and appends all additions.
  • Legacy main:packages/client/src/components/lorebooks/LorebookEditor.tsx calls handleAddTags from both Enter and the add button in the overview tag input.
  • Refactor src/features/catalog/lorebooks/components/editor/LorebookOverviewTab.tsx has addTag, which trims newTag once and appends [...tags, tag], so comma-separated input stays one combined string.

No browser proof was run for this issue.

Regression notes

This worked on legacy main and regressed in the Tauri/refactor overview editor split. The current refactor still supports single-tag add/remove correctly.

Additional context

Found during parityscan Batch 5: Authoring UI, row 07-LB-UI-overview-editor.

Related target issue: #2181.

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/2190 Originally assigned to: @Promansis on GitHub. ## Summary The refactor lorebook overview editor no longer supports adding multiple tags from one comma-separated input. Legacy `main` split a single input like `npc, city, politics` into three tags, while current `refactor` saves it as one literal tag. ## Expected behavior Typing comma-separated tags into the lorebook overview tag input and pressing Enter or the add button should add each trimmed, non-duplicate tag separately. ## Actual behavior The refactor overview editor trims the whole input string and appends it as one tag. For example, `npc, city, politics` becomes one tag named `npc, city, politics`. ## Steps to reproduce 1. On `refactor`, open a lorebook in the overview editor. 2. In the Tags input, type `npc, city, politics`. 3. Press Enter or click the add tag button. 4. Observe that one combined tag is added instead of three separate tags. ## 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` `577de008`; compared against legacy `main` `77a30fa4` - Run mode: not run; static parity trace only - OS + version: not recorded - Node + pnpm versions: not recorded - Rust version, if relevant: not relevant - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video Static parity evidence: - Legacy `main:packages/client/src/components/lorebooks/LorebookEditor.tsx` has `appendNewTags(existingTags, rawInput)` that splits `rawInput` on commas, trims each part, skips blanks and duplicates, and appends all additions. - Legacy `main:packages/client/src/components/lorebooks/LorebookEditor.tsx` calls `handleAddTags` from both Enter and the add button in the overview tag input. - Refactor `src/features/catalog/lorebooks/components/editor/LorebookOverviewTab.tsx` has `addTag`, which trims `newTag` once and appends `[...tags, tag]`, so comma-separated input stays one combined string. No browser proof was run for this issue. ## Regression notes This worked on legacy `main` and regressed in the Tauri/refactor overview editor split. The current refactor still supports single-tag add/remove correctly. ## Additional context Found during parityscan Batch 5: Authoring UI, row `07-LB-UI-overview-editor`. Related target issue: #2181. ## 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:26:35 +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#1092
No description provided.