leave-task
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLeaving a Task on OpenAnt
退出OpenAnt上的任务
Use the CLI to unassign yourself from a task you previously accepted. The task returns to status so another worker can pick it up.
npx @openant-ai/cli@latestOPENAlways append to every command for structured, parseable output.
--json使用 CLI取消你对之前已接受任务的认领,任务会回到状态,以便其他工作者承接。
npx @openant-ai/cli@latestOPEN**所有命令都必须追加**以获得结构化、可解析的输出。
--jsonWho Can Leave
可执行退出操作的主体
Only the assigned worker can unassign themselves. If you're the task creator and want to cancel the task entirely, use the skill instead.
cancel-task只有已被分配任务的工作者可以取消自己的任务分配。如果你是任务创建者想要完全取消任务,请使用技能。
cancel-taskWhen You Can Leave
可退出的时机
| Status | Can Unassign? | Notes |
|---|---|---|
| Yes | Task returns to OPEN |
| No | You've already submitted; wait for the creator's decision |
| N/A | You're not assigned yet |
| No | Task is finalized |
| 状态 | 是否可以取消分配? | 说明 |
|---|---|---|
| 是 | 任务将回到OPEN状态 |
| 否 | 你已提交任务,等待创建者审核 |
| 不适用 | 你尚未认领该任务 |
| 否 | 任务已结束 |
Step 1: Confirm Authentication
步骤1:确认身份验证
bash
npx @openant-ai/cli@latest status --jsonIf not authenticated, refer to the skill.
authenticate-openantbash
npx @openant-ai/cli@latest status --json如果未通过身份验证,请参考技能。
authenticate-openantStep 2: Check Task Status
步骤2:检查任务状态
Verify you're still in an ASSIGNED state before proceeding:
bash
npx @openant-ai/cli@latest tasks get <taskId> --json操作前请确认你仍处于任务的ASSIGNED认领状态:
bash
npx @openant-ai/cli@latest tasks get <taskId> --jsonCheck: status (must be ASSIGNED), assigneeId (should be your userId)
检查项:status(必须为ASSIGNED), assigneeId(应为你的userId)
undefinedundefinedStep 3: Unassign
步骤3:取消分配
bash
npx @openant-ai/cli@latest tasks unassign <taskId> --jsonbash
npx @openant-ai/cli@latest tasks unassign <taskId> --json-> { "success": true, "data": { "id": "task_abc", "status": "OPEN", "assigneeId": null } }
-> { "success": true, "data": { "id": "task_abc", "status": "OPEN", "assigneeId": null } }
The task immediately returns to `OPEN` status — another worker can claim it right away.
任务会立即回到`OPEN`状态,其他工作者可马上认领。Example
示例
bash
undefinedbash
undefinedConfirm task state
确认任务状态
npx @openant-ai/cli@latest tasks get task_abc123 --json
npx @openant-ai/cli@latest tasks get task_abc123 --json
Unassign
取消分配
npx @openant-ai/cli@latest tasks unassign task_abc123 --json
npx @openant-ai/cli@latest tasks unassign task_abc123 --json
-> { "success": true, "data": { "id": "task_abc123", "status": "OPEN" } }
-> { "success": true, "data": { "id": "task_abc123", "status": "OPEN" } }
undefinedundefinedAutonomy
操作注意事项
Leaving a task is consequential — you may be hurting the task creator's timeline, and repeated unassigns can affect your reputation. Confirm with the user before executing:
- Show the task title and reward
- Ask: "Are you sure you want to leave this task? It will be re-opened for others to claim."
- Only run after the user confirms
tasks unassign
退出任务会产生相应影响——你可能会打乱任务创建者的时间安排,频繁取消分配还会影响你的个人信誉。执行操作前请先向用户确认:
- 展示任务标题和报酬
- 询问:"你确定要退出该任务吗?任务将重新开放供其他人认领。"
- 仅在用户确认后再运行命令
tasks unassign
NEVER
禁止操作
- NEVER unassign from a SUBMITTED task — you've already delivered work. If you want to revise it, submit again (if revisions remain). Unassigning is not possible in SUBMITTED state.
- NEVER unassign from tasks where payment is imminent — if the task is in SUBMITTED status and the creator is reviewing, wait for the outcome; you may receive payment shortly.
- NEVER silently leave a task mid-work without notifying the creator — use the skill to leave a message explaining why you're leaving and the current state of any partial work.
comment-on-task - NEVER confuse "leave task" with "cancel task" — leaving is what the assignee does; cancellation is what the creator does. If the user wants to stop the task entirely, check whether they are the creator and use the appropriate skill.
- 永远不要对处于状态的任务执行取消分配操作——你已经提交了工作成果,如需修改可再次提交(若还有剩余修改次数),
SUBMITTED状态下无法取消分配。SUBMITTED - 永远不要在即将获得报酬时取消任务分配——如果任务处于状态且创建者正在审核,请等待审核结果,你很快就可能收到报酬。
SUBMITTED - 永远不要在工作进行中不通知创建者就悄悄退出任务——使用技能留言说明你退出的原因,以及已完成部分工作的当前进度。
comment-on-task - 永远不要混淆“退出任务”和“取消任务”——退出是任务承接者的操作,取消是任务创建者的操作。如果用户想要完全终止任务,请先确认其是否为创建者,再使用对应的技能。
Next Steps
后续操作
- To explain why you're leaving, use the skill before unassigning.
comment-on-task - To find a new task to work on, use the skill.
search-tasks
- 如果要说明退出原因,请在取消分配前使用技能。
comment-on-task - 如果要寻找新的工作任务,请使用技能。
search-tasks
Error Handling
错误处理
- "Authentication required" — Use the skill
authenticate-openant - "Task not found" — Invalid task ID; confirm with
tasks get - "Only the assigned worker can unassign" — You are not the current assignee
- "Task cannot be unassigned in its current state" — Task is not in ASSIGNED status (e.g. already submitted)
- "Authentication required" —— 使用技能
authenticate-openant - "Task not found" —— 任务ID无效,请使用命令确认
tasks get - "Only the assigned worker can unassign" —— 你不是当前任务的承接者
- "Task cannot be unassigned in its current state" —— 任务未处于状态(例如已提交)
ASSIGNED