[PR #13676] fix(cli): handle escaped @ in image file paths #45580

Open
opened 2026-04-25 01:15:21 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13676
Author: @biplavbarua
Created: 1/11/2026
Status: 🔄 Open

Base: mainHead: fix/cli-image-path


📝 Commits (1)

  • 400820f fix(cli): handle escaped @ in image file paths

📊 Changes

2 files changed (+23 additions, -0 deletions)

View changed files

📝 cmd/interactive.go (+1 -0)
📝 cmd/interactive_test.go (+22 -0)

📄 Description

This PR fixes specific instances where image file paths containing '@' (common in macOS screenshots like 'CleanShot...at...2x.png') were not being recognized when dragged into the CLI. It adds proper unescaping for '@' in normalizeFilePath.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13676 **Author:** [@biplavbarua](https://github.com/biplavbarua) **Created:** 1/11/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/cli-image-path` --- ### 📝 Commits (1) - [`400820f`](https://github.com/ollama/ollama/commit/400820fc2631747e1d2715dd4dc14d0a25293f31) fix(cli): handle escaped @ in image file paths ### 📊 Changes **2 files changed** (+23 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/interactive.go` (+1 -0) 📝 `cmd/interactive_test.go` (+22 -0) </details> ### 📄 Description This PR fixes specific instances where image file paths containing '@' (common in macOS screenshots like 'CleanShot...at...2x.png') were not being recognized when dragged into the CLI. It adds proper unescaping for '\@' in `normalizeFilePath`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 01:15:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#45580