Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

fix: add nil check for logBuf in Logs() to prevent panic

Mariod7e8537d863a
diff --git a/internal/orchestrator/orchestrator.go b/internal/orchestrator/orchestrator.go
index 6ee81ec9..f98d884a 100644
--- a/internal/orchestrator/orchestrator.go
+++ b/internal/orchestrator/orchestrator.go
@@ -348,6 +348,9 @@ func (o *Orchestrator) Logs(id string) (string, error) {
if !ok {
return "", fmt.Errorf("instance %q not found", id)
}
+ if inst.logBuf == nil {
+ return "", nil
+ }
return inst.logBuf.String(), nil
}