Commit e4ba679c by sunqi02

fix(message-gate): ensure room_id is persisted when session pre-created by SessionBuffer

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 81f6b525
......@@ -40,6 +40,10 @@ class ActiveSessionService:
# 1. 先查内存(热路径)
existing = self.store.get(session_id)
if existing:
# SessionBuffer 可能预创建 session 但不带 room_id,这里补上
if room_id and not existing.get("room_id"):
existing["room_id"] = room_id
self.store.set(session_id, existing)
return ActiveSessionInfo(
id=session_id,
session_id=session_id,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!