[GH-ISSUE #3533] [Issue]: Noodle profile generation fails entire batch on overlong formatted Name field #1906

Closed
opened 2026-10-21 05:43:42 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In Noodle Social Network mode, auto-generated profile metadata can fail when a character name with custom formatting exceeds the 120-character schema limit. A single validation error causes the entire timeline refresh/profile generation batch to fail.

Expected behavior

Overlong generated fields should be truncated or the invalid profile should be skipped with a warning, while valid profiles continue to apply.

Actual behavior

The entire timeline refresh fails with a Zod validation error when one generated profile has a name longer than 120 characters. Retries can fail again with the error index shifting between profiles.

Steps to reproduce

  1. Use Noodle Social Network mode with character accounts that need auto-generated metadata.
  2. Use or import a character with a custom formatted name that is technically over 120 characters, e.g. 133 characters due to formatting/combining characters.
  3. Trigger a Noodle timeline refresh.
  4. Allow the LLM to generate a profile where the name field exceeds 120 characters.

Environment

  • Marinara Engine version: v2.2.0 / a0113e5
  • Install type: installer
  • OS + version: Windows 11
  • Browser or app shell: Google Chrome Version 150.0.7871.101

Logs, screenshots, or video

No logs or screenshots provided. User reports Professor Mari identified a ZodError from noodleGeneratedProfilesSchema.parse() when generated profile name exceeds max length. Relevant code locations mentioned: schema in noodle.schema.ts around line 305 with name .max(120); prompt in noodle.routes.ts line 900 hints max 120; failing parse in noodle.routes.ts line 944.

Additional context

Example formatted name: "Who̶̥͛ is…she…?". User notes this is low priority because characters can be renamed, but it may affect custom-formatted names or imported characters. Suggested fixes from the report: use .max(120).transform(s => s.slice(0, 120)) or switch to safeParse with per-profile error handling.

Discord thread: Noodle profile generation fails entire batch on single field validation error (Name)
Discord thread link: https://discord.com/channels/1417099416812392641/1525889625393201383
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (1 message)
[2026-07-12T15:40:36.352Z] Mert Tolo: OS: Windows 11 (Google Chrome Version 150.0.7871.101) 
Inst-Method: Windows Installation, Method 1 (Windows Installer)
Version: v2.2.0 / a0113e5
Chatting Mode: Noodle Social Network


Hey, if I use characters with custom formated names - Who̶̥͛ is…she…? - in my case, it is "technically" over 120 characters (133 chars) and the timeline refresh in Noodle basically says no. 

This is not really breaking (as one could just rename their chars - hence the low priority), but could potentially cause issues with chracters that use custom formating in their names and/or are imported from other pages, so yeah - reporting, just to make sure.


Here is what Professor Mari gave me regarding that (shortened version):

What: generateMissingNoodleProfiles calls noodleGeneratedProfilesSchema.parse() (strict). If any generated profile exceeds max length (e.g. name > 120 chars), the whole batch fails — no truncation, no skipping the bad profile, just a ZodError and refresh dies.

Steps:
Have Noodle character accounts needing auto-generated metadata.
Trigger timeline refresh.
LLM produces a profile with name > 120 characters.

Expected: Overlong field truncated or bad profile skipped with warning; rest apply.
Actual: Entire refresh fails. Retries hit same issue on different profiles (error index shifts between 0 and 1).

Code:
Schema: noodle.schema.ts ~line 305 (name .max(120)).
Prompt: noodle.routes.ts line 900 (already hints max 120).
Failing parse: noodle.routes.ts line 944.

Suggested fix: Use .max(120).transform(s => s.slice(0, 120)) on the schema or switch to safeParse with per-profile error handling.
[Discord message: https://discord.com/channels/1417099416812392641/1525889625393201383/1525889625393201383]

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 (Jul 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3533 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In Noodle Social Network mode, auto-generated profile metadata can fail when a character name with custom formatting exceeds the 120-character schema limit. A single validation error causes the entire timeline refresh/profile generation batch to fail. ## Expected behavior Overlong generated fields should be truncated or the invalid profile should be skipped with a warning, while valid profiles continue to apply. ## Actual behavior The entire timeline refresh fails with a Zod validation error when one generated profile has a name longer than 120 characters. Retries can fail again with the error index shifting between profiles. ## Steps to reproduce 1. Use Noodle Social Network mode with character accounts that need auto-generated metadata. 2. Use or import a character with a custom formatted name that is technically over 120 characters, e.g. 133 characters due to formatting/combining characters. 3. Trigger a Noodle timeline refresh. 4. Allow the LLM to generate a profile where the name field exceeds 120 characters. ## Environment - Marinara Engine version: v2.2.0 / a0113e5 - Install type: installer - OS + version: Windows 11 - Browser or app shell: Google Chrome Version 150.0.7871.101 ## Logs, screenshots, or video No logs or screenshots provided. User reports Professor Mari identified a ZodError from noodleGeneratedProfilesSchema.parse() when generated profile name exceeds max length. Relevant code locations mentioned: schema in noodle.schema.ts around line 305 with name .max(120); prompt in noodle.routes.ts line 900 hints max 120; failing parse in noodle.routes.ts line 944. ## Additional context Example formatted name: "Who̶̥͛ is…she…?". User notes this is low priority because characters can be renamed, but it may affect custom-formatted names or imported characters. Suggested fixes from the report: use .max(120).transform(s => s.slice(0, 120)) or switch to safeParse with per-profile error handling. Discord thread: Noodle profile generation fails entire batch on single field validation error (Name) Discord thread link: https://discord.com/channels/1417099416812392641/1525889625393201383 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (1 message)</summary> ```text [2026-07-12T15:40:36.352Z] Mert Tolo: OS: Windows 11 (Google Chrome Version 150.0.7871.101) Inst-Method: Windows Installation, Method 1 (Windows Installer) Version: v2.2.0 / a0113e5 Chatting Mode: Noodle Social Network Hey, if I use characters with custom formated names - Who̶̥͛ is…she…? - in my case, it is "technically" over 120 characters (133 chars) and the timeline refresh in Noodle basically says no. This is not really breaking (as one could just rename their chars - hence the low priority), but could potentially cause issues with chracters that use custom formating in their names and/or are imported from other pages, so yeah - reporting, just to make sure. Here is what Professor Mari gave me regarding that (shortened version): What: generateMissingNoodleProfiles calls noodleGeneratedProfilesSchema.parse() (strict). If any generated profile exceeds max length (e.g. name > 120 chars), the whole batch fails — no truncation, no skipping the bad profile, just a ZodError and refresh dies. Steps: Have Noodle character accounts needing auto-generated metadata. Trigger timeline refresh. LLM produces a profile with name > 120 characters. Expected: Overlong field truncated or bad profile skipped with warning; rest apply. Actual: Entire refresh fails. Retries hit same issue on different profiles (error index shifts between 0 and 1). Code: Schema: noodle.schema.ts ~line 305 (name .max(120)). Prompt: noodle.routes.ts line 900 (already hints max 120). Failing parse: noodle.routes.ts line 944. Suggested fix: Use .max(120).transform(s => s.slice(0, 120)) on the schema or switch to safeParse with per-profile error handling. [Discord message: https://discord.com/channels/1417099416812392641/1525889625393201383/1525889625393201383] ``` </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 05:43:42 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

@SpicyMarinara commented on GitHub (Jul 12, 2026):

Claimed for implementation in draft PR #3539.

<!-- gh-comment-id:4953165064 --> @SpicyMarinara commented on GitHub (Jul 12, 2026): Claimed for implementation in draft PR #3539.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 12, 2026):

Fixed in PR #3539. Generated profile fields are bounded safely and malformed rows no longer discard valid profiles from the same batch. Covered by the Noodle regression suite.

<!-- gh-comment-id:4953237652 --> @SpicyMarinara commented on GitHub (Jul 12, 2026): Fixed in PR #3539. Generated profile fields are bounded safely and malformed rows no longer discard valid profiles from the same batch. Covered by the Noodle regression suite.
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#1906
No description provided.