Fix: show last attached img on ctrl+j

This commit is contained in:
Grail Finder
2025-11-21 08:23:14 +03:00
parent e8413ce613
commit dc1d1eba0c
3 changed files with 20 additions and 32 deletions

View File

@@ -838,7 +838,7 @@ func makeFilePicker() *tview.Flex {
// For image files, set it as an attachment for the next LLM message
// Use the version without UI updates to avoid hangs in event handlers
logger.Info("setting image", "file", itemText)
SetImageAttachmentWithoutUI(filePath)
SetImageAttachment(filePath)
logger.Info("after setting image", "file", itemText)
statusView.SetText("Image attached: " + filePath + " (will be sent with next message)")
logger.Info("after setting text", "file", itemText)