Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
ChatMessageWrapper
class (#1141)
Before this PR it was possible to receive that IDE error: ``` java.lang.ArrayIndexOutOfBoundsException: No such child: 0 at java.desktop/java.awt.Container.getComponent(Container.java:350) at com.sourcegraph.cody.chat.ui.MessagesPanel.addOrUpdateMessage(MessagesPanel.kt:30) at com.sourcegraph.cody.chat.ui.ChatPanel.addOrUpdateMessage(ChatPanel.kt:82) at com.sourcegraph.cody.chat.AgentChatSession.addMessageAtIndex(AgentChatSession.kt:260) at com.sourcegraph.cody.chat.AgentChatSession.receiveMessage$lambda$6$lambda$5(AgentChatSession.kt:178) ``` ## Test plan 1. switch accounts 2. quickly write to the chat & send expected: the error does not appear (but most likely you will encounter the other issue - #454 (comment))
- Loading branch information