High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: /tabs endpoint returns empty list when no instances running
Mario6be9ee33f58e
diff --git a/cmd/pinchtab/cmd_dashboard.go b/cmd/pinchtab/cmd_dashboard.goindex aad19d0c..f06c77e1 100644--- a/cmd/pinchtab/cmd_dashboard.go+++ b/cmd/pinchtab/cmd_dashboard.go@@ -54,8 +54,19 @@ func runDashboard(cfg *config.RuntimeConfig) {web.JSON(w, 200, map[string]string{"status": "ok", "mode": "dashboard"})})+ // Special handler for /tabs - return empty list if no instances+ mux.HandleFunc("GET /tabs", func(w http.ResponseWriter, r *http.Request) {+ target := orch.FirstRunningURL()+ if target == "" {+ // No instances running, return empty tabs list+ web.JSON(w, 200, map[string]interface{}{"tabs": []interface{}{}})+ return+ }+ proxyRequest(w, r, target+"/tabs")+ })+proxyEndpoints := []string{- "/tabs", "/snapshot", "/screenshot", "/text",+ "/snapshot", "/screenshot", "/text","/navigate", "/action", "/actions", "/evaluate","/tab", "/tab/lock", "/tab/unlock","/cookies", "/download", "/upload", "/stealth/status", "/fingerprint/rotate",