cleanup app, config and root

This commit is contained in:
Kujtim Hoxha
2025-04-13 13:17:17 +02:00
parent 5601466fe1
commit 3ad983db0f
21 changed files with 517 additions and 284 deletions

View File

@@ -160,7 +160,7 @@ func (m *editorCmp) Send() tea.Cmd {
return util.ReportWarn("Assistant is still working on the previous message")
}
messages, err := m.app.Messages.List(m.sessionID)
messages, err := m.app.Messages.List(context.Background(), m.sessionID)
if err != nil {
return util.ReportError(err)
}
@@ -177,7 +177,7 @@ func (m *editorCmp) Send() tea.Cmd {
if len(content) == 0 {
return util.ReportWarn("Message is empty")
}
ctx, cancel := context.WithCancel(m.app.Context)
ctx, cancel := context.WithCancel(context.Background())
m.cancelMessage = cancel
go func() {
defer cancel()