diff --git a/cmd/picoclaw/internal/jules/jules.go b/cmd/picoclaw/internal/jules/jules.go index db66516b1..49d0facc9 100644 --- a/cmd/picoclaw/internal/jules/jules.go +++ b/cmd/picoclaw/internal/jules/jules.go @@ -7,6 +7,7 @@ import ( "io" "net/http" "os" + "time" "github.com/spf13/cobra" @@ -43,7 +44,9 @@ func doRequest(method, url string, body []byte) error { req.Header.Set("x-goog-api-key", apiKey) req.Header.Set("Content-Type", "application/json") - client := &http.Client{} + client := &http.Client{ + Timeout: 15 * time.Second, + } resp, err := client.Do(req) if err != nil { return fmt.Errorf("error making request: %w", err)