diff --git a/internal/tools/delegate_events.go b/internal/tools/delegate_events.go index ac4f8f4a..00a76d95 100644 --- a/internal/tools/delegate_events.go +++ b/internal/tools/delegate_events.go @@ -34,7 +34,9 @@ func formatDelegateAnnounce(task *DelegationTask, artifacts *DelegateArtifacts, if err != nil && len(artifacts.Results) == 0 { return fmt.Sprintf( "[System Message] All delegations finished. The last delegation to agent %q failed.\n\nError: %s\n\nStats: runtime %s\n\n"+ - "Handle the failed task yourself or try a different agent.", + "IMPORTANT: Before retrying or handling the task yourself, send a brief, friendly message to the user "+ + "letting them know there was a small hiccup and you're working on it. Keep it short and natural (1-2 sentences). "+ + "Then retry the delegation or handle it yourself.", task.TargetAgentKey, err.Error(), elapsed.Round(time.Millisecond)) }