mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5382] [MERGED] Fix safe bot-browser notes and background prompt review #6745
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#6745
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/5382
Author: @SpicyMarinara
Created: 8/22/2026
Status: ✅ Merged
Merged: 8/22/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/5377-5379-issue-sweep📝 Commits (4)
adaaa8dchore: start issue sweep for #5377 and #5379515676ffix(ui): secure bot notes and review backgrounds92366dffix(security): parse chat styles before sanitizing7f0d2cbfix(security): harden sanitized chat links📊 Changes
9 files changed (+410 additions, -189 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
e2e/core-flows.e2e.ts(+81 -8)📝
packages/client/src/components/bot-browser/BotBrowserView.tsx(+35 -5)📝
packages/client/src/components/chat/ChatArea.tsx(+1 -0)📝
packages/client/src/components/chat/ChatMessage.tsx(+8 -149)➕
packages/client/src/lib/chat-html.ts(+163 -0)📝
packages/server/src/routes/generate/retry-agents-route.ts(+36 -4)📝
packages/server/src/services/generation/illustrator-background-generation.ts(+61 -23)📝
scripts/regressions/prompt.regression.ts(+23 -0)📄 Description
Why
Bot-browser author notes currently expose raw HTML/CSS text, and manual Roleplay gallery backgrounds bypass the enabled media-prompt review gate. This sweep makes author notes readable without granting remote content access to scripts or surrounding UI, and makes manual background generation pause for the same review flow as illustrations.
Closes #5377
Closes #5379
Summary
Automated validation
pnpm localization:checkpnpm checkpnpm regression:promptpnpm smoke:ui— 255 passed, 107 platform-intentional skipsgit diff --checkThe browser proof verifies safe formatting, script/event removal, inert links, fixed-position containment, and no custom-property leakage to
body.Test plan
pnpm localization:check.pnpm check.pnpm smoke:ui.Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.