Use host_root chroot for Tentativa 3 fallback so it can reach the host hermes binary
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user