From 55276b1e2eaba048c00dfdfc65a5fc5fb800796c Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Sun, 5 Apr 2026 07:35:32 -0300 Subject: [PATCH] fix: quote Windows absolute paths to avoid MCP mention collision Paths containing ':' (e.g. Windows drive letters) are now emitted in quoted @"..." form so they don't match the MCP resource mention regex. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/components/PromptInput/PromptInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PromptInput/PromptInput.tsx b/src/components/PromptInput/PromptInput.tsx index 73bfd31d..45c16233 100644 --- a/src/components/PromptInput/PromptInput.tsx +++ b/src/components/PromptInput/PromptInput.tsx @@ -1213,7 +1213,7 @@ function PromptInput({ const draggedPaths = extractDraggedFilePaths(text); if (draggedPaths.length > 0) { const mentions = draggedPaths - .map(p => (p.includes(' ') ? `@"${p}"` : `@${p}`)) + .map(p => (p.includes(' ') || p.includes(':') ? `@"${p}"` : `@${p}`)) .join(' '); // Ensure spacing around the mention(s) relative to existing input const charBefore = input[cursorOffset - 1];