[BUG] Backslash missing in `/insights` report URL (Windows)

Resolved 💬 3 comments Opened Feb 25, 2026 by jecc Closed Mar 1, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The full path provided for the /insights report is wrong, e.g.,

file://C:\Users\<username>.claude\usage-data\report.html

Apparently, the backslash before the .claude was interpreted as an escape character,instead of being escaped itself.

What Should Happen?

The full path for the /insights report is displayed correctly, e.g.,

file://C:\Users\<username>\.claude\usage-data\report.html

Error Messages/Logs

Steps to Reproduce

  1. Run Claude Code on Windows (any version)
  2. Ensure the path to your global configuration directory contains a folder starting with . (e.g., C:\Users\<username>\.claude\)
  3. Run the /insights command
  4. Observe the report URL displayed in the output, it is missing a backslash

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.56

Platform

AWS Bedrock

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

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