Skip to content

Backslash-dot sequence in terminal output drops the backslash #45940

Description

@djemil

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions