## Problem Description
In the deepagents/backends/store.py file, the ls_info method fails to list files directly in the root directory ("/") such as "test.md". This is because the current filtering logic requires file paths to start with the normalized path ("/"), but direct files like "test.md" don't meet this condition.
## Reproduction Steps
1. Create a file directly in the root directory, e.g., "test.md"
2. Call the ls_info("/") method
3. Observe the returned result, noting that "test.md" is not in the result list
## Expected Behavior
ls_info("/") should return all files and directories in the root directory, including files directly in the root directory (like "test.md").
## Actual Behavior
ls_info("/") only returns subdirectories in the root directory, not files directly in the root directory.
## Root Cause
In the ls_info method, the filtering logic at lines 314-316 is:
Problem Description
In the deepagents/backends/store.py file, the ls_info method fails to list files directly in the root directory ("/") such as "test.md". This is because the current filtering logic requires file paths to start with the normalized path ("/"), but direct files like "test.md" don't meet this condition.
Reproduction Steps
ls_info("/") should return all files and directories in the root directory, including files directly in the root directory (like "test.md").
Actual Behavior
ls_info("/") only returns subdirectories in the root directory, not files directly in the root directory.
Root Cause
In the ls_info method, the filtering logic at lines 314-316 is:
(Replace this entire block of text)
Read the full contributing guidelines: https://docs.langchain.com/oss/python/contributing/overview
If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!
Thank you for contributing to Deep Agents! Follow these steps to have your pull request considered as ready for review.
make format,make lintandmake testfrom the root of the package(s) you've modified.Additional guidelines:
uv.lockfiles or add dependencies topyproject.tomlfiles (even optional ones) unless you have explicit permission to do so by a maintainer.Social handles (optional)
Twitter: @
LinkedIn: https://linkedin.com/in/