From ff3c6f59036f98cdf8c8c72425cd64cba9de23d8 Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Mon, 13 Apr 2026 14:04:19 +0900 Subject: [PATCH] =?UTF-8?q?fix(nanoclaude):=20infra=20status=20=E2=80=94?= =?UTF-8?q?=20exited=20=EC=BB=A8=ED=85=8C=EC=9D=B4=EB=84=88=EA=B0=80=20?= =?UTF-8?q?=EC=9E=88=EC=96=B4=EB=8F=84=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20?= =?UTF-8?q?=EB=B0=98=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ok=False(일부 컨테이너 exited)와 error_type(SSH 실패)를 구분. 컨테이너 목록은 항상 반환되도록 수정. Co-Authored-By: Claude Opus 4.6 (1M context) --- nanoclaude/tools/infra_tool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nanoclaude/tools/infra_tool.py b/nanoclaude/tools/infra_tool.py index 33308a6..ce8ecff 100644 --- a/nanoclaude/tools/infra_tool.py +++ b/nanoclaude/tools/infra_tool.py @@ -21,7 +21,8 @@ logger = logging.getLogger(__name__) async def status(host: str = "gpu") -> dict: """Docker container status overview.""" result = await docker_status(host) - if not result.ok: + # SSH/연결 실패 시에만 에러 반환. 컨테이너가 exited여도 데이터는 전달. + if result.error_type: return {"ok": False, "tool": "infra", "operation": "status", "data": [], "summary": "", "error": result.error or "확인 실패"}