Elffuss BraidHub

kikocis/continue public

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
Changeset7a26902413e846d4158985cdca47a0224f22d0a27341b48fbc45ed2ad63417d9
AuthorNate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-07-02 09:11 -07:00
CommitterGitHub <noreply@github.com> · 2025-07-02 09:11 -07:00
Parentsfc1d06ba6663, 89ee3033d828

Browse the files at this changeset

1 file changed

modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt +3 −1
@@ -43,7 +43,9 @@
4343 val message =
4444 gson.toJson(mapOf("messageId" to id, "messageType" to messageType, "data" to data))
4545 responseListeners[id] = onResponse
46- write(message)
46+ coroutineScope.launch(Dispatchers.IO) {
47+ write(message)
48+ }
4749 }
4850
4951 private fun handleMessage(json: String) {