[BUG] /cd has no directory path autocompletion in the prompt (2.1.226)

Status Open
Reported on v2.1.226
Maintainer reply None cached
Activity 0 comments · opened Aug 18, 2026

What happened

The /cd slash command has no path autocompletion in the interactive prompt.

  1. I ran /cd /Users/blhoward2/Projects/c — the directory doesn't exist, so it correctly reported Couldn't find a directory at /Users/blhoward2/Projects/c. Expected. The first time it did list the folders as I was typing in the path.
  2. The real problem: while typing the /cd argument after the first failure (or ever from the agent view), there is no directory autocompletion at all. Typing /cd followed by a path prefix (including after a /) does not suggest or complete matching directories.

I expected /cd to offer filesystem path completion the way a shell would even after the first failure, and in the agent view. Without it, you have to type the full absolute path by hand and only find out it was wrong (typo, etc.) after submitting.

Observed vs. expected

  • Observed: No autocomplete/suggestions appear for directory paths when typing a /cd argument. Entering a slash mid-argument does not trigger path completion.
  • Expected: Tab / inline path completion for directories as the argument is typed, so you can navigate and correct the path before submitting.

Notes

  • This also affects the agent view — starting to type /cd there autocompletes nothing.
  • Reproducible regardless of whether the typed path exists.

Version

  • Claude Code 2.1.226
  • Install: Homebrew (/opt/homebrew/bin/claude)
  • Platform: macOS (Darwin 25.5.0)

Repro steps

  1. In the interactive prompt, type /cd and begin typing a directory path (e.g. /Users/you/Pro) after a prior failure to cd to a new directory.
  2. No directory suggestions/completions appear.
  3. Continue past a / — still no completion.

View original on GitHub ↗