Merge pull request #6407 from continuedev/exigow/dont-write-io-messages-on-awt

fix: Move CoreMessenger write calls off AWT thread to prevent UI freeze
This commit is contained in:
Nate Sesti 2025-07-02 09:11:01 -07:00 • committed by GitHub
commit 0ca717a722
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,9 @@ class CoreMessenger(
val message =
gson.toJson(mapOf("messageId" to id, "messageType" to messageType, "data" to data))
responseListeners[id] = onResponse
write(message)
coroutineScope.launch(Dispatchers.IO) {
write(message)
}
}
private fun handleMessage(json: String) {