[BUG] /insights command is BROKEN on Windows 11

Resolved 💬 6 comments Opened Mar 24, 2026 by salman-spursol Closed May 9, 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?

When I run the /insights command in an interactive Claude Code code session running under Microsoft Windows Terminal, it continues to fail and error out with the following error message:
Error: EUNKNOWN: unknown error, open

And underneath the error message above is the full path to a session metadata JSON file, that Claude Code has separately informed is a valid session JSON file.

I have updated to the latest version of Claude Code at the time of this bug report: 2.1.81 (Claude Code).
I am using Microsoft Powershell version 7.6.0, and this is running inside Microsoft Windows Terminal version 1.24.10621.0 (installed via winget).

My OS version is Windows 11 Pro 25H2 (OS Build 26200.8037).

What Should Happen?

Claude should share detailed insights with me drawn from my sessions since I first started using Claude Code many months ago, including usage patterns, project areas, interaction patterns, and friction points. And running the /insights command should not error out and fail.

Error Messages/Logs

❯ /insights
  ⎿  Error: EUNKNOWN: unknown error, open
     'C:\Users\salman.ahmed.claude\usage-data\session-meta\afd195b0-c356-4697-909c-a152efa6ceda.json'

Steps to Reproduce

  1. Run the /insights command from a new/fresh Claude Code terminal instance, or from an existing one.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.81 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

<img width="1477" height="721" alt="Image" src="https://github.com/user-attachments/assets/26a490b2-80fa-434c-b7c2-67426df35643" />

<img width="1477" height="721" alt="Image" src="https://github.com/user-attachments/assets/0eb67078-abc9-4531-bef0-e033238ad34b" />

View original on GitHub ↗

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