You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Windows Markdown paths with spaces and ampersands lose separators #36579
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
packages/contracts or packages/shared
Steps to reproduce
Have an agent reply in web or desktop chat with:

The same failure occurs with R&D folder and with link/reference-definition destinations. Deterministic parser repro: parse that Markdown with unified().use(remarkParse).use(remarkKeepWindowsPaths) and inspect the image URL.
Expected behavior
The destination is C:\R&D folder\.t3\shot.png: separators survive and & decodes normally.
Actual behavior
The parsed destination is C:\R&D folder.t3\shot.png. The separator before .t3 disappears, so image preview requests the wrong file and links open the wrong path.
Shared Markdown parser used by web and desktop; reproduced deterministically on Linux with Windows path input. Independent Claude Opus 5.5 bughunt verifier confirmed the parser and full web image-source pipeline. Mobile already protected the original case.
Parser red/green proof is included in the accompanying fix PR. No Windows-hosted visual proof.
Workaround
Use forward slashes in the Windows destination.
Related closed issue: #14261 fixed the earlier general Windows escaping problem; this report concerns the remaining combination of spaces and ampersands.
Activity