Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(browser): end the loading bar when the guest is discarded

Bas Miliusf224b6c59c11
diff --git a/src/renderer/nodes/BrowserSurface.tsx b/src/renderer/nodes/BrowserSurface.tsx
index 6fbf97a1f..89c112852 100644
--- a/src/renderer/nodes/BrowserSurface.tsx
+++ b/src/renderer/nodes/BrowserSurface.tsx
@@ -217,6 +217,9 @@ export function BrowserSurface({
// its own if the load fails again.
setFailure(null)
setNotice('')
+ // The guest is gone, so no did-stop-loading is coming to end a navigation left in flight.
+ loadingRef.current = false
+ setLoading(false)
onGuestDiscarded?.()
},
onRestore: () => {