mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-11 00:43:18 +08:00
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:
parent
62ac04c40d
commit
146d83c336
4 changed files with 89 additions and 3 deletions
|
|
@ -1144,6 +1144,7 @@ def _execute_tool_step(
|
|||
inbound_metadata: dict[str, Any] | None = None,
|
||||
) -> tuple[int, dict[str, tuple[dict[str, Any], int]]]:
|
||||
t0 = time.perf_counter()
|
||||
lane = str(workspace_lane_role or "").strip().lower()
|
||||
_tool_messages, results_by_id = skill_exec.execute_skill_uses(
|
||||
ctx=SkillExecutionContext(
|
||||
store=store,
|
||||
|
|
@ -1152,7 +1153,7 @@ def _execute_tool_step(
|
|||
lang=lang,
|
||||
user_text=user_text,
|
||||
inbound_metadata=inbound_metadata,
|
||||
specialist="oclaw",
|
||||
specialist=lane or "oclaw",
|
||||
trace_id=trace_id,
|
||||
parent_span_id=parent_span_id,
|
||||
workspace_dir=workspace_dir,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue