mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5037] [MERGED] Fix CSRF, prompt, persona, and regex import regressions #6598
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#6598
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5037
Author: @SpicyMarinara
Created: 8/14/2026
Status: ✅ Merged
Merged: 8/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/issue-sweep-5030-5033-5036📝 Commits (3)
85d129bchore: start remaining issue sweep8cd2b13fix: address remaining issue sweep446272etest: harden issue sweep regressions📊 Changes
10 files changed (+156 additions, -57 deletions)
View changed files
📝
CHANGELOG.md(+7 -0)📝
packages/client/src/components/characters/CharacterRegexSection.tsx(+16 -7)📝
packages/server/src/config/runtime-config.ts(+1 -1)📝
packages/server/src/services/mari-db/mari-db.service.ts(+1 -0)📝
packages/server/src/services/prompt/assembler.ts(+0 -14)📝
packages/server/src/services/prompt/marker-expander.ts(+4 -13)📝
scripts/regressions/assigned-issue-sweep.regression.ts(+47 -0)📝
scripts/regressions/mari-db-review-durability.regression.ts(+43 -1)📝
scripts/regressions/prompt.regression.ts(+26 -21)📝
scripts/regressions/request-host-security.regression.ts(+11 -0)📄 Description
Linked issues
Closes #5030
Closes #5031
Closes #5033
Closes #5036
Issue #5032 is already fixed on staging by #5027 and will be closed separately with that proof.
Why this change
The remaining open Engine reports came from four narrow regressions: a deployment sentinel treated as an origin, a prompt fallback overriding preset intent, a missing required persona default, and character-scoped regex imports rejecting otherwise usable entries.
What changed
nullvalues inCSRF_TRUSTED_ORIGINSas unset while retaining real origins.useCharacterSheetAsReference: "false"when Professor Mari creates a persona.Validation
Automated evidence
pnpm check— passedpnpm regression:request-security— passedpnpm regression:prompt— passedpnpm regression:mari-review-durability— passedpnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/assigned-issue-sweep.regression.ts— passedpnpm localization:check— passedgit diff --check— passedpnpm smoke:ui— non-gating run stopped after 143 passes because unrelated existing navigation, catalog, Noodle-tour, and Professor Mari mobile tests timed out or failed under the two-worker run; no failure exercised a changed path.Manual verification notes
CSRF_TRUSTED_ORIGINS=null.Docs and release impact
No user-facing documentation or release metadata changes are required. The Unreleased changelog is updated.
UI evidence
The scoped regex importer reuses the existing amber localized warning treatment from the global regex importer; no visual redesign or new copy was introduced.
Summary by CodeRabbit
Bug Fixes
nullvalues while preserving valid origins.Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.