[BUG] List reports incorrect number of files.

Resolved 💬 6 comments Opened Aug 10, 2025 by mulka Closed Jan 3, 2026

Environment

  • Platform (select one):
  • [X] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: <!-- output of claude --version -->
  • Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
  • Terminal: <!-- e.g. iTerm2, Terminal App -->

Bug Description

List reports incorrect number of files.

Steps to Reproduce

  1. Ask how many files are in a directory
  2. Notice incorrect number

Expected Behavior

Reports orrect number (in this case 309)

Actual Behavior

Reports 311 and also 267

Additional Context

> how many files in ~/Movies/TeslaCam/2025-08-09/?

⏺ List(.)
  ⎿  Listed 311 paths (ctrl+r to expand)

⏺ 267 files

> how many files in ~/Movies/TeslaCam/2025-08-09/?

⏺ 267 files

> how many files in ~/Movies/TeslaCam/2025-08-09/?

⏺ Bash(find /Users/mulka/Movies/TeslaCam/2025-08-09 -type f | wc -l)
  ⎿  309

⏺ 309

View original on GitHub ↗

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