From 7344781e73d99273af2f1962bdada331a02fa5ed Mon Sep 17 00:00:00 2001 From: PeninsulaInd Date: Sun, 8 Mar 2026 19:23:32 -0500 Subject: [PATCH] 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 --- cheddahbot/tools/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cheddahbot/tools/__init__.py b/cheddahbot/tools/__init__.py index 3aa90be..2b8be51 100644 --- a/cheddahbot/tools/__init__.py +++ b/cheddahbot/tools/__init__.py @@ -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)