You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(decisioning): gate async-completion webhook emission on SPEC_WEBHOOK_TASK_TYPES (suppress spurious warning for non-spec task types) #931
After #930, emit_terminal_completion_webhook logs a spurious "terminal webhook silently dropped" WARNING for SDK-internal non-spec task types like finalize_proposal (an interception of get_products in proposal_dispatch.py, not a spec wire op and not in SPEC_WEBHOOK_TASK_TYPES) that legitimately have no webhook target wired. The dispatcher's _project_handoff now calls the emitter for every async task; non-spec internal task types flow through with target=None and trip the misconfig warning on every async finalize, even on a correctly-configured server.
Per the SDK rule documented above SPEC_WEBHOOK_TASK_TYPES in webhook_emit.py, task types not in the spec enum should skip webhook delivery silently and rely on tasks/get polling / publishStatusChange.
Fix: gate emit_terminal_completion_webhook on SPEC_WEBHOOK_TASK_TYPES at the TOP of the function — if the method_name is not in the spec enum, return early silently (no warning, no emission), before the target-None warning. A spec task type with a real target still emits; a spec task type with target=None (genuine misconfig) still warns.
Activity