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

@@ -13,7 +13,6 @@ from websockets.exceptions import ConnectionClosed
from websockets.frames import Close
from nanobot.bus.events import (
INBOUND_META_SESSION_READ_SCOPE,
OUTBOUND_META_AGENT_UI,
OutboundMessage,
)
@@ -416,7 +415,6 @@ async def test_webui_message_envelope_marks_inbound_metadata(bus: MagicMock) ->
assert msg.channel == "websocket"
assert msg.chat_id == "chat-1"
assert msg.metadata["webui"] is True
assert INBOUND_META_SESSION_READ_SCOPE not in msg.metadata
assert msg.metadata["webui_turn_id"] == "turn-1"
assert msg.metadata["_wants_stream"] is True
lines = read_transcript_lines("websocket:chat-1")