Skip to content

"Vibe-Trading: Your Personal Trading Agent"

fix(tools): clean file tool sandbox imports

Haozhe Wue1feee31af0d
diff --git a/agent/src/tools/edit_file_tool.py b/agent/src/tools/edit_file_tool.py
index d3fa36964..4ab93509f 100644
--- a/agent/src/tools/edit_file_tool.py
+++ b/agent/src/tools/edit_file_tool.py
@@ -3,7 +3,6 @@
from __future__ import annotations
import json
-from pathlib import Path
from typing import Any
from src.agent.tools import BaseTool
diff --git a/agent/src/tools/write_file_tool.py b/agent/src/tools/write_file_tool.py
index b80e323fd..831e217d1 100644
--- a/agent/src/tools/write_file_tool.py
+++ b/agent/src/tools/write_file_tool.py
@@ -3,7 +3,6 @@
from __future__ import annotations
import json
-from pathlib import Path
from typing import Any
from src.agent.tools import BaseTool
diff --git a/agent/tests/test_file_tool_sandbox_security.py b/agent/tests/test_file_tool_sandbox_security.py
index db357f559..fdac3b0f2 100644
--- a/agent/tests/test_file_tool_sandbox_security.py
+++ b/agent/tests/test_file_tool_sandbox_security.py
@@ -3,7 +3,6 @@
from __future__ import annotations
import json
-import os
from pathlib import Path
import pytest
@@ -11,7 +10,7 @@ from src.tools.backtest_tool import run_backtest
from src.tools.edit_file_tool import EditFileTool
from src.tools.read_file_tool import ReadFileTool
from src.tools.write_file_tool import WriteFileTool
-from src.tools.path_utils import allowed_file_roots, allowed_write_roots, resolve_safe_path
+from src.tools.path_utils import allowed_write_roots, resolve_safe_path
def _body(raw: str) -> dict: