Description
When Claude Code's terminal output contains a Windows path with \. (backslash followed by a dot), the backslash is dropped during rendering. The path displays incorrectly.
Steps to reproduce
- Run
/insights (or any command that outputs a Windows path containing \.)
- The output includes a
file:// URL like: file://C:\Users\username\.claude\usage-data\report.html
- The rendered terminal output shows:
file://C:\Users\username.claude\usage-data\report.html — the backslash before .claude is missing
Expected behavior
The full path should render as-is: C:\Users\username\.claude\usage-data\report.html
Actual behavior
\. is interpreted as an escape sequence, consuming the backslash: C:\Users\username.claude\usage-data\report.html
Environment
- Windows 10 Pro 10.0.19045
- Claude Code terminal (not a browser — this is the CLI output renderer)
Description
When Claude Code's terminal output contains a Windows path with
\.(backslash followed by a dot), the backslash is dropped during rendering. The path displays incorrectly.Steps to reproduce
/insights(or any command that outputs a Windows path containing\.)file://URL like:file://C:\Users\username\.claude\usage-data\report.htmlfile://C:\Users\username.claude\usage-data\report.html— the backslash before.claudeis missingExpected behavior
The full path should render as-is:
C:\Users\username\.claude\usage-data\report.htmlActual behavior
\.is interpreted as an escape sequence, consuming the backslash:C:\Users\username.claude\usage-data\report.htmlEnvironment