[GH-ISSUE #5946] [Issue]: Lorebook entry names with apostrophes or punctuation are not escaped correctly #3289

Closed
opened 2026-10-21 06:01:42 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Sep 8, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5946

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Lorebook Keeper sometimes fails to properly escape apostrophes and other punctuation when naming Lorebook entries.

Expected behavior

Lorebook entry names containing apostrophes or other punctuation should be accepted and escaped correctly.

Actual behavior

Some Lorebook entry names containing apostrophes or other punctuation fail because the characters are not escaped properly.

Steps to reproduce

  1. Open Lorebook Keeper.
  2. Create or rename a Lorebook entry using an apostrophe or other punctuation in the name.
  3. Observe that the entry name sometimes fails due to improper escaping.

Environment

  • Marinara Engine version: 2.4.5
  • Install type: termux
  • OS + version: Server: Android / Termux 5.10.209-android12-9-o-g63fb7a145195 (arm64); Client: Windows 10.0
  • Browser or app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:155.0) Gecko/20100101 Firefox/155.0

Logs, screenshots, or video

Screenshot attached: https://cdn.discordapp.com/attachments/1545951173151031356/1546682405409267752/image.png?ex=6aa0abbd&is=6a9f5a3d&hm=3b00494cabbdbc958580e72c8f2124049b484d1a5684ff9b356d5d9843bfe945

Additional context

The reporter noted that Lorebook Keeper now appears to edit the applied Lorebook correctly, but this punctuation-escaping issue is occurring as a new problem. Build: 2.4.5+1cf7c57cec0c; Commit: 1cf7c57cec.

Discord message: Discord message from DSBwizzard
Discord message link: https://discord.com/channels/1417099416812392641/1545951173151031356/1546682405644009512
Requested by: Kuc0 (kuc0, Discord ID 108988150629531648)

Discord message transcript (1 message)
[2026-09-08T00:43:41.475Z] DSBwizzard: Marinara Engine diagnostics
Version: 2.4.5
Build: 2.4.5+1cf7c57cec0c
Commit: 1cf7c57cec0c
Server OS: Android / Termux 5.10.209-android12-9-o-g63fb7a145195 (arm64)

Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:155.0) Gecko/20100101 Firefox/155.0

Lorebook Keeper seems to now actually edited the applied lorebook.

However it is now doing a New Thing. When naming Lorebook entries, it seems to sometimes hate apostrophes and other punctuation, failing to escape them properly.

[attached image 1: https://cdn.discordapp.com/attachments/1545951173151031356/1546682405409267752/image.png?ex=6aa0abbd&is=6a9f5a3d&hm=3b00494cabbdbc958580e72c8f2124049b484d1a5684ff9b356d5d9843bfe945&]
[Discord message: https://discord.com/channels/1417099416812392641/1545951173151031356/1546682405644009512]

Template check

Please uncheck (untick) 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 @SpicyMarinara on GitHub (Sep 8, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5946 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Lorebook Keeper sometimes fails to properly escape apostrophes and other punctuation when naming Lorebook entries. ## Expected behavior Lorebook entry names containing apostrophes or other punctuation should be accepted and escaped correctly. ## Actual behavior Some Lorebook entry names containing apostrophes or other punctuation fail because the characters are not escaped properly. ## Steps to reproduce 1. Open Lorebook Keeper. 2. Create or rename a Lorebook entry using an apostrophe or other punctuation in the name. 3. Observe that the entry name sometimes fails due to improper escaping. ## Environment - Marinara Engine version: 2.4.5 - Install type: termux - OS + version: Server: Android / Termux 5.10.209-android12-9-o-g63fb7a145195 (arm64); Client: Windows 10.0 - Browser or app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:155.0) Gecko/20100101 Firefox/155.0 ## Logs, screenshots, or video Screenshot attached: https://cdn.discordapp.com/attachments/1545951173151031356/1546682405409267752/image.png?ex=6aa0abbd&is=6a9f5a3d&hm=3b00494cabbdbc958580e72c8f2124049b484d1a5684ff9b356d5d9843bfe945 ## Additional context The reporter noted that Lorebook Keeper now appears to edit the applied Lorebook correctly, but this punctuation-escaping issue is occurring as a new problem. Build: 2.4.5+1cf7c57cec0c; Commit: 1cf7c57cec0c. Discord message: Discord message from DSBwizzard Discord message link: https://discord.com/channels/1417099416812392641/1545951173151031356/1546682405644009512 Requested by: Kuc0 (kuc0, Discord ID 108988150629531648) <details> <summary>Discord message transcript (1 message)</summary> ```text [2026-09-08T00:43:41.475Z] DSBwizzard: Marinara Engine diagnostics Version: 2.4.5 Build: 2.4.5+1cf7c57cec0c Commit: 1cf7c57cec0c Server OS: Android / Termux 5.10.209-android12-9-o-g63fb7a145195 (arm64) Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:155.0) Gecko/20100101 Firefox/155.0 Lorebook Keeper seems to now actually edited the applied lorebook. However it is now doing a New Thing. When naming Lorebook entries, it seems to sometimes hate apostrophes and other punctuation, failing to escape them properly. [attached image 1: https://cdn.discordapp.com/attachments/1545951173151031356/1546682405409267752/image.png?ex=6aa0abbd&is=6a9f5a3d&hm=3b00494cabbdbc958580e72c8f2124049b484d1a5684ff9b356d5d9843bfe945&] [Discord message: https://discord.com/channels/1417099416812392641/1545951173151031356/1546682405644009512] ``` </details> ## Template check Please **uncheck (untick)** 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 06:01:42 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 8, 2026):

@SpicyMarinara (Codex) is handling this issue in the maintainer-requested Issue Sweep PR #5962. Existing implementation PRs, draft PRs and issue-linked branches were checked before starting. The fix will reuse existing code and include focused regression proof; this comment records ownership, not completion.

<!-- gh-comment-id:5585133158 --> @SpicyMarinara commented on GitHub (Sep 8, 2026): @SpicyMarinara (Codex) is handling this issue in the maintainer-requested Issue Sweep PR #5962. Existing implementation PRs, draft PRs and issue-linked branches were checked before starting. The fix will reuse existing code and include focused regression proof; this comment records ownership, not completion.
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#3289
No description provided.