summaryrefslogtreecommitdiff
path: root/tables.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-09 11:29:47 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-09 11:29:47 +0300
commit3f4d8a946775cfba6fc6d0ac7ade30b310bb883b (patch)
tree21ab3e9bbc0518ae9a4e2adf6d61e581cdad036d /tables.go
parentc04e120ddbec870348b0340e0fbb41556812c3f5 (diff)
Fix (f1): load from the card
Diffstat (limited to 'tables.go')
-rw-r--r--tables.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tables.go b/tables.go
index 740b7c8..59220be 100644
--- a/tables.go
+++ b/tables.go
@@ -206,8 +206,8 @@ func makeChatTable(chatMap map[string]models.Chat) *tview.Table {
}
// Update sysMap with fresh card data
sysMap[agentName] = newCard
- applyCharCard(newCard, false)
- startNewChat()
+ // fetching sysprompt and first message anew from the card
+ startNewChat(false)
pages.RemovePage(historyPage)
return
default:
@@ -543,7 +543,7 @@ func makeAgentTable(agentList []string) *tview.Table {
// notification := fmt.Sprintf("chat: %s; action: %s", selectedChat, tc.Text)
switch tc.Text {
case "load":
- if ok := charToStart(selected); !ok {
+ if ok := charToStart(selected, true); !ok {
logger.Warn("no such sys msg", "name", selected)
pages.RemovePage(agentPage)
return