Replace get_file_tree_list GitHub API with local filesystem get_local_file_tree#2279
Merged
hiroshinishio merged 1 commit intomainfrom Feb 19, 2026
Merged
Replace get_file_tree_list GitHub API with local filesystem get_local_file_tree#2279hiroshinishio merged 1 commit intomainfrom
hiroshinishio merged 1 commit intomainfrom
Conversation
…_file_tree The old get_file_tree_list used the GitHub API to list directory contents, which could not see gitignored files like node_modules. The new get_local_file_tree uses os.listdir on the local clone, so it can see installed dependencies after tarball extraction. Also fixed issue_handler.py where file tree listing was called before clone_dir was set.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
get_file_tree_list(GitHub API) withget_local_file_tree(local filesystemos.listdir) so the agent can see files not tracked by git, likenode_modulesafter dependency installationissue_handler.pywhere file tree listing was called beforeclone_dirwas set inbase_argsSocial Media Post (GitAuto)
Our agent couldn't see node_modules when browsing the repo tree - because the "list directory" tool used the GitHub API, which only returns git-tracked files. Swapped it for a local os.listdir on the clone. Now it can inspect installed dependencies to debug type errors and missing packages. More like a real dev working locally.
Social Media Post (Wes)
The agent kept reporting "@aws-sdk/client-scheduler doesn't exist" when it was clearly installed. Turns out our directory listing tool called the GitHub tree API. node_modules is gitignored. The tool literally couldn't see it. Replaced the whole thing with os.listdir on the local clone. Feels more like how a real dev works locally now.