mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 01:50:44 +08:00
Gate group speaker isolation to shared chat sessions only.
Per-user group sessions (user_in_chat) already isolate history; keep Sender tags and focus hints only when session_scope=chat (legacy shared __group__ transcripts). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
e91e4fe773
commit
9bbac6c0b8
5 changed files with 50 additions and 21 deletions
|
|
@ -1453,15 +1453,21 @@ def process_inbound_payload(payload: dict[str, Any]) -> dict[str, Any]:
|
|||
)
|
||||
if str(lang or "").startswith("zh"):
|
||||
busy_text = (
|
||||
"本会话还有请求在处理,你这条已排队,完成后会继续回答。"
|
||||
if bool(getattr(inbound, "is_group", False))
|
||||
"本群共享会话还有请求在处理,你这条已排队,完成后会继续回答。"
|
||||
if (
|
||||
bool(getattr(inbound, "is_group", False))
|
||||
and str(group_policy.session_scope or "") == "chat"
|
||||
)
|
||||
else "还在处理上一条请求,这条会排队合并处理。"
|
||||
)
|
||||
else:
|
||||
busy_text = (
|
||||
"Still working on an earlier request in this chat; "
|
||||
"Still working on an earlier request in this shared group chat; "
|
||||
"your message is queued and will be answered next."
|
||||
if bool(getattr(inbound, "is_group", False))
|
||||
if (
|
||||
bool(getattr(inbound, "is_group", False))
|
||||
and str(group_policy.session_scope or "") == "chat"
|
||||
)
|
||||
else "Still working on your previous request; "
|
||||
"I'll merge this follow-up next."
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue