Fix clickup_task_status not reaching tool ctx

The tool registry only forwarded clickup_task_id from args to ctx,
so clickup_task_status was silently filtered out. Phase 2 detection
in create_content never saw the original "outline approved" status.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fix/customer-field-migration
PeninsulaInd 2026-03-08 19:23:32 -05:00
parent b4f1ddfced
commit 7344781e73
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ class ToolRegistry:
# Pass scheduler-injected metadata through ctx (not LLM-visible)
if "clickup_task_id" in args:
ctx["clickup_task_id"] = args.pop("clickup_task_id")
if "clickup_task_status" in args:
ctx["clickup_task_status"] = args.pop("clickup_task_status")
args["ctx"] = ctx
# Filter args to only params the function accepts (plus **kwargs)