fix(agent): add debug diagnostics for empty model responses

This commit is contained in:
konsisumer 2026-04-25 00:42:53 +02:00
parent 00c3d848d8
commit 38dab6dff4
9 changed files with 53 additions and 13 deletions

View file

@ -2988,8 +2988,9 @@ def _kill_orphaned_mcp_children() -> None:
except (ProcessLookupError, PermissionError, OSError):
pass
# Phase 2: Wait for graceful exit
_time.sleep(2)
# Phase 2: Wait for graceful exit (skip if nothing was signalled)
if pids:
_time.sleep(2)
# Phase 3: SIGKILL any survivors
_sigkill = getattr(_signal, "SIGKILL", _signal.SIGTERM)