[BUG] rename session name while inside the same session

Resolved 💬 3 comments Opened Dec 30, 2025 by tomasis7 Closed Jan 3, 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?

  • Action: Tried to rename session
  • Error: ENOENT: no such file or directory, open 'n/a'
  • Platform: Windows (based on the B:/~BUN/root/claude.exe path)
  • Claude Code version: 2.0.76

This looks like the session rename feature isn't properly resolving the file path on Windows, causing it to try writing to a literal 'n/a' path instead of a valid file location.

What Should Happen?

would be able rename the session

Error Messages/Logs

'This error originated either by throwing inside of an async function without a catch block, or by rejecting a
promise which was not handled with .catch(). The promise rejected with the reason:
Error: ENOENT: no such file or directory, open 'n/a'
    at openSync (unknown)
    at <anonymous> (B:/~BUN/root/claude.exe:12:1277)
    at tX (B:/~BUN/root/claude.exe:11:8463)
    at appendFileSync (B:/~BUN/root/claude.exe:12:1200)
    at pvD (B:/~BUN/root/claude.exe:1046:3119)
    at gB$ (B:/~BUN/root/claude.exe:1047:78)
    at gB$ (B:/~BUN/root/claude.exe:1047:214)
    at <anonymous> (B:/~BUN/root/claude.exe:3792:475)
    at <anonymous> (B:/~BUN/root/claude.exe:3792:527)
    at WH (B:/~BUN/root/claude.exe:4627:7)'

Steps to Reproduce

  1. choose same session as inside the session
  2. rename it
  3. error

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.76

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

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