1 parent 1790ab7 commit 78dfe67Copy full SHA for 78dfe67
1 file changed
python_agent_harness/tools/read.py
@@ -67,7 +67,7 @@ class Read(Tool):
67
68
def run(self, args: dict, ctx: ToolContext) -> str:
69
path = args["file_path"]
70
- full = os.path.realpath(os.path.abspath(path))
+ full = os.path.realpath(os.path.abspath(os.path.expanduser(path)))
71
if os.path.isdir(full):
72
return f"Error: cannot read {path}: is a directory"
73
try:
0 commit comments