anthropics / anthropics/claude-code

[Bug] PowerShell Set-Location not syncing .NET CurrentDirectory for file operations

Open
#95,662 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:bash area:tui bug platform:windows
Dominant language
TypeScript
Stars
147k
Forks
24k
PR merge metrics
PR metrics pending

Description

Bug Description
PowerShell Set-Location didn't sync .NET CurrentDirectory used by File::ReadAllBytes, causing… │
│ │ What happened: Ran a PowerShell script starting with Set-Location "C:...\repo" followed by an Upload-FtpFile function using relative $LocalPath args …

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.278
  • Feedback ID: 35f13e8c-04c9-4c85-8b31-962a7b1ecb3f

Errors

[{"error":"TelemetrySafeError: VirtualMessageList: itemKeys/messages length desync (keys=359 messages=358 range=[335,359))\n    at Deo (B:/~BUN/root/chunk-zd9p1yms.js:37:31024)\n    at pve (B:/~BUN/root/chunk-zd9p1yms.js:37:21923)\n    at Xs (B:/~BUN/root/chunk-3k2y9fc2.js:18:20036)\n    at du (B:/~BUN/root/chunk-3k2y9fc2.js:18:38202)\n    at gm (B:/~BUN/root/chunk-3k2y9fc2.js:18:84284)\n    at Ab (B:/~BUN/root/chunk-3k2y9fc2.js:18:83284)\n    at wu (B:/~BUN/root/chunk-3k2y9fc2.js:18:83113)\n    at cm (B:/~BUN/root/chunk-3k2y9fc2.js:18:79637)\n    at dt (B:/~BUN/root/chunk-3k2y9fc2.js:18:6261)\n    at Jn (B:/~BUN/root/chunk-3k2y9fc2.js:18:4792)","timestamp":"2026-09-20T11:22:13.380Z"}]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Windows PowerShell flow using Set-Location, Upload-FtpFile, relative $LocalPath values, and File::ReadAllBytes, then trace how the CLI handles the working directory. Done means changing location synchronizes the .NET CurrentDirectory so relative file operations resolve correctly without the reported failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.