Skip to content

[Bug] AutoClaw (macOS 2.0.2): schedule_task always rejected with "Invalid UUID" on internal commandId #924

Description

@romangalaxys10-spec

Environment

  • Product: AutoClaw (z.ai) macOS desktop app
  • Version: 2.0.2 (com.zhipuai.autoclaw2)
  • Platform: macOS (darwin, arm64)
  • Credit: Reported by community user eskibars on Discord

Bug Summary

Every invocation of the schedule_task tool in AutoClaw fails validation and is rejected by the host before execution, making the task scheduling feature completely unusable.

Error Output

{
  "status": "rejected",
  "code": "[{\"origin\":\"string\",\"code\":\"invalid_format\",\"format\":\"uuid\",\"pattern\":\"/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/\",\"path\":[\"commandId\"],\"message\":\"Invalid UUID\"}]"
}

Root Cause Analysis

  1. commandId is not present in the tool's public schema (label, schedule, action, policies). The caller does not supply commandId.
  2. The failing value is generated internally on the host side.
  3. At schema validation time, commandId appears to be undefined, empty, or unpopulated before the UUID regex validator runs.

Steps to Reproduce

Call schedule_task with a minimal valid payload:

{
  "label": "test",
  "schedule": { "kind": "at", "delayMs": 300000 },
  "action": { "kind": "agent_prompt", "prompt": "Reply READY." },
  "policies": {
    "misfire": { "policy": "run_once", "graceMs": 3600000 },
    "overlap": "skip",
    "retry": { "maxAttempts": 1, "backoffMs": 600000 }
  }
}

Expected: Task created and scheduled.
Actual: Rejected immediately with "Invalid UUID" on commandId.


Impact

Recurring and delayed agent workflows cannot run. Every scheduled task fails before instantiation.

Suggested Fix

Ensure commandId is assigned a valid UUID string before the schema validation layer executes on the host.

Activity

  1. github-actions commented on Oct 5, 2026

    @github-actions

    👋 感谢你的反馈,我们已经收到。

    • 维护者看到后会尽快回复你。
    • 状态保持为 status: 待评估,你可以随时补充信息。
    • 信息不全时我们会打上 needs: 更多信息 标签并 @ 你。

    👋 Thanks — we've received your issue.

    • A maintainer will get back to you as soon as we can.
    • Status stays at status: 待评估 (Triage); feel free to add context.
    • If we need more details, we'll add needs: 更多信息 and ping you.
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions