mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5067] [Issue]: I'm trying to add a regex from freaky Frankenstein 5.2 #2804
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2804
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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.
@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)"}
@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.