feat(gemini): add timestamp to auto chat entries

This commit is contained in:
Castor Gemini 2025-08-22 10:16:00 -05:00 committed by Jeff Carr
parent 3f6a796181
commit 5db2567e60
1 changed files with 3 additions and 0 deletions

View File

@ -2,9 +2,11 @@ package main
import (
"os"
"time"
"go.wit.com/lib/protobuf/chatpb"
"go.wit.com/log"
"google.golang.org/protobuf/types/known/timestamppb"
)
func doOutput(s string) {
@ -42,6 +44,7 @@ func doOutput(s string) {
newEntry := &chatpb.ChatEntry{
From: chatpb.Who_GEMINI,
Content: s,
Ctime: timestamppb.New(time.Now()),
}
autoChat.Entries = append(autoChat.Entries, newEntry)
if err := all.ConfigSave(); err != nil {