message rendering performance improvements

This commit is contained in:
Dax Raad
2025-07-18 13:11:35 -04:00
parent 6470243095
commit c952e9ae3d
5 changed files with 334 additions and 264 deletions

View File

@@ -68,9 +68,6 @@ type SendMsg struct {
type SetEditorContentMsg struct {
Text string
}
type OptimisticMessageAddedMsg struct {
Message opencode.MessageUnion
}
type FileRenderedMsg struct {
FilePath string
}
@@ -508,7 +505,6 @@ func (a *App) SendChatMessage(
}
a.Messages = append(a.Messages, Message{Info: message, Parts: parts})
cmds = append(cmds, util.CmdHandler(OptimisticMessageAddedMsg{Message: message}))
cmds = append(cmds, func() tea.Msg {
partsParam := []opencode.SessionChatParamsPartUnion{}