Skip to content

Commit ed8d89c

Browse files
committed
fix(amazonq): use String not ENUM for message communication
for some reason MessageType enum is not correctly parsed and will always return null when receiving from flare, change it to string so that the correct type is returned to correctly render history ask/answer texts.
1 parent 7841390 commit ed8d89c

File tree

1 file changed

+1
-1
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/model/aws/chat

1 file changed

+1
-1
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/model/aws/chat/ChatMessage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.chat
55

66
data class ChatMessage(
7-
val type: MessageType? = MessageType.ANSWER,
7+
val type: String? = MessageType.ANSWER.value,
88
val header: MessageHeader? = null,
99
val buttons: List<Button>? = null,
1010
val body: String? = null,

0 commit comments

Comments
 (0)