mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 14:38:25 +00:00
fix(security): separate untrusted channel metadata from system prompt (thanks @KonstantinMirin)
This commit is contained in:
@@ -67,6 +67,7 @@ export type ExternalContentSource =
|
||||
| "email"
|
||||
| "webhook"
|
||||
| "api"
|
||||
| "channel_metadata"
|
||||
| "web_search"
|
||||
| "web_fetch"
|
||||
| "unknown";
|
||||
@@ -75,6 +76,7 @@ const EXTERNAL_SOURCE_LABELS: Record<ExternalContentSource, string> = {
|
||||
email: "Email",
|
||||
webhook: "Webhook",
|
||||
api: "API",
|
||||
channel_metadata: "Channel metadata",
|
||||
web_search: "Web Search",
|
||||
web_fetch: "Web Fetch",
|
||||
unknown: "External",
|
||||
|
||||
Reference in New Issue
Block a user