I’m hitting a crash in deepagents filesystem backend when the agent calls grep without a path (default /).
#839
Closed
gustavo-lamonica
started this conversation in
General
Replies: 1 comment
-
|
This should be an issue. Not discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’m hitting a crash in deepagents filesystem backend when the agent calls grep without a path (default
/).Stack trace ends here:
deepagents/memory/backends/filesystem.py:240
files_to_search = self.ls(path if path != "/" else None)
deepagents/memory/backends/filesystem.py:64
dir_path = self._resolve_path(path)
deepagents/memory/backends/filesystem.py:49
return self.cwd / key.lstrip('/')
AttributeError: 'NoneType' object has no attribute 'lstrip'
When path == "/", grep passes None to ls(). ls() doesn’t handle None and _resolve_path() calls lstrip on None.
Suggested fix:
This happens frequently in Ralph mode since grep defaults to
/.Beta Was this translation helpful? Give feedback.
All reactions