feat(KB-137): add automatic port fallback when dashboard port is in use

- Handle EADDRINUSE by retrying with port 0 (OS-assigned random port)
- Print warning message showing original and fallback port
- Update banner and browser-open to use the actual bound port
- Add tests for successful listen, fallback, and warning behavior
- Add changeset for patch release
This commit is contained in:
Dustin Byrne
2026-03-27 23:51:21 -04:00
parent 95cc34bf8b
commit d19b51f7fa
4 changed files with 181 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
---
"@dustinbyrne/kb": patch
---
Auto-assign random port when dashboard port is already in use instead of crashing with EADDRINUSE.