From 92f261cc84d5f259e2f803fe36d7d3e5d89ffea0 Mon Sep 17 00:00:00 2001 From: tauraamui Date: Thu, 16 Oct 2025 09:49:40 +0100 Subject: [PATCH] fix: allow pasting with clipboard to invoke file picker logic correctly --- internal/tui/components/chat/editor/editor.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/tui/components/chat/editor/editor.go b/internal/tui/components/chat/editor/editor.go index 72be82c7e1ee88fe8ae367e65c577b1b423dbdb8..48b11dea081f12c91bd001d2c6aafde0b402ec1d 100644 --- a/internal/tui/components/chat/editor/editor.go +++ b/internal/tui/components/chat/editor/editor.go @@ -289,7 +289,8 @@ func (m *editorCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) { if !model.SupportsImages { return m, util.ReportWarn("File attachments are not supported by the current model: " + model.Name) } - return m, util.CmdHandler(onPaste(msg)) // inject fsys accessible from PWD + return m, filepicker.OnPaste(filepicker.ResolveFS, string(msg)) // inject fsys accessibly from PWD + case commands.ToggleYoloModeMsg: m.setEditorPrompt() return m, nil