fix: allow pasting with clipboard to invoke file picker logic correctly

tauraamui created

Change summary

internal/tui/components/chat/editor/editor.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Detailed changes

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