refactor(exec): share the sandbox launch path with settings checks (#6645)

* refactor(exec): share the sandbox launch path with settings checks

* refactor(sandbox): remove duplicate platform and path bookkeeping
This commit is contained in:
Xubin Ren authored and GitHub committed 2026-11-13 15:29:01 +08:00
1 parent 0f5e56edd4
commit 90d69e7a11
14 files changed
+236 -275

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ def layout(tmp_path, monkeypatch):
(paths[name] / "sentinel").write_text("synthetic-data")
paths["link"] = paths["workspace"] / "outside-link"
paths["link"].symlink_to(paths["peer"], target_is_directory=True)
monkeypatch.setattr("nanobot.agent.tools.sandbox.get_media_dir", lambda: paths["media"])
monkeypatch.setattr("nanobot.execution.sandbox.get_media_dir", lambda: paths["media"])
yield paths