From 841eb26ea0345f11fe0f2e7b8f175cb25482fa9d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 25 Jul 2026 14:55:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=20sleep/timeout/nohu?= =?UTF-8?q?p=20=E5=91=BD=E4=BB=A4=E6=94=AF=E6=8C=81=20-=20sleep:=20?= =?UTF-8?q?=E8=AF=8A=E6=96=AD=E8=84=9A=E6=9C=AC=E4=B8=AD=E5=B8=B8=E7=94=A8?= =?UTF-8?q?=E7=AD=89=E5=BE=85=20-=20timeout:=20=E9=99=90=E5=88=B6=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E6=89=A7=E8=A1=8C=E6=97=B6=E9=97=B4=20-=20nohup:=20?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E8=BF=90=E8=A1=8C=E4=BF=9D=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/agent_tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/agent_tools.py b/backend/agent_tools.py index dc0b9c0..535b774 100644 --- a/backend/agent_tools.py +++ b/backend/agent_tools.py @@ -209,7 +209,8 @@ SHELL_READ_ONLY_COMMANDS: dict[str, set[str] | None] = { "nc": None, "nmap": None, "telnet": None, "tcpdump": None, "ethtool": None, "lspci": None, "lsusb": None, "dmidecode": None, "sysctl": None, "udevadm": None, "echo": None, "printf": None, "cd": None, "pwd": None, "export": None, - "test": None, "[": None, + "test": None, "[": None, "sleep": None, + "timeout": None, "nohup": None, } # etcdctl 由 classify_shell_command 中的专用块处理 (两段式命令)