Before submitting#
Area#
apps/web
Steps to reproduce#
Open a thread in the web or desktop app.
Send a message containing a Windows directory path with a trailing backslash:
Move `.claude.json` into `C:\Users\kelchm\.claude\`.
Look at the chip that replaces C:\Users\kelchm\.claude\ in the rendered message.
Remove the final backslash and send the message again. The path without the trailing backslash renders correctly.
The same problem can be reproduced with a POSIX path ending in /, and the paths do not need to exist.
Expected behavior#
The chip should still identify the target as the .claude directory. For example, it could display .claude as its compact label and show the full path in its tooltip.
A trailing separator is a valid way to write a directory path and must not cause the chip to display the parent directory instead.
Actual behavior#
The .claude segment disappears from the visible chip. In the attached screenshot, the agent's intended destination was:
C:/Users/kelchm/.claude
but the chip displayed a folder icon followed by:
· C:/Users/kelchm
In other words:
intended: C:/Users/kelchm/.claude
visible: C:/Users/kelchm
missing: /.claude
This is not just a shortened display of the same destination: the visible path names a different directory. Because the chip replaces the original inline-code text, the user cannot see that .claude was present in the agent's message.
The minimal reproduction shows why: C:\Users\me\.claude renders with the .claude label, while the equivalent directory spelling C:\Users\me\.claude\ loses that label. POSIX paths ending in / behave the same way.
Impact#
Minor bug or occasional failure
Version or commit#
main @ 5192f777
Environment#
No response
Logs or stack traces#
Screenshots, recordings, or supporting files#
Screenshot 2026-08-02 at 3.27.18 PM.png
Workaround#
No response