fix: UI concurrency issues (run completion events on EDT)

This commit is contained in:
Carl-Robert Linnupuu 2023-11-30 23:28:35 +02:00
parent fde20109cd
commit dc2cc3c5a1
2 changed files with 48 additions and 41 deletions

View file

@ -62,7 +62,7 @@ public class StandardChatToolWindowTabPanelTest extends IntegrationTest {
"highlightedTokens")
.containsExactly(
encodingManager.countTokens(COMPLETION_SYSTEM_PROMPT),
encodingManager.countConversationTokens(panel.getConversation()),
encodingManager.countTokens(message.getPrompt()),
0,
0);
assertThat(panel.getConversation())