Backslash-dot sequence in terminal output drops the backslash

Resolved 💬 3 comments Opened Apr 9, 2026 by djemil Closed Apr 13, 2026

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

  1. Run /insights (or any command that outputs a Windows path containing \.)
  2. The output includes a file:// URL like: file://C:\Users\username\.claude\usage-data\report.html
  3. 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)

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗