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(updates): Settings section with version + manual check

enes049325e84e4c
diff --git a/src/renderer/components/SettingsPanel.tsx b/src/renderer/components/SettingsPanel.tsx
index 211ce69a2..6880bccdd 100644
--- a/src/renderer/components/SettingsPanel.tsx
+++ b/src/renderer/components/SettingsPanel.tsx
@@ -1,3 +1,4 @@
+import { useEffect, useState } from 'react'
import { createPortal } from 'react-dom'
import { useSettings } from '../state/settings'
import { NODE_COLORS } from '../state/workspace'
@@ -11,6 +12,11 @@ export function SettingsPanel({ onClose }: SettingsPanelProps) {
const settings = useSettings((s) => s.settings)
const update = useSettings((s) => s.update)
+ const [version, setVersion] = useState('')
+ useEffect(() => {
+ void window.nodeTerminal.updates.getVersion().then(setVersion)
+ }, [])
+
return createPortal(
<div className="drawer-overlay" onClick={onClose}>
<aside className="drawer" onClick={(e) => e.stopPropagation()}>
@@ -209,6 +215,21 @@ export function SettingsPanel({ onClose }: SettingsPanelProps) {
/>
</label>
</section>
+
+ <section>
+ <h3>Updates</h3>
+ <label className="set-row">
+ <span>Current version</span>
+ <span className="set-value">{version || '…'}</span>
+ </label>
+ <button
+ className="set-btn"
+ onClick={() => window.nodeTerminal.updates.check()}
+ >
+ Check for updates
+ </button>
+ <p className="set-note">Results appear in the update card at the bottom-right.</p>
+ </section>
</div>
</aside>
</div>,
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index f4606995f..0b1cb2a3c 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -1467,6 +1467,27 @@ body,
box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25);
}
+.set-value {
+ font-size: 13px;
+ color: var(--text-dim, rgba(255, 255, 255, 0.6));
+}
+
+.set-btn {
+ align-self: flex-start;
+ margin-top: 4px;
+ padding: 6px 14px;
+ background: rgba(255, 255, 255, 0.08);
+ border: 1px solid rgba(255, 255, 255, 0.12);
+ border-radius: 8px;
+ color: var(--text);
+ font-size: 13px;
+ cursor: pointer;
+}
+
+.set-btn:hover {
+ background: rgba(255, 255, 255, 0.14);
+}
+
/* In-app announcements strip (news from the website feed). */
.announce-banner {
display: flex;