Fix: show correct compile error status in UI after socket reconnect