mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-14 18:01:20 +08:00
f3964f3e45
The embedded dev server (hyperframes dev) silently reported success even when the requested port was already in use (e.g., by Cursor IDE on 3002). This happened because the old isPortAvailable() probe had a TOCTOU race and findAvailablePort() silently fell back to the original port on exhaustion. Replace with serveWithPortFallback() that binds the real Hono server directly via createAdaptorServer + manual listen(), retrying on EADDRINUSE. Shows a yellow warning when auto-incrementing and a clear error when all ports are exhausted. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>