mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2625] [MERGED] feat(regex): scoped-regex management polish — global-only Presets, character-card manager, name fix #5691
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#5691
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/2625
Author: @kolacheee
Created: 6/18/2026
Status: ✅ Merged
Merged: 6/18/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/staging-scoped-regex-polish📝 Commits (3)
0c36fd0feat(regex): scoped-regex management — global-only Presets, character-card manager, name fixe460ab8feat(regex): return to the character's Advanced tab when closing the regex editorf63255efix(regex): correct scoped import export icons📊 Changes
6 files changed (+434 additions, -27 deletions)
View changed files
📝
packages/client/src/components/agents/RegexScriptEditor.tsx(+10 -4)📝
packages/client/src/components/characters/CharacterEditor.tsx(+14 -2)➕
packages/client/src/components/characters/CharacterRegexSection.tsx(+350 -0)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+16 -13)📝
packages/client/src/components/panels/PresetsPanel.tsx(+7 -1)📝
packages/client/src/stores/ui.store.ts(+37 -7)📄 Description
Linked issue
Closes #2624.
Why this change
Follow-up polish to the character-scoped regex feature (#2603). Scoped scripts still polluted the global Presets → Regexes list, had no dedicated management home, and the per-character list in Chat Settings mislabeled its groups. This makes scoped regex behave as intended: scoped scripts live with the character; global scripts live in Presets.
What changed
targetCharacterIds), including ST cards imported as "Character only," are filtered out of the global list.CharacterRegexSection) to list / create / edit / delete / toggle / import / export that character's scoped scripts. "Create" opens the existingRegexScriptEditorpre-scoped to the character via a newopenRegexDetail(id, { defaultCharacterIds })option.parseCharacterDisplayData) instead of the literal "Character".These three are coupled: hiding scoped scripts from Presets removes their only create/edit/delete surface (Chat Settings only toggles them), so the character-card manager is the replacement home.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.