The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(browser): inline windows-footgun annotation for os.kill(pid, 0) (#85125 CI)
kshitijk4poor86221181da42
diff --git a/tools/browser_tool.py b/tools/browser_tool.pyindex d64893d9882..8630eed4032 100644--- a/tools/browser_tool.py+++ b/tools/browser_tool.py@@ -3392,10 +3392,8 @@ def _pid_exists(pid: int) -> bool:return psutil.pid_exists(pid)except Exception:return False- # windows-footgun: ok — psutil.pid_exists above handles Windows; this- # os.kill(pid, 0) probe only runs when psutil is unavailable.try:- os.kill(pid, 0)+ os.kill(pid, 0) # windows-footgun: ok — psutil.pid_exists above handles Windowsexcept ProcessLookupError:return Falseexcept PermissionError: