From 7de7c1c84e5bf05d3c5fe925ebdc6cffca8f15d2 Mon Sep 17 00:00:00 2001 From: Samuel James <143277412+SamuelSJames@users.noreply.github.com> Date: Sat, 20 Jun 2026 07:23:22 -0400 Subject: [PATCH] Allow renaming SSH hosts in Settings (#12) Claude-Session: https://claude.ai/code/session_01BbJV5nm8KPVH1oNJYKpnoF Co-authored-by: Claude --- src/pages/Settings.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/Settings.tsx b/src/pages/Settings.tsx index f6a5947..7acac7a 100644 --- a/src/pages/Settings.tsx +++ b/src/pages/Settings.tsx @@ -453,7 +453,8 @@ function SshHostsSection() { try { const draft = drafts[host.id] ?? {} const { config, secrets } = buildPayload(fieldsWithJumpHost(), draft) - const { integration } = await api.updateIntegration(host.id, { config, secrets }) + const name = draft.__name?.trim() + const { integration } = await api.updateIntegration(host.id, { ...(name ? { name } : {}), config, secrets }) setHosts((prev) => (prev ?? []).map((h) => (h.id === integration.id ? integration : h))) setStatusMsg((prev) => ({ ...prev, [host.id]: 'Saved' })) } catch (err) { @@ -597,7 +598,11 @@ function SshHostsSection() { boxShadow: online ? '0 0 6px rgba(46,204,113,0.6)' : 'none', }} /> - {host.name} + setDraftField(host.id, '__name', e.target.value)} + style={{ fontSize: '13px', color: '#E8E6E0', fontWeight: 600, backgroundColor: 'transparent', border: 'none', outline: 'none', padding: 0, width: '180px' }} + />
{statusMsg[host.id] && {statusMsg[host.id]}}