feat(whatsapp): real group @mentions and cleaner inbound text

Wire mention JIDs/names through scheduled delivery and immediate replies (including attachment captions), sanitize group message text for the model, and surface channel-derived sessions in admin Chat.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-07-13 20:05:43 +08:00
parent cbe68a54cd
commit ad5d1db3c6
19 changed files with 1507 additions and 58 deletions

View file

@ -22,6 +22,7 @@ class SkillExecutionContext:
session_id: str
lang: str = "zh"
user_text: str = ""
inbound_metadata: dict[str, Any] | None = None
specialist: str = "oclaw"
trace_id: str | None = None
parent_span_id: str | None = None
@ -160,6 +161,7 @@ class SkillExecutor:
session_id=ctx.session_id,
lang=ctx.lang,
user_text=ctx.user_text,
inbound_metadata=ctx.inbound_metadata,
specialist=ctx.specialist,
task_kind="turn",
policy_engine=None,