fix(cli): detect quoted relative paths in _detect_file_drop

Closes #15197
This commit is contained in:
ms-alan 2026-04-25 00:13:33 +08:00 committed by Teknium
parent 08b8465ca9
commit c659a16899

4
cli.py
View file

@ -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: