From cae76b6faea9df43769c8ce21dc667c9ab31b6c0 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 27 Jul 2025 18:05:49 +0200 Subject: [PATCH] Add error logging to SessionRow terminate function Previously, when session termination failed from the X button in the list view, the error was silently swallowed. This made it difficult to diagnose why termination might fail compared to the menu action which has proper logging. Now both termination paths log errors consistently, making debugging easier. --- mac/VibeTunnel/Presentation/Components/Menu/SessionRow.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/mac/VibeTunnel/Presentation/Components/Menu/SessionRow.swift b/mac/VibeTunnel/Presentation/Components/Menu/SessionRow.swift index 4f893c1d..7921845a 100644 --- a/mac/VibeTunnel/Presentation/Components/Menu/SessionRow.swift +++ b/mac/VibeTunnel/Presentation/Components/Menu/SessionRow.swift @@ -360,6 +360,7 @@ struct SessionRow: View { // The session monitor will automatically update } catch { // Handle error + Self.logger.error("Failed to terminate session \(session.key): \(error)") await MainActor.run { isTerminating = false }