t3code icon indicating copy to clipboard operation
t3code copied to clipboard

Markdown image with a space in the local path renders as raw text

Open doolecg opened this issue 2 weeks ago • 2 comments

Bug An agent reply that embeds a local image with a path containing a space shows the raw markdown instead of the image.

Example reply text ![Golden hour](E:\REPOS\My Game\shots\03_golden_hour.png)

Expected The image renders inline.

Actual The literal text ![Golden hour](E:\REPOS\My Game\shots\03_golden_hour.png) is shown, including the leading !.

Likely cause Spaces are not allowed in a bare markdown link destination, so the parser rejects it. Paths without spaces work.

Suggested fix Accept the CommonMark angle-bracket form ![alt](<E:/My Game/shot.png>) and handle %20. Ideally also tolerate a raw space and backslashes in a local absolute path, since agents on Windows produce those.

Environment Windows 11, T3 Code desktop, Claude provider.

doolecg avatar Nov 11 '26 15:11 doolecg

Seen on 0.1.9-nightly.20261110.4465. The 0.1.9-nightly.20261111.4515 notes list agent-opened image thumbnails (#30473) but nothing about spaces in image paths, so it is probably still open.

doolecg avatar Nov 11 '26 15:11 doolecg

This is the same problem as #26685, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

juliusmarminge avatar Nov 11 '26 15:11 juliusmarminge