From f59274ae649e5886b5bd32bed3ffb06c19b6c8c3 Mon Sep 17 00:00:00 2001 From: Fusion Date: Sun, 24 May 2026 16:12:21 +0200 Subject: [PATCH] revert: remove explicit WebSocket close that caused immediate disconnection --- apps/api/src/api/terminal.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apps/api/src/api/terminal.py b/apps/api/src/api/terminal.py index 99187a1..c43ed91 100644 --- a/apps/api/src/api/terminal.py +++ b/apps/api/src/api/terminal.py @@ -100,12 +100,6 @@ async def terminal_websocket( # Cancel remaining tasks for task in pending: task.cancel() - - # Close WebSocket cleanly to avoid 1006 abnormal closure - try: - await websocket.close(code=1000) - except Exception: - pass except Exception as exc: logger.error("Terminal session error for instance %s: %s", instance_id, str(exc), exc_info=True)