Skip to content

[Bounty proposal] fix(clickup-app): safely coerce assignee IDs, timestamp due dates, and priority in create_task #13922

Closed

Description

@Ivansky1

Symptom

  1. Assignee ID Crash on Non-Numeric Tokens: In plugins/omi-clickup-app/clickup_client.py (create_task), the assignee list was processed using task_data["assignees"] = [int(user_id) for user_id in assignees if user_id]. If assignees contains names (e.g. when fuzzy matching returns names or fallback tokens like "None"), whitespace strings, or None, int(user_id) raises an unhandled ValueError or TypeError. This error escapes into the outer exception handler and aborts task creation completely (return {"success": False, "error": str(e)}), preventing the task from ever being created in ClickUp.
  2. Timestamp Due Date Failure: create_task docstring states due_date: Optional due date in ISO format or Unix timestamp (milliseconds). However, passing a millisecond timestamp crashes with TypeError: argument of type 'int' is not iterable due to 'T' in due_date, or ValueError: Invalid isoformat string on numeric string timestamps.
  3. Unvalidated Priority: Priority inputs were passed directly without coercion to ClickUp's 1–4 priority scale.

Evidence

  • plugins/omi-clickup-app/clickup_client.py lines 346–350 and 366–395.
  • Tested: passing assignees=["sarah"] or due_date=1726358400000 causes unhandled exceptions that fail task creation.

Fix

  • Implemented ClickUpClient._coerce_assignee_ids(assignees) to safely extract positive integer IDs, filter invalid/sentinel values (None, "None", names, negatives, booleans) without throwing, and deduplicate IDs.
  • Enabled graceful continuation: if no valid assignee IDs are resolved, task creation logs a warning and continues rather than crashing.
  • Added support for numeric timestamps (integers, floats, digit strings) in milliseconds alongside ISO format strings.
  • Added priority coercion and boundary validation (1–4).
  • Added comprehensive unit test coverage in plugins/omi-clickup-app/test_clickup_client.py (14 passing tests in 0.02s) and registered clickup-client-tests in .github/checks-manifest.yaml.

PR ready: #13921


Bounty Payout Destination (EVM / Base USDC): 0xb5aFc89b57Fa8270bB7261348179D28099BEa2a0
cc @josancamon19 @kodjima33

Activity

  1. moved this from Someday to In progress in omi TODO / bountieson Sep 15, 2026
  2. aryanorastar commented on Sep 20, 2026

    @aryanorastar
    Collaborator

    Closing as already fixed on current main.

    Current main clickup create_task try/excepts int(assignees) and accepts int/str due_date timestamps

  3. moved this from In progress to In review in omi TODO / bountieson Sep 20, 2026
  4. t3ratech commented on Sep 21, 2026

    @t3ratech
    Contributor

    Bounty proposal: $50 proposed for the ClickUp input-coercion fix in PR #14093. This is a proposed amount, not a claim of payment; please confirm/award it if the fix is accepted. Payout rail: PayPal (configured operator address).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions