This commit is contained in:
Team3
2026-06-06 02:26:42 +02:00
parent a8fbf83059
commit 18bb18bf4a
30 changed files with 1184 additions and 4880 deletions

View File

@@ -44,10 +44,11 @@ def provider_available(provider: str) -> bool:
return True
def kill_process(agent_key: str) -> None:
process = _active_processes.get(agent_key)
if process and process.returncode is None:
process.kill()
def kill_process(agent_key_prefix: str) -> None:
"""Killt alle aktiven Prozesse, deren Key mit dem Prefix beginnt (deckt -plan/-w1… ab)."""
for key, process in list(_active_processes.items()):
if key.startswith(agent_key_prefix) and process.returncode is None:
process.kill()
async def run_agent(