fix(agentic): use typed EOF handling

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Virgil 2026-04-02 08:08:20 +00:00
parent 791fc1a3a1
commit 44321aab25

View file

@ -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
}