[GH-ISSUE #799] [Issue]: Assistant command parser can mangle smart punctuation and silently fail card writes #393

Closed
opened 2026-10-20 17:28:22 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @cha1latte on GitHub (May 13, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/799

Originally assigned to: @cha1latte on GitHub.

## Summary

Assistant command parsing appears to mangle or reject smart punctuation in generated commands, especially curly/fancy quotes and em dashes, causing character update commands and alternate greeting writes to silently fail, partially apply, or clear fields.

Source: Discord report from reverendRole, 2-Star, posted May 12, 2026.

Expected behavior

Assistant-generated commands should either accept common smart punctuation in command values or reject malformed command syntax safely with a visible error. Character updates and alternate greeting writes should not silently clear fields, partially apply, or report success when no card change occurred.

Actual behavior

Commands can appear to succeed from the assistant's perspective while producing no visible character card change. In some cases, [update_character] commands reportedly resulted in empty or cleared fields instead of the intended content.

The reporter initially suspected Safari/WebKit PWA storage behavior because the issue was observed in a macOS Safari "Add to Dock" web app and appeared to improve after switching to a Gecko/Firefox-based browser. Follow-up narrowed the likely cause to the assistant command parser choking on fancy quotes and em dashes; Safari may have been a red herring.

Steps to reproduce

  1. Open a Professor Mari chat.
  2. Ask Mari to perform an assistant command that writes to a character card field or alternate greeting.
  3. Include smart punctuation in the generated command value, such as curly quotes (“ ”, ‘ ’) or an em dash (—).
  4. Observe whether the assistant reports success.
  5. Open the character card editor.
  6. Check whether the intended field changed, stayed unchanged, partially applied, or was cleared.

Known limitation: the reporter could not reproduce the failure consistently yet, and no exact failing command payload was provided.

Marinara Engine version

Not specified.

Install type

Other

OS + version

macOS, exact version not specified. Observed in May 2026.

Browser or app shell

Initially observed in Safari Add to Dock PWA mode. Reporter later noted Safari may be a red herring after identifying command text mangling; Gecko/Firefox-based Zen Browser did not show the same failure in the comparison attempt.

Screenshots or video

Not a visual/UI issue.

Logs

Not provided. Browser console errors were requested but not available in the report.

Additional context

Reporter notes:

  • Original symptoms included [update_character] commands clearing fields or producing no visible card change.
  • Commands appeared successful to the assistant even when no visible update happened.
  • The reporter later identified that the commands being sent were getting mangled.
  • Follow-up suspicion: parser choking on fancy quotes and em dashes.
  • The reporter rebuilt the Safari PWA and noted assistant "thinking" replies began working again, which may be a separate Safari/PWA lifecycle issue.
  • The issue is intermittent and needs a minimized failing command payload when available.

Template check

  • I provided the required summary, behavior, reproduction, and environment details.
  • If this is a visual/UI bug, blank screen, layout issue, mobile/responsive issue, incorrect image or sprite, broken animation, or unexpected error state, I attached screenshots or video.
Originally created by @cha1latte on GitHub (May 13, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/799 Originally assigned to: @cha1latte on GitHub. ## Summary Assistant command parsing appears to mangle or reject smart punctuation in generated commands, especially curly/fancy quotes and em dashes, causing character update commands and alternate greeting writes to silently fail, partially apply, or clear fields. Source: Discord report from reverendRole, 2-Star, posted May 12, 2026. ## Expected behavior Assistant-generated commands should either accept common smart punctuation in command values or reject malformed command syntax safely with a visible error. Character updates and alternate greeting writes should not silently clear fields, partially apply, or report success when no card change occurred. ## Actual behavior Commands can appear to succeed from the assistant's perspective while producing no visible character card change. In some cases, `[update_character]` commands reportedly resulted in empty or cleared fields instead of the intended content. The reporter initially suspected Safari/WebKit PWA storage behavior because the issue was observed in a macOS Safari "Add to Dock" web app and appeared to improve after switching to a Gecko/Firefox-based browser. Follow-up narrowed the likely cause to the assistant command parser choking on fancy quotes and em dashes; Safari may have been a red herring. ## Steps to reproduce 1. Open a Professor Mari chat. 2. Ask Mari to perform an assistant command that writes to a character card field or alternate greeting. 3. Include smart punctuation in the generated command value, such as curly quotes (`“ ”`, `‘ ’`) or an em dash (`—`). 4. Observe whether the assistant reports success. 5. Open the character card editor. 6. Check whether the intended field changed, stayed unchanged, partially applied, or was cleared. Known limitation: the reporter could not reproduce the failure consistently yet, and no exact failing command payload was provided. ## Marinara Engine version Not specified. ## Install type Other ## OS + version macOS, exact version not specified. Observed in May 2026. ## Browser or app shell Initially observed in Safari Add to Dock PWA mode. Reporter later noted Safari may be a red herring after identifying command text mangling; Gecko/Firefox-based Zen Browser did not show the same failure in the comparison attempt. ## Screenshots or video Not a visual/UI issue. ## Logs Not provided. Browser console errors were requested but not available in the report. ## Additional context Reporter notes: - Original symptoms included `[update_character]` commands clearing fields or producing no visible card change. - Commands appeared successful to the assistant even when no visible update happened. - The reporter later identified that the commands being sent were getting mangled. - Follow-up suspicion: parser choking on fancy quotes and em dashes. - The reporter rebuilt the Safari PWA and noted assistant "thinking" replies began working again, which may be a separate Safari/PWA lifecycle issue. - The issue is intermittent and needs a minimized failing command payload when available. ## Template check - [ ] I provided the required summary, behavior, reproduction, and environment details. - [ ] If this is a visual/UI bug, blank screen, layout issue, mobile/responsive issue, incorrect image or sprite, broken animation, or unexpected error state, I attached screenshots or video.
bsakaguchi 2026-10-20 17:28:22 +07:00
  • closed this issue
  • added the
    bug
    label
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#393
No description provided.