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

@ -149,6 +149,7 @@ def run_attempt(*, store: Any, data: AttemptRunnerInput) -> AttemptRunnerOutput:
tools=data.tools,
user_text=data.msg.text,
attachments=data.msg.attachments,
inbound_metadata=data.msg.metadata if isinstance(data.msg.metadata, dict) else None,
trace_id=data.trace_id,
parent_span_id=data.parent_span_id,
run_id=data.run_id,