fix(tools): forward senderIsOwner to embedded runner so owner-only tools work (#22296)

Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 0baca5ccc1
Co-authored-by: hcoj <1169805+hcoj@users.noreply.github.com>
Co-authored-by: obviyus <22031114+obviyus@users.noreply.github.com>
Reviewed-by: @obviyus
This commit is contained in:
hcoj
2026-02-21 03:03:58 +00:00
committed by GitHub
parent d94d21f9b0
commit 5dae5e6ef2
5 changed files with 5 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ const INBOUND_METADATA_HEADERS = [
"Forwarded message context (untrusted metadata):",
"Chat history since last reply (untrusted, for context):",
];
const REGEX_ESCAPE_RE = /[.*+?^${}()|[\]\\\-]/g;
const REGEX_ESCAPE_RE = /[.*+?^${}()|[\]\\-]/g;
const INBOUND_METADATA_PREFIX_RE = new RegExp(
"^\\s*(?:" +
INBOUND_METADATA_HEADERS.map((header) => header.replace(REGEX_ESCAPE_RE, "\\$&")).join("|") +