diff --git a/core_tools.py b/core_tools.py index 4dac91d..1d2148d 100644 --- a/core_tools.py +++ b/core_tools.py @@ -519,8 +519,11 @@ def delegate_to_hermes(task: str) -> str: if "not found" not in res.lower() and "no such file" not in res.lower(): return res - # Tentativa 3: Fallback para o CLI antigo do host (Antigravity original) - return run_bash(f"hermes -z {safe_task}", timeout=300) + # Tentativa 3: Fallback para o CLI antigo do host (Antigravity original via chroot) + if os.path.exists("/host_root"): + return run_bash(f"chroot /host_root /bin/bash -c \"hermes -z {safe_task}\"", timeout=300) + else: + return run_bash(f"hermes -z {safe_task}", timeout=300) # ============================================================ # REGISTRY CENTRALIZADO