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.

feat(ui): spinner on every connecting state

parsa22225fe9f2e2253
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsx
index d8cd05dbb..83e448194 100644
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@ -7154,14 +7154,21 @@ export function Canvas() {
borderRadius: 8
}}
>
- <span
- style={{
- width: 8,
- height: 8,
- borderRadius: '50%',
- background: isError ? '#ff6b6b' : '#e0b341'
- }}
- />
+ {isError ? (
+ <span
+ style={{
+ width: 8,
+ height: 8,
+ borderRadius: '50%',
+ background: '#ff6b6b'
+ }}
+ />
+ ) : (
+ // connecting/reconnecting: the shared spinner instead of a static dot, so a
+ // wait that can legitimately sit for minutes (passphrase prompt, slow host)
+ // reads as in-progress rather than hung.
+ <span className="ui-spinner" aria-hidden />
+ )}
{text}
</div>
)
diff --git a/src/renderer/components/settings/sections/RemoteSection.tsx b/src/renderer/components/settings/sections/RemoteSection.tsx
index 3831238b7..55840ce0d 100644
--- a/src/renderer/components/settings/sections/RemoteSection.tsx
+++ b/src/renderer/components/settings/sections/RemoteSection.tsx
@@ -165,7 +165,13 @@ export function RemoteSection({
}
/>
<Button disabled={connecting || !clientCode.trim()} onClick={() => void connectToHost()}>
- {connecting ? 'Connecting…' : 'Connect'}
+ {connecting ? (
+ <>
+ <span className="ui-spinner" aria-hidden /> Connecting…
+ </>
+ ) : (
+ 'Connect'
+ )}
</Button>
{remoteError ? (
<p className="text-sm" style={{ color: '#ff9f0a' }}>