summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-17 16:19:33 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-17 16:19:33 +0300
commit7d18a9d77eca3b286849ae0a134f9d7277249bef (patch)
tree737609dbf8099277a1d57a6f360d3e00b3d50fd7 /bot.go
parentb67ae1be98f3131fa8cec9ae01d8f86fd4df8e06 (diff)
Feat: indicator for a message with an image [image: filename]
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/bot.go b/bot.go
index 61d33fa..ab55400 100644
--- a/bot.go
+++ b/bot.go
@@ -1236,6 +1236,15 @@ func init() {
os.Exit(1)
return
}
+ // Set image base directory for path display
+ baseDir := cfg.FilePickerDir
+ if baseDir == "" || baseDir == "." {
+ // Resolve "." to current working directory
+ if wd, err := os.Getwd(); err == nil {
+ baseDir = wd
+ }
+ }
+ models.SetImageBaseDir(baseDir)
defaultStarter = []models.RoleMsg{
{Role: "system", Content: basicSysMsg},
{Role: cfg.AssistantRole, Content: defaultFirstMsg},