mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4000] [MERGED] Harden Personal Extensions and polish Settings UI #6195
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#6195
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/4000
Author: @SpicyMarinara
Created: 7/23/2026
Status: ✅ Merged
Merged: 7/23/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/sandbox-external-extensions📝 Commits (4)
3aaab50Harden extensions and Settings UI67e14d7Merge branch 'staging' into agent/sandbox-external-extensions2a153edHarden extension sandbox boundaries and localize approval dialog07e7037docs: add extension platform-support table📊 Changes
29 files changed (+1900 additions, -702 deletions)
View changed files
📝
.env.example(+4 -0)📝
CHANGELOG.md(+4 -1)📝
README.md(+1 -1)📝
docs/CONFIGURATION.md(+9 -0)📝
docs/FAQ.md(+8 -0)📝
docs/TROUBLESHOOTING.md(+15 -0)📝
docs/development/frontend.md(+2 -2)📝
docs/development/personal-extensions.md(+39 -28)📝
docs/extending/personal-extensions.md(+37 -46)📝
docs/home/professor-mari.md(+1 -1)📝
docs/settings/settings-overview.md(+1 -1)📝
e2e/core-flows.e2e.ts(+58 -58)📝
packages/client/src/components/layout/PersonalExtensionInjector.tsx(+136 -162)📝
packages/client/src/components/panels/SettingsPanel.tsx(+73 -6)📝
packages/client/src/components/panels/settings/PersonalExtensionsSettings.tsx(+141 -112)📝
packages/client/src/components/panels/settings/SettingControls.tsx(+4 -4)📝
packages/client/src/hooks/use-personal-extensions.ts(+24 -3)📝
packages/client/src/localization/locales/en.json(+32 -1)➕
packages/server/src/assets/personal-extension-runner.mjs(+241 -0)📝
packages/server/src/config/env-watcher.ts(+9 -0)...and 9 more files
📄 Description
Linked issue
Closes #3999
Why this change
Personal Extensions mixed Professor Mari-authored drafts with third-party imports and previously relied on in-process or same-page execution boundaries that were not suitable for untrusted code. The Settings UI also exposed user authoring/import actions by default, cramped the Custom sound copy beside its controls, and used hard-coded colors instead of the selected accent.
This change makes extension execution default-deny, keeps third-party code hidden until the host and user deliberately opt in, and gives browser and server code narrow sandbox boundaries. It also includes the earlier Settings layout and accent-color fixes requested in the same maintainer review.
What changed
ENABLE_EXTERNAL_EXTENSIONS=trueand the user accepts the warning through the final control at the bottom of Advanced > Danger Zone.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAdditional automated validation performed:
pnpm regression:extensions-securitypnpm version:checkgit diff --checkManual verification notes
No human manual verification is claimed. The relevant desktop/mobile paths were exercised through Playwright, including the empty state and computed accent color. The full smoke suite previously encountered an unrelated Custom Mouse Pointer reload assertion; the scoped extension and Settings tests pass.
Docs and release impact
Documentation and changelog updates are included. This PR does not bump the application version.
UI evidence (if applicable)
The original maintainer report included the narrow Custom sound layout screenshot. No new screenshot artifact is attached; reviewers should manually verify dark/light themes and the final Danger Zone placement before marking the PR ready.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.