Skip to content

Commit

Permalink
fix: fix async issue for #144
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 11, 2024
1 parent aef1974 commit 36923e4
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -119,9 +119,8 @@ class CustomAgentChatProcessor(val project: Project) {

CustomAgentResponseAction.DevIns -> {
ui.addMessage(AutoDevBundle.message("autodev.loading"))
var msg = ""
LLMCoroutineScope.scope(project).launch {
msg = ui.updateMessage(response)
val msg: String = runBlocking {
ui.updateMessage(response)
}

llmProvider.appendLocalMessage(msg, ChatRole.Assistant)
Expand Down

0 comments on commit 36923e4

Please sign in to comment.