fix(scheduler): inherit creator specialist when creating scheduled jobs

Pass the active workspace lane into tool execution and default schedule_create to that specialist so WhatsApp ops-bound jobs are stored and run as ops instead of generalist.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-07-21 15:42:58 +08:00
parent 62ac04c40d
commit 146d83c336
4 changed files with 89 additions and 3 deletions

View file

@ -1309,7 +1309,7 @@ def process_inbound_payload(payload: dict[str, Any]) -> dict[str, Any]:
store,
tenant_id=tenant_id,
user_id=user_id,
specialist="generalist",
specialist=selected_specialist,
session_id=str(session_id),
lang=lang,
)