From 37933ff6625f2f24d69c4f9f287049813c386a45 Mon Sep 17 00:00:00 2001 From: brooklyn! Date: Thu, 24 Sep 2026 12:17:43 -0500 Subject: [PATCH] fix(docker): ignore a non-string host root when translating a mounted path A MagicMock env attribute is not a workspace. Treating it as one crashed the Windows search path on startswith. --- tools/terminal_tool_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/terminal_tool_config.py b/tools/terminal_tool_config.py index d69aab1f2f..e9cede7660 100644 --- a/tools/terminal_tool_config.py +++ b/tools/terminal_tool_config.py @@ -89,6 +89,8 @@ def translate_mounted_host_path(path: str, host_root: str, container_root: str) drive-letter case do not matter; a sibling directory (``proj`` vs ``proj-other``) is not a child. """ + if not isinstance(path, str) or not isinstance(host_root, str) or not isinstance(container_root, str): + return None if not path or not host_root or not container_root: return None key = _host_path_key(path)