Repository navigation
Commit e413e66
committed
fix(opencode): handle shell-escaped parentheses in drag-drop file paths
Terminals like Ghostty shell-escape special characters when drag-dropping
files. The paste handler only unescaped backslash-space but not other
metacharacters like parentheses, causing silent attachment failure for
filenames like 'image (1).png'.
Use /\\([^a-zA-Z0-9])/g to unescape all shell metacharacters while
preserving Windows path separators (backslash + alphanumeric).
Fixes anomalyco#170751 parent cf7ca9b commit e413e66
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
943 | 943 | | |
944 | 944 | | |
945 | 945 | | |
946 | | - | |
947 | | - | |
948 | | - | |
| 946 | + | |
| 947 | + | |
949 | 948 | | |
950 | 949 | | |
951 | 950 | | |
| |||
0 commit comments