[BUG] Claude only lists root files

Resolved 💬 3 comments Opened Jan 13, 2026 by anandres Closed Jan 14, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Claude’s GitHub connector is unable to display files inside subdirectories. Only files located in the repository root are visible. All internal folders appear empty, despite containing files.

I tried to revoke Claude in Github and disconnect GitHub connector in Claude.
Files in the repository root are listed correctly
Subdirectories are visible but always appear empty
Adding a new file to the root is immediately detected
Adding files inside subdirectories is not detected
Explicit rollback to previous commits does not resolve the issue
Removing and re-adding the GitHub integration does not resolve the issue

What Should Happen?

Claude should be able to list and read files inside all repository directories, not only the root.

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce

Connect Claude to a GitHub repository

Browse repository contents

Observe that only root-level files are shown

Open any subdirectory → directory appears empty

(Optional) Make the repository public → issue persists

Scope

Occurs in both public and private repositories

Not related to repository permissions, size, language, or structure

Not affected by OAuth reauthorization or repository visibility

Impact

Prevents meaningful code analysis, refactoring, or review

Makes the GitHub connector unusable for non-trivial repositories

Suspected Cause

Regression or bug in Claude’s GitHub connector

Likely failure when resolving contents/{path} or recursive tree listing

GitHub API itself returns correct data when queried directly

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude Web

Platform

Other

Operating System

Windows

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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