Skip to content

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

fix: add explicit HTTP methods to proxy endpoint patterns (Go 1.26 compatibility)

Mario7063fddff1f8
diff --git a/cmd/pinchtab/cmd_dashboard.go b/cmd/pinchtab/cmd_dashboard.go
index 99ce626d..82ac52f1 100644
--- a/cmd/pinchtab/cmd_dashboard.go
+++ b/cmd/pinchtab/cmd_dashboard.go
@@ -67,11 +67,13 @@ func runDashboard(cfg *config.RuntimeConfig) {
})
proxyEndpoints := []string{
- "/snapshot", "/screenshot", "/text",
- "/navigate", "/action", "/actions", "/evaluate",
- "/tab", "/tab/lock", "/tab/unlock",
- "/cookies", "/download", "/upload", "/stealth/status", "/fingerprint/rotate",
- "/screencast", "/screencast/tabs",
+ "GET /snapshot", "GET /screenshot", "GET /text",
+ "POST /navigate", "POST /action", "POST /actions", "POST /evaluate",
+ "POST /tab", "POST /tab/lock", "POST /tab/unlock",
+ "GET /cookies", "POST /cookies",
+ "GET /download", "POST /upload",
+ "GET /stealth/status", "POST /fingerprint/rotate",
+ "GET /screencast", "GET /screencast/tabs",
}
for _, ep := range proxyEndpoints {
endpoint := ep
@@ -81,7 +83,9 @@ func runDashboard(cfg *config.RuntimeConfig) {
web.Error(w, 503, fmt.Errorf("no running instances — launch one from the Profiles tab"))
return
}
- proxyRequest(w, r, target+endpoint)
+ // Extract path from endpoint (remove method prefix)
+ path := r.URL.Path
+ proxyRequest(w, r, target+path)
})
}
diff --git a/memory/LATEST.md b/memory/LATEST.md
index eea6685f..4debde21 100644
--- a/memory/LATEST.md
+++ b/memory/LATEST.md
@@ -75,9 +75,17 @@ Moved test logic from standalone `test-e2e.sh` into proper test structure:
- Ready for production deployment
- Optional: Run full manual test suite first
+## Bug Fixes
+
+### Fixed: Nil pointer panic in Logs() endpoint
+- **Issue**: `GET /instances/{id}/logs` would panic with nil pointer dereference
+- **Root cause**: `logBuf` could be nil if accessed before proper initialization
+- **Fix**: Added defensive nil check in `Orchestrator.Logs()` method
+- **Commit**: `d7e8537`
+
## Branch Info
- **Branch**: `feat/make-cli-useful`
-- **Latest**: `ce29149` (session work)
-- **Tests**: All passing
+- **Latest**: `d7e8537` (nil check fix + cleanup)
+- **Tests**: All passing (195+)
- **Documentation**: Complete and validated