mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8113] [MERGED] fix(mari): refuse full_page_access on Personal Extension drafts #8108
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#8108
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/8113
Author: @ylli-selmani
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @ylli-selmani
Base:
staging← Head:fix/mari-extension-full-page-access📝 Commits (1)
b0b8d29fix(mari): refuse full_page_access on personal extension drafts📊 Changes
3 files changed (+79 additions, -2 deletions)
View changed files
📝
packages/server/src/assets/mari-skills/extensions.md(+2 -1)📝
packages/server/src/services/mari-db/mari-db.service.ts(+11 -0)📝
scripts/regressions/mari/extensions-handbook.regression.ts(+66 -1)📄 Description
Linked issue
Closes #8110
Why this change
full_page_access,personal_extension.create/updatestored it. Thoseapp_dataactions build the row themselves, so they skipped the check innormalizePayloadthat refuses the capability forprofessor_maridrafts.preparePersonalExtensionTrustre-hashed the raw row (withfull_page_access), saw a mismatch and disabled the extension. Each approval was undone at the next restart, and Mari reported a different hash than the one the user approved. No DOM access was ever granted, so this is a correctness bug, not a security one.What changed
Mari refuses the capability up front (
mari-db.service.ts)personal_extension.createandpersonal_extension.updaterefuse a draft whose capabilities includefull_page_access, before anything is written:Personal Extensions cannot request "full_page_access"; only External Extensions can. Nothing was changed. Send "capabilities" without it and retry.capabilitieswithout the declaration. That repair also makes her hash match the one Settings shows.Handbook (
mari-skills/extensions.md)full_page_access" paragraph described the stuck hash. It now says the actions refuse it and how to repair an old draft. The errors table has the new refusal.Regression (
scripts/regressions/mari/extensions-handbook.regression.ts)full_page_accessare refused and write nothing, that an old draft carrying it refuses a metadata-only edit, and that after it's removed Mari'sgethash equals the hash Settings approves.stagingwithout the fix (a full_page_access draft is refused).Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run, for reference:
pnpm check,node scripts/run-regressions.mjs --filter regressions/mari/and--filter extension(results in the PR conversation).Manual verification notes
full_page_access. She should get the refusal and retry without it. Settings → Addons → Personal Extensions should show the samecontentHashas herpersonal_extension.get.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)No
docs/change; the only doc edited is Mari's bundled handbook.UI evidence (if applicable)
None: server-side only.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.