mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3954] [MERGED] Harden custom agent file imports #6175
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#6175
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/3954
Author: @SpicyMarinara
Created: 7/22/2026
Status: ✅ Merged
Merged: 7/22/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/harden-agent-imports📝 Commits (3)
a4cdc78Harden custom agent file imports0168f8afix: count only bundled agent functions6e2da25Merge remote-tracking branch 'origin/staging' into agent/harden-agent-imports📊 Changes
8 files changed (+296 additions, -144 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/agents/custom-agents.md(+4 -2)📝
docs/extending/custom-tools.md(+1 -1)📝
package.json(+2 -1)📝
packages/client/src/components/agents/AgentEditor.tsx(+14 -28)📝
packages/client/src/components/panels/AgentsPanel.tsx(+26 -96)📝
packages/client/src/lib/agent-transfer.ts(+107 -16)➕
scripts/regressions/agent-import-security.regression.ts(+141 -0)📄 Description
Linked issue
Closes #3953
Why this change
enabledToolsand automatically create bundled custom functions. An activated third-party agent could then call an attacker-controlled webhook and send hidden conversation context.Pasta-Devs/Marinara-Agentscatalog are a separate trusted-code path and remain unaffected.What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated evidence produced during implementation:
pnpm regression:agent-import-securitypassed.pnpm checkpassed after the final code changes. ESLint reported one pre-existing warning inHomeProfessorMariChat.tsx, with zero errors.Manual verification notes
spotifytype creates a separate custom agent without changing Music DJ.Docs and release impact
Updated
docs/agents/custom-agents.md,docs/extending/custom-tools.md, andCHANGELOG.md. No version bump.UI evidence (if applicable)
No screenshot captured; the only visible change is inline import-status copy when bundled functions are skipped.
Summary by CodeRabbit
Security
Documentation
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.