From 44321aab257afae5ffbc23382df48338c7459446 Mon Sep 17 00:00:00 2001 From: Virgil Date: Thu, 2 Apr 2026 08:08:20 +0000 Subject: [PATCH] fix(agentic): use typed EOF handling Co-Authored-By: Virgil --- pkg/agentic/platform.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/agentic/platform.go b/pkg/agentic/platform.go index e826510..5927ce4 100644 --- a/pkg/agentic/platform.go +++ b/pkg/agentic/platform.go @@ -5,6 +5,7 @@ package agentic import ( "bufio" "context" + "io" "net/http" "time" @@ -946,7 +947,7 @@ func readFleetEventBody(body interface{ Read([]byte) (int, error) }) (string, er } } - if err != nil && err.Error() == "EOF" { + if err == io.EOF { if len(rawLines) > 0 { return core.Join("\n", rawLines...), nil }