Files
meshcore-analyzer/cmd
you 3e39776178 fix: TUI goroutine leaks, WS reconnect, ring buffer GC, panic recovery
- Fix goroutine leak: statusChan goroutine in Init() never terminated.
  Replaced separate statusChan+packetChan with unified wsMsgChan that
  carries both wsStatusMsg and packetMsg as tea.Msg values.
- Fix WS goroutine unable to exit on quit: ReadMessage blocked
  indefinitely. Added 2s read deadline so the done channel is checked
  periodically.
- Add panic recovery in connectWS goroutine.
- Fix ring buffer GC leak: old slicing kept backing array alive.
  Now copies to fresh slice when trimming.
- Fix potential panic: ObserverID[:8] on short IDs. Added safePrefix().
- Fix potential panic: ts[:8] on short timestamp strings.
- Send graceful WebSocket close frame on quit.
- Remove unused sync.Mutex field.
- Handle wsStatusMsg as proper tea.Msg type instead of sentinel packet.
2026-04-05 07:25:54 +00:00
..