File autocomplete suggests incorrect relative path for files in current directory

Resolved 💬 3 comments Opened Jan 23, 2026 by elasticroentgen Closed Jan 27, 2026

Description

When using @ file autocomplete, Claude Code suggests an incorrect relative path for files that are in the current working directory.

Steps to Reproduce

  1. Navigate to a subdirectory in a project (e.g., project/ethquokkaops/openbao/scripts)
  2. Type @ followed by a filename that exists in the current directory (e.g., k8s-get-sealed-approle.sh)
  3. Observe the autocomplete suggestion

Expected Behavior

Autocomplete should suggest k8s-get-sealed-approle.sh or ./k8s-get-sealed-approle.sh since the file is in the current working directory.

Actual Behavior

Autocomplete suggests ../../../k8s-get-sealed-approle.sh - traversing up directories unnecessarily when the file is right in the current directory.

Environment

  • Platform: macOS (Darwin 25.2.0)
  • Working directory structure: project/ethquokkaops/openbao/scripts/
  • File location: project/ethquokkaops/openbao/scripts/k8s-get-sealed-approle.sh
  • The file only exists in one location in the entire repository

View original on GitHub ↗

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