feat(chat): the dashboard chat records voice, downloads files a turn sends, and offers /model and /personality choices

This commit is contained in:
sam committed 2026-10-08 01:37:21 +11:00
1 parent 201529414b
commit 8a8c8cf7e9
16 files changed
+380 -92

No files matched your search

+3 -1
View File
@@ -25,6 +25,8 @@ type LocalChatAdapter struct {
TaskActor ChatTaskActor
// Tasks reads the tasks /stop acts on.
Tasks TaskReader
// VoiceAvailable reports that voice clips are transcribed.
VoiceAvailable bool
}
// TaskReader is the task reads /stop needs.
@@ -42,7 +44,7 @@ func (a *LocalChatAdapter) Snapshot(ctx context.Context) (ChatSnapshot, error) {
if err != nil {
return ChatSnapshot{}, err
}
s := ChatSnapshot{Sessions: sessions, Models: []string{}, Providers: []string{}, Personas: []string{}, ModelsByProvider: map[string][]string{}, ActivePersonas: map[string]string{}, RestartAvailable: a.Router.Restart != nil, CancellationAvailable: a.Turns != nil, PersonasAvailable: a.Personas != nil, Version: a.Router.Version}
s := ChatSnapshot{Sessions: sessions, Models: []string{}, Providers: []string{}, Personas: []string{}, ModelsByProvider: map[string][]string{}, ActivePersonas: map[string]string{}, RestartAvailable: a.Router.Restart != nil, CancellationAvailable: a.Turns != nil, PersonasAvailable: a.Personas != nil, VoiceAvailable: a.VoiceAvailable, Version: a.Router.Version}
if a.Models != nil {
s.Models = slices.Clone(a.Models.Models())
s.ActiveModel = a.Models.ActiveModel()