Fix (f1): load from the card

This commit is contained in:
Grail Finder
2026-02-09 11:29:47 +03:00
parent c04e120ddb
commit 3f4d8a9467
4 changed files with 9 additions and 9 deletions

View File

@@ -121,12 +121,12 @@ func initSysCards() ([]string, error) {
return labels, nil
}
func startNewChat() {
func startNewChat(keepSysP bool) {
id, err := store.ChatGetMaxID()
if err != nil {
logger.Error("failed to get chat id", "error", err)
}
if ok := charToStart(cfg.AssistantRole); !ok {
if ok := charToStart(cfg.AssistantRole, keepSysP); !ok {
logger.Warn("no such sys msg", "name", cfg.AssistantRole)
}
// set chat body