From c659a168992c97f0b15af2eb7e4add03c21f7a3b Mon Sep 17 00:00:00 2001 From: ms-alan Date: Sat, 25 Apr 2026 00:13:33 +0800 Subject: [PATCH] fix(cli): detect quoted relative paths in _detect_file_drop Closes #15197 --- cli.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli.py b/cli.py index 98370b838..5f76675b3 100644 --- a/cli.py +++ b/cli.py @@ -1505,6 +1505,10 @@ def _detect_file_drop(user_input: str) -> "dict | None": or stripped.startswith('"~') or stripped.startswith("'/") or stripped.startswith("'~") + or stripped.startswith('"./') + or stripped.startswith('"../') + or stripped.startswith("'./") + or stripped.startswith("'../") or (len(stripped) >= 4 and stripped[0] in ("'", '"') and stripped[2] == ":" and stripped[3] in ("\\", "/") and stripped[1].isalpha()) ) if not starts_like_path: