refactor(session): remove request-scoped access grants (#5238)

This commit is contained in:
chengyongru authored and GitHub committed 2026-08-05 10:18:46 +08:00
1 parent 858f6d96a6
commit 6e9ae5bd05
12 files changed
+124 -230

No files matched your search

+1 -5
View File
@@ -947,11 +947,7 @@ def normalize_session_mentions_metadata(raw: object) -> list[dict[str, str]]:
continue
name = name.strip()[:80]
session_key = session_key.strip()[:512]
if (
not name
or _SESSION_MENTION_NAME_RE.fullmatch(name) is None
or not session_key.startswith("websocket:")
):
if not name or not session_key or _SESSION_MENTION_NAME_RE.fullmatch(name) is None:
continue
normalized.append({
"name": name,