From 401ad2e65da90276fe52b2e7555fdcdefb21bcc3 Mon Sep 17 00:00:00 2001 From: Alex Blank Date: Sat, 30 May 2026 11:58:38 +0200 Subject: [PATCH] feat: always show Recreate Tunnel button for web instances Show the Recreate Tunnel button on all active web-enabled session cards (instead of only when tunnel_status is unreachable) so users can manually trigger tunnel recreation at any time. Also adds it to the mobile action sheet. Quality gates: eslint clean, tsc clean --- apps/api/src/api/tool_instances.py | 16 ++++++++++++---- apps/web/src/components/session-card.tsx | 9 +++++---- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/apps/api/src/api/tool_instances.py b/apps/api/src/api/tool_instances.py index b8da74c..fc59913 100644 --- a/apps/api/src/api/tool_instances.py +++ b/apps/api/src/api/tool_instances.py @@ -1723,15 +1723,23 @@ async def start_instance( logger.debug("Container ID for instance %s: %s", instance.id, container_id) instance.container_name = expected_container_name - logger.debug("Container name for instance %s: %s", instance.id, expected_container_name) + logger.debug( + "Container name for instance %s: %s", instance.id, expected_container_name + ) # Connect container to backend network so API can reach it - logger.debug("Connecting container %s to backend network...", expected_container_name) + logger.debug( + "Connecting container %s to backend network...", expected_container_name + ) connected = connect_container_to_network(expected_container_name, "backend") if connected: - logger.debug("Successfully connected %s to backend network", expected_container_name) + logger.debug( + "Successfully connected %s to backend network", expected_container_name + ) else: - logger.warning("Failed to connect %s to backend network", expected_container_name) + logger.warning( + "Failed to connect %s to backend network", expected_container_name + ) # Verify container reached running state if instance.container_id: diff --git a/apps/web/src/components/session-card.tsx b/apps/web/src/components/session-card.tsx index 0483d66..ca49dfe 100644 --- a/apps/web/src/components/session-card.tsx +++ b/apps/web/src/components/session-card.tsx @@ -229,12 +229,13 @@ export function SessionCard({ )} - {hasTunnelError && onRecreateTunnel && ( + {!isTerminalOnly && onRecreateTunnel && (