Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(remote-access): collapse advanced tunnel controls
cyh7829d2f1cc9d
diff --git a/ui/src/components/RemoteAccess.tsx b/ui/src/components/RemoteAccess.tsxindex 4be8219cd..745e0791d 100644--- a/ui/src/components/RemoteAccess.tsx+++ b/ui/src/components/RemoteAccess.tsx@@ -352,12 +352,26 @@ export const RemoteAccess: React.FC = () => {{ key: 'quic', label: t('remoteAccess.diagnosticQuic'), status: diagnostics.quic.status },{ key: 'http2', label: t('remoteAccess.diagnosticHttp2'), status: diagnostics.http2.status },] as const : [];- const diagnosticLabel = (diagnosticStatus: 'available' | 'unavailable' | 'unknown') => (- diagnosticStatus === 'available'+ const diagnosticLabel = (+ diagnosticKey: 'dns' | 'quic' | 'http2',+ diagnosticStatus: 'available' | 'unavailable' | 'unknown',+ ) => {+ if (diagnosticKey === 'quic' && diagnosticStatus === 'unknown' && diagnostics?.effective_protocol === 'http2') {+ return t('remoteAccess.diagnosticQuicInactive', { protocol: 'HTTP/2' });+ }+ return diagnosticStatus === 'available'? t('remoteAccess.diagnosticAvailable'): diagnosticStatus === 'unavailable'? t('remoteAccess.diagnosticUnavailable')- : t('remoteAccess.diagnosticUnknown')+ : t('remoteAccess.diagnosticUnknown');+ };+ const diagnosticTitle = (+ diagnosticKey: 'dns' | 'quic' | 'http2',+ diagnosticStatus: 'available' | 'unavailable' | 'unknown',+ ) => (+ diagnosticKey === 'quic' && diagnosticStatus === 'unknown' && diagnostics?.effective_protocol === 'http2'+ ? t('remoteAccess.diagnosticQuicInactiveHelp', { protocol: 'HTTP/2' })+ : undefined);return (@@ -540,147 +554,156 @@ export const RemoteAccess: React.FC = () => {)}{paired && !showPairingForm && (- <div className="border-b border-border px-5 py-4">- <div className="flex flex-wrap items-center justify-between gap-2">+ <details className="group border-b border-border">+ <summary className="flex cursor-pointer list-none items-center justify-between gap-3 px-5 py-4 transition-colors hover:bg-surface/40 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-cyan/60"><div className="flex items-center gap-2"><Settings2 className="size-4 text-cyan" /><h3 className="text-[13px] font-semibold text-foreground">{t('remoteAccess.controls')}</h3></div>- <Button- type="button"- variant="secondary"- size="xs"- disabled={!settingsDirty || controlsDisabled}- onClick={saveTunnelSettings}- >- <Save className="size-3.5" />- {savingSettings ? t('remoteAccess.savingControls') : t('remoteAccess.saveControls')}- </Button>- </div>+ <ChevronDown className="size-4 shrink-0 text-muted transition-transform group-open:rotate-180" />+ </summary>- <div className="mt-3 grid gap-x-5 gap-y-4 md:grid-cols-2">- <div className="min-w-0 space-y-1.5">- <span className="flex min-h-5 items-center justify-between gap-2 text-[12px] font-medium text-foreground">- {t('remoteAccess.protocol')}- {effectiveProtocol !== 'unknown' && (- <Badge variant="secondary">{protocolLabel}</Badge>- )}- </span>- <SegmentedRadio- value={settingsDraft.transport_protocol}- onChange={(value) => updateSetting('transport_protocol', value)}- ariaLabel={t('remoteAccess.protocol')}- disabled={controlsDisabled}- tone="cyan"- options={[- { id: 'auto', label: t('remoteAccess.protocolAuto') },- { id: 'quic', label: 'QUIC' },- { id: 'http2', label: 'HTTP/2' },- ]}- />- </div>+ <div className="px-5 pb-4">+ <div className="grid gap-x-5 gap-y-4 md:grid-cols-2">+ <div className="min-w-0 space-y-1.5">+ <span className="flex min-h-5 items-center justify-between gap-2 text-[12px] font-medium text-foreground">+ {t('remoteAccess.protocol')}+ {effectiveProtocol !== 'unknown' && (+ <Badge variant="secondary">{protocolLabel}</Badge>+ )}+ </span>+ <SegmentedRadio+ value={settingsDraft.transport_protocol}+ onChange={(value) => updateSetting('transport_protocol', value)}+ ariaLabel={t('remoteAccess.protocol')}+ disabled={controlsDisabled}+ tone="cyan"+ options={[+ { id: 'auto', label: t('remoteAccess.protocolAuto') },+ { id: 'quic', label: 'QUIC' },+ { id: 'http2', label: 'HTTP/2' },+ ]}+ />+ </div>++ <div className="min-w-0 space-y-1.5">+ <span className="block min-h-5 text-[12px] font-medium text-foreground">{t('remoteAccess.autoRecovery')}</span>+ <div className="flex h-9 items-center justify-between border-y border-border/70 px-1">+ <Activity className="size-4 text-muted" />+ <Switch+ size="sm"+ checked={settingsDraft.auto_recovery}+ onCheckedChange={(value) => updateSetting('auto_recovery', value)}+ label={t('remoteAccess.autoRecovery')}+ disabled={controlsDisabled}+ />+ </div>+ </div>- <div className="min-w-0 space-y-1.5">- <span className="block min-h-5 text-[12px] font-medium text-foreground">{t('remoteAccess.autoRecovery')}</span>- <div className="flex h-9 items-center justify-between border-y border-border/70 px-1">- <Activity className="size-4 text-muted" />- <Switch- size="sm"- checked={settingsDraft.auto_recovery}- onCheckedChange={(value) => updateSetting('auto_recovery', value)}- label={t('remoteAccess.autoRecovery')}+ <div className="min-w-0 space-y-1.5">+ <span className="block min-h-5 text-[12px] font-medium text-foreground">{t('remoteAccess.optimizationProfile')}</span>+ <SegmentedRadio+ value={settingsDraft.optimization_profile}+ onChange={(value) => updateSetting('optimization_profile', value)}+ ariaLabel={t('remoteAccess.optimizationProfile')}disabled={controlsDisabled}+ options={[+ { id: 'stable', label: t('remoteAccess.profileStable') },+ { id: 'balanced', label: t('remoteAccess.profileBalanced') },+ { id: 'low_latency', label: t('remoteAccess.profileLowLatency') },+ ]}/></div>- </div>- <div className="min-w-0 space-y-1.5">- <span className="block min-h-5 text-[12px] font-medium text-foreground">{t('remoteAccess.optimizationProfile')}</span>- <SegmentedRadio- value={settingsDraft.optimization_profile}- onChange={(value) => updateSetting('optimization_profile', value)}- ariaLabel={t('remoteAccess.optimizationProfile')}- disabled={controlsDisabled}- options={[- { id: 'stable', label: t('remoteAccess.profileStable') },- { id: 'balanced', label: t('remoteAccess.profileBalanced') },- { id: 'low_latency', label: t('remoteAccess.profileLowLatency') },- ]}- />- </div>+ <div className="min-w-0 space-y-1.5">+ <span className="block min-h-5 text-[12px] font-medium text-foreground">{t('remoteAccess.ipFamily')}</span>+ <SegmentedRadio+ value={settingsDraft.edge_ip_version}+ onChange={(value) => updateSetting('edge_ip_version', value)}+ ariaLabel={t('remoteAccess.ipFamily')}+ disabled={controlsDisabled}+ options={[+ { id: '4', label: t('remoteAccess.ipV4') },+ { id: 'auto', label: t('remoteAccess.ipAuto') },+ { id: '6', label: t('remoteAccess.ipV6') },+ ]}+ />+ </div>- <div className="min-w-0 space-y-1.5">- <span className="block min-h-5 text-[12px] font-medium text-foreground">{t('remoteAccess.ipFamily')}</span>- <SegmentedRadio- value={settingsDraft.edge_ip_version}- onChange={(value) => updateSetting('edge_ip_version', value)}- ariaLabel={t('remoteAccess.ipFamily')}- disabled={controlsDisabled}- options={[- { id: '4', label: t('remoteAccess.ipV4') },- { id: 'auto', label: t('remoteAccess.ipAuto') },- { id: '6', label: t('remoteAccess.ipV6') },- ]}- />+ <label className="min-w-0 space-y-1.5 md:col-span-2">+ <span className="block text-[12px] font-medium text-foreground">{t('remoteAccess.outboundInterface')}</span>+ <Select+ value={settingsDraft.edge_bind_address}+ onChange={(event) => updateSetting('edge_bind_address', event.target.value)}+ disabled={controlsDisabled}+ className="font-mono text-[12px]"+ >+ <option value="">{t('remoteAccess.outboundSystem')}</option>+ {networkInterfaces.map((networkInterface) => (+ <option key={networkInterface.id} value={networkInterface.address}>+ {networkInterface.name} · {networkInterface.address}+ </option>+ ))}+ </Select>+ </label></div>- <label className="min-w-0 space-y-1.5 md:col-span-2">- <span className="block text-[12px] font-medium text-foreground">{t('remoteAccess.outboundInterface')}</span>- <Select- value={settingsDraft.edge_bind_address}- onChange={(event) => updateSetting('edge_bind_address', event.target.value)}- disabled={controlsDisabled}- className="font-mono text-[12px]"- >- <option value="">{t('remoteAccess.outboundSystem')}</option>- {networkInterfaces.map((networkInterface) => (- <option key={networkInterface.id} value={networkInterface.address}>- {networkInterface.name} · {networkInterface.address}- </option>- ))}- </Select>- </label>- </div>-- <div className="mt-4 border-t border-border/70 pt-3">- <div className="flex flex-wrap items-center justify-between gap-2">- <div className="flex items-center gap-2">- <Activity className="size-4 text-cyan" />- <span className="text-[12px] font-medium text-foreground">{t('remoteAccess.diagnostics')}</span>- {diagnostics?.cloudflared_version && (- <span className="font-mono text-[10px] text-muted">- {t('remoteAccess.diagnosticVersion', { version: diagnostics.cloudflared_version })}- </span>- )}- </div>+ <div className="mt-4 flex justify-end"><Buttontype="button"variant="secondary"size="xs"- disabled={diagnosing || savingSettings}- onClick={runDiagnostics}+ disabled={!settingsDirty || controlsDisabled}+ onClick={saveTunnelSettings}>- <Activity className="size-3.5" />- {diagnosing ? t('remoteAccess.runningDiagnostics') : t('remoteAccess.runDiagnostics')}+ <Save className="size-3.5" />+ {savingSettings ? t('remoteAccess.savingControls') : t('remoteAccess.saveControls')}</Button></div>- {diagnosticRows.length > 0 && (- <div className="mt-3 grid border-y border-border/70 sm:grid-cols-3">- {diagnosticRows.map((row, index) => (- <div- key={row.key}- className={`flex min-h-11 items-center justify-between gap-2 px-3 py-2 ${index > 0 ? 'border-t border-border/70 sm:border-l sm:border-t-0' : ''}`}- >- <span className="text-[11px] text-muted">{row.label}</span>- <Badge variant={row.status === 'available' ? 'success' : row.status === 'unavailable' ? 'destructive' : 'secondary'}>- {diagnosticLabel(row.status)}- </Badge>- </div>- ))}++ <div className="mt-4 border-t border-border/70 pt-3">+ <div className="flex flex-wrap items-center justify-between gap-2">+ <div className="flex items-center gap-2">+ <Activity className="size-4 text-cyan" />+ <span className="text-[12px] font-medium text-foreground">{t('remoteAccess.diagnostics')}</span>+ {diagnostics?.cloudflared_version && (+ <span className="font-mono text-[10px] text-muted">+ {t('remoteAccess.diagnosticVersion', { version: diagnostics.cloudflared_version })}+ </span>+ )}+ </div>+ <Button+ type="button"+ variant="secondary"+ size="xs"+ disabled={diagnosing || savingSettings}+ onClick={runDiagnostics}+ >+ <Activity className="size-3.5" />+ {diagnosing ? t('remoteAccess.runningDiagnostics') : t('remoteAccess.runDiagnostics')}+ </Button></div>- )}+ {diagnosticRows.length > 0 && (+ <div className="mt-3 grid border-y border-border/70 sm:grid-cols-3">+ {diagnosticRows.map((row, index) => (+ <div+ key={row.key}+ className={`flex min-h-11 items-center justify-between gap-2 px-3 py-2 ${index > 0 ? 'border-t border-border/70 sm:border-l sm:border-t-0' : ''}`}+ >+ <span className="text-[11px] text-muted">{row.label}</span>+ <Badge+ title={diagnosticTitle(row.key, row.status)}+ variant={row.status === 'available' ? 'success' : row.status === 'unavailable' ? 'destructive' : 'secondary'}+ >+ {diagnosticLabel(row.key, row.status)}+ </Badge>+ </div>+ ))}+ </div>+ )}+ </div></div>- </div>+ </details>)}{showPairingForm ? (diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.jsonindex 1e584fe29..6253bdba3 100644--- a/ui/src/i18n/en.json+++ b/ui/src/i18n/en.json@@ -1158,7 +1158,7 @@"optimizeRoute": "Optimize route","optimizingRoute": "Optimizing...","optimizeStarted": "A second Connector is evaluating a better route",- "controls": "Tunnel controls",+ "controls": "Tunnel controls (Advanced)","protocol": "Transport protocol","protocolAuto": "Auto","protocolAutoActive": "Auto · {{protocol}} active",@@ -1185,6 +1185,8 @@"diagnosticAvailable": "Available","diagnosticUnavailable": "Unavailable","diagnosticUnknown": "Not observed",+ "diagnosticQuicInactive": "Unverified · {{protocol}} active",+ "diagnosticQuicInactiveHelp": "Avibe confirms QUIC only after the active Connector demonstrates it. The Connector is currently using {{protocol}}.","diagnosticVersion": "{{version}}"},"models": {diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.jsonindex 2ea4a7354..304ee7a6b 100644--- a/ui/src/i18n/zh.json+++ b/ui/src/i18n/zh.json@@ -1158,7 +1158,7 @@"optimizeRoute": "优化线路","optimizingRoute": "优化中...","optimizeStarted": "第二条 Connector 正在评估更优线路",- "controls": "Tunnel 控制",+ "controls": "Tunnel 控制(高级)","protocol": "传输协议","protocolAuto": "自动","protocolAutoActive": "自动 · 当前 {{protocol}}",@@ -1185,6 +1185,8 @@"diagnosticAvailable": "可用","diagnosticUnavailable": "不可用","diagnosticUnknown": "尚未观测",+ "diagnosticQuicInactive": "未验证 · 当前 {{protocol}}",+ "diagnosticQuicInactiveHelp": "Avibe 只会在当前 Connector 实际使用 QUIC 后确认该路径;当前 Connector 正在使用 {{protocol}}。","diagnosticVersion": "{{version}}"},"models": {