Skip to content

Replace get_file_tree_list GitHub API with local filesystem get_local_file_tree#2279

Merged
hiroshinishio merged 1 commit intomainfrom
wes
Feb 19, 2026
Merged

Replace get_file_tree_list GitHub API with local filesystem get_local_file_tree#2279
hiroshinishio merged 1 commit intomainfrom
wes

Conversation

@hiroshinishio
Copy link
Collaborator

@hiroshinishio hiroshinishio commented Feb 19, 2026

Summary

  • Replaced get_file_tree_list (GitHub API) with get_local_file_tree (local filesystem os.listdir) so the agent can see files not tracked by git, like node_modules after dependency installation
  • Fixed a bug in issue_handler.py where file tree listing was called before clone_dir was set in base_args
  • Updated all 3 handlers, tools registry, and chat_with_agent result formatting

Social 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.

…_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.
@hiroshinishio hiroshinishio self-assigned this Feb 19, 2026
@hiroshinishio hiroshinishio merged commit c15adb7 into main Feb 19, 2026
1 check passed
@hiroshinishio hiroshinishio deleted the wes branch February 19, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant