mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-11 05:20:44 +08:00
feat(scheduler): add scheduled jobs with channel-aware delivery
Introduce persisted cron/interval jobs, gateway scheduler loop, worker turns, and admin CRUD/edit UI. Route proactive reminders via the originating chat channel (WhatsApp vs WeChat), harden Weixin outbound with durable queue and PG-compatible polling, and fix chat UI to show each scheduled reminder separately. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
5336f8835f
commit
47813f6a94
45 changed files with 4956 additions and 43 deletions
|
|
@ -161,8 +161,18 @@ def run_attempt(*, store: Any, data: AttemptRunnerInput) -> AttemptRunnerOutput:
|
|||
on_tool_ui=data.on_tool_ui,
|
||||
should_stop=data.should_stop,
|
||||
workspace_owner_session_id=_workspace_owner_session_id_from_msg(data.msg),
|
||||
path_policy_tenant_id=str(data.msg.metadata.get("tenant_id") or "") if isinstance(data.msg.metadata, dict) else None,
|
||||
path_policy_user_id=str(data.msg.metadata.get("user_id") or "") if isinstance(data.msg.metadata, dict) else None,
|
||||
path_policy_tenant_id=str(data.msg.tenant_id or "")
|
||||
or (
|
||||
str(data.msg.metadata.get("tenant_id") or "")
|
||||
if isinstance(data.msg.metadata, dict)
|
||||
else ""
|
||||
),
|
||||
path_policy_user_id=str(data.msg.user_id or "")
|
||||
or (
|
||||
str(data.msg.metadata.get("user_id") or "")
|
||||
if isinstance(data.msg.metadata, dict)
|
||||
else ""
|
||||
),
|
||||
workspace_dir=data.workspace_dir,
|
||||
memory_context=data.memory_context,
|
||||
persist_user_message=bool(data.persist_user_message),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue