Fixed message loading
Root messages weren't being loaded since the refactor, and there was dead code
This commit is contained in:
@@ -16,11 +16,6 @@ import (
|
||||
|
||||
// custom tea.Msg types
|
||||
type (
|
||||
// sent when a conversation is (re)loaded
|
||||
msgConversationLoaded struct {
|
||||
conversation *api.Conversation
|
||||
rootMessages []api.Message
|
||||
}
|
||||
// sent when a new conversation title generated
|
||||
msgConversationTitleGenerated string
|
||||
// sent when the conversation has been persisted, triggers a reload of contents
|
||||
@@ -30,7 +25,10 @@ type (
|
||||
messages []api.Message
|
||||
}
|
||||
// sent when a conversation's messages are laoded
|
||||
msgMessagesLoaded []api.Message
|
||||
msgConversationMessagesLoaded struct {
|
||||
messages []api.Message
|
||||
rootMessages []api.Message
|
||||
}
|
||||
// a special case of common.MsgError that stops the response waiting animation
|
||||
msgChatResponseError error
|
||||
// sent on each chunk received from LLM
|
||||
|
||||
Reference in New Issue
Block a user