[Bug] Incorrect Directory Navigation: Fails to Use Relative Path Traversal
Resolved 💬 3 comments Opened Sep 26, 2025 by Jaakkonen Closed Sep 29, 2025
Bug Description
When working in a monorepo, Claude seems to have no idea which directory it is in. It's lost in ./backend/ folder but it should go to ./frontend/. However it tries to cd ./frontend when it should be doing cd ../frontend. I guess the model is not given any context which directory it is in with the open Bash session
Environment Info
- Platform: linux
- Terminal: foot
- Version: 1.0.119
- Feedback ID: abd4e773-6904-4be7-9517-a032b69e80a7
Errors
[{"error":"Error: Request was aborted.\n at YP.makeRequest (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1009:3864)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-09-26T08:11:53.541Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at Module.readFileSync (node:fs:449:20)\n at Object.readFileSync (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:719:6735)\n at T9B (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:3558:9408)\n at Object.call (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1724:978)\n at call.next (<anonymous>)\n at kW5 (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:3350:21036)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async tEB (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:3350:17318)\n at async S9B (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1729:3422)\n at async mJB (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1972:1802)","timestamp":"2025-09-26T08:23:08.280Z"},{"error":"MaxFileReadTokenExceededError: File content (30856 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at O9B (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1729:432)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Object.call (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1724:1036)\n at async QO (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1729:2967)\n at async file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1810:1352","timestamp":"2025-09-26T08:30:10.635Z"},{"error":"MaxFileReadTokenExceededError: File content (34644 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at O9B (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1729:432)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Object.call (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1724:1036)\n at async QO (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1729:2967)\n at async file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1810:1352","timestamp":"2025-09-26T08:30:11.056Z"},{"error":"MaxFileReadTokenExceededError: File content (34644 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at O9B (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1729:432)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Object.call (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1724:1036)\n at async kW5 (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:3350:21036)\n at async tEB (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:3350:17318)\n at async S9B (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1729:3422)\n at async mJB (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-code-1.0.119/lib/node_modules/@anthropic-ai/claude-code/cli.js:1972:1802)\n at async yW5 (file:///nix/store/94qr7pbnzdnk23y4waxzhliwc24hkr8y-claude-
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗