[GH-ISSUE #5067] [Issue]: I'm trying to add a regex from freaky Frankenstein 5.2 #2804

Closed
opened 2026-10-21 05:55:49 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @Zombieleaver on GitHub (Aug 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5067

Originally assigned to: @SpicyMarinara on GitHub.

Summary

I'm trying to add a regex from freaky Frankenstein 5.2:

but it gives me similar errors.

"Skipped 11 regex scripts. Entry 1 (Hapuppy Delete Thoughts): Regex pattern is unsafe: it may cause catastrophic backtracking. Avoid nested quantifiers and overly long patterns."

I've tried to fix everything with the help of AI and this "hint" more than once, but it rejects most of it every time. I just don't understand how to get through or let the engine accept it without question.

Originally created by @Zombieleaver on GitHub (Aug 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5067 Originally assigned to: @SpicyMarinara on GitHub. ## Summary I'm trying to add a regex from freaky Frankenstein 5.2: but it gives me similar errors. "Skipped 11 regex scripts. Entry 1 (Hapuppy Delete Thoughts): Regex pattern is unsafe: it may cause catastrophic backtracking. Avoid nested quantifiers and overly long patterns." I've tried to fix everything with the help of AI and this "hint" more than once, but it rejects most of it every time. I just don't understand how to get through or let the engine accept it without question.
bsakaguchi 2026-10-21 05:55:49 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 15, 2026):

Wrong repo, this should be posted in:
https://github.com/Pasta-Devs/Marinara-Engine/issues

Furthermore, is this happening on the latest staging? We already addressed this issue before.

<!-- gh-comment-id:5302641419 --> @SpicyMarinara commented on GitHub (Aug 15, 2026): Wrong repo, this should be posted in: https://github.com/Pasta-Devs/Marinara-Engine/issues Furthermore, is this happening on the latest staging? We already addressed this issue before.
Author
Owner

@Zombieleaver commented on GitHub (Aug 15, 2026):

yes, it happens on the latest update. Something happened to him in general, everything is lagging badly on the computer, the interface is also lagging by itself- and the page in the browser sometimes does not open immediately. and now, in general, requests are being sent to nanogpt - generation is taking place there. but the engine itself gives error 503.

{"level":40,"time":1786803492929,"pid":35164,"hostname":"DESKTOP-ITTG546","err":{"type":"Error","message":"NanoGPT API error 401: Invalid session","stack":"Error: NanoGPT API error 401: Invalid session\n at OpenAIProvider.chatComplete (file:///F:/meinge/Marinara-Engine/packages/server/dist/services/llm/providers/openai.provider.js:1257:19)\n at async withConnectionAdmission (file:///F:/meinge/Marinara-Engine/packages/server/dist/services/generation/connection-admission.js:148:24)\n at async ConnectionFallbackProvider.chatCompleteChain (file:///F:/meinge/Marinara-Engine/packages/server/dist/services/llm/connection-fallback-provider.js:241:28)\n at async ConnectionFallbackProvider.chatComplete (file:///F:/meinge/Marinara-Engine/packages/server/dist/services/llm/connection-fallback-provider.js:231:28)\n at async generateForCharacter (file:///F:/meinge/Marinara-Engine/packages/server/dist/routes/generate.routes.js:4693:42)\n at async Object. (file:///F:/meinge/Marinara-Engine/packages/server/dist/routes/generate.routes.js:5868:39)"},"msg":"[main-fallback] Primary generation failed before producing usable output; retrying with deepseek/deepseek-v4-flash-0731 (deepseek/deepseek-v4-flash:thinking)"}

<!-- gh-comment-id:5302641440 --> @Zombieleaver commented on GitHub (Aug 15, 2026): yes, it happens on the latest update. Something happened to him in general, everything is lagging badly on the computer, the interface is also lagging by itself- and the page in the browser sometimes does not open immediately. and now, in general, requests are being sent to nanogpt - generation is taking place there. but the engine itself gives error 503. {"level":40,"time":1786803492929,"pid":35164,"hostname":"DESKTOP-ITTG546","err":{"type":"Error","message":"NanoGPT API error 401: Invalid session","stack":"Error: NanoGPT API error 401: Invalid session\n at OpenAIProvider.chatComplete (file:///F:/meinge/Marinara-Engine/packages/server/dist/services/llm/providers/openai.provider.js:1257:19)\n at async withConnectionAdmission (file:///F:/meinge/Marinara-Engine/packages/server/dist/services/generation/connection-admission.js:148:24)\n at async ConnectionFallbackProvider.chatCompleteChain (file:///F:/meinge/Marinara-Engine/packages/server/dist/services/llm/connection-fallback-provider.js:241:28)\n at async ConnectionFallbackProvider.chatComplete (file:///F:/meinge/Marinara-Engine/packages/server/dist/services/llm/connection-fallback-provider.js:231:28)\n at async generateForCharacter (file:///F:/meinge/Marinara-Engine/packages/server/dist/routes/generate.routes.js:4693:42)\n at async Object.<anonymous> (file:///F:/meinge/Marinara-Engine/packages/server/dist/routes/generate.routes.js:5868:39)"},"msg":"[main-fallback] Primary generation failed before producing usable output; retrying with deepseek/deepseek-v4-flash-0731 (deepseek/deepseek-v4-flash:thinking)"}
Author
Owner

@SpicyMarinara commented on GitHub (Aug 15, 2026):

I’m taking this one. I’ll make batch imports retain regex scripts that trip the heuristic and surface a clear warning instead of reporting them as skipped, while keeping the existing runtime ReDoS guard in place. I’m also separating the NanoGPT 401 in the comments from this regex-import issue because it is an invalid provider session, not the regex path.

<!-- gh-comment-id:5302663726 --> @SpicyMarinara commented on GitHub (Aug 15, 2026): I’m taking this one. I’ll make batch imports retain regex scripts that trip the heuristic and surface a clear warning instead of reporting them as skipped, while keeping the existing runtime ReDoS guard in place. I’m also separating the NanoGPT 401 in the comments from this regex-import issue because it is an invalid provider session, not the regex path.
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#2804
No description provided.