The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(browser): psutil.pid_exists liveness probe — Windows footgun (#85125 CI)
kshitijk4poor011b2cf4d06d
diff --git a/tools/browser_tool.py b/tools/browser_tool.pyindex 351ba1dc20f..d64893d9882 100644--- a/tools/browser_tool.py+++ b/tools/browser_tool.py@@ -3392,6 +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)except ProcessLookupError: