From 6c8e9a1f65b6a62781286c3dc6adc2abf2fc3251 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Fri, 30 May 2025 13:10:30 -0400 Subject: [PATCH] fix: improve task report tool complete status --- codersdk/toolsdk/toolsdk.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/codersdk/toolsdk/toolsdk.go b/codersdk/toolsdk/toolsdk.go index d79940b689a01..a2a31cf431fc1 100644 --- a/codersdk/toolsdk/toolsdk.go +++ b/codersdk/toolsdk/toolsdk.go @@ -197,10 +197,9 @@ Bad Tasks - "I'm trying to implement " Use the "state" field to indicate your progress. Periodically report -progress to keep the user updated. It is not possible to send too many updates! +progress with state "working" to keep the user updated. It is not possible to send too many updates! -After you complete your work, ALWAYS send a "complete" or "failure" state. Only report -these states if you are finished, not if you are working on it. +ONLY report a "complete" or "failure" state if you have FULLY completed the task. `, Schema: aisdk.Schema{ Properties: map[string]any{