an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
feat(update): the badge says 'latest' after a check confirms it
Chaitanya Giri11e4bcfdf990
diff --git a/src/renderer/src/components/UpdateBadge.tsx b/src/renderer/src/components/UpdateBadge.tsxindex 6ab1a8ee..cf9d3aa4 100644--- a/src/renderer/src/components/UpdateBadge.tsx+++ b/src/renderer/src/components/UpdateBadge.tsx@@ -83,12 +83,13 @@ export function UpdateBadge() {aria-busy={view.busy || busy}style={{display: 'inline-flex', alignItems: 'center', gap: 6,- padding: view.label ? '2px 8px' : '2px 4px',+ padding: view.label && view.tone !== 'idle' ? '2px 8px' : '2px 4px',margin: 0,background: chipBg,border: 'none',borderRadius: 2,- boxShadow: view.label ? 'inset 0 0 0 1px var(--cth-ink-300)' : 'none',+ // 'latest' is a quiet word after the version, not a chip asking for a click.+ boxShadow: view.label && view.tone !== 'idle' ? 'inset 0 0 0 1px var(--cth-ink-300)' : 'none',fontFamily: 'var(--cth-font-ui)',fontSize: 13,lineHeight: '18px',@@ -100,7 +101,7 @@ export function UpdateBadge() {{view.label && (<><span aria-hidden style={{ color: 'var(--cth-ink-500)' }}>·</span>- <span style={{ fontWeight: 600 }}>{view.label}</span>+ <span style={{ fontWeight: view.tone === 'idle' ? 400 : 600 }}>{view.label}</span></>)}</button>diff --git a/src/shared/updateState.ts b/src/shared/updateState.tsindex 3dc3d622..6cb5b863 100644--- a/src/shared/updateState.ts+++ b/src/shared/updateState.ts@@ -175,7 +175,8 @@ export function describeUpdate(status: UpdateStatus | null, currentVersion: stri};case 'not-available':case 'just-updated':- return { label: null, action: 'check', tone: 'idle', busy: false, title: `v${v} is the latest version — click to check again` };+ // A check has confirmed it, so say so. Idle (no check yet) stays bare.+ return { label: 'latest', action: 'check', tone: 'idle', busy: false, title: `v${v} is the latest version — click to check again` };case 'idle':default:return { label: null, action: 'check', tone: 'idle', busy: false, title: `v${v} — click to check for updates` };diff --git a/test/update-state.test.cjs b/test/update-state.test.cjsindex 5091f8f3..b75ecc89 100644--- a/test/update-state.test.cjs+++ b/test/update-state.test.cjs@@ -84,7 +84,7 @@ test('every actionable state offers the action its label promises', () => {// the whole point of the founder's "tell me and let me trigger it" ask.check(null, { action: 'check', label: null, busy: false });check({ state: 'idle' }, { action: 'check', label: null });- check({ state: 'not-available' }, { action: 'check', label: null });+ check({ state: 'not-available' }, { action: 'check', label: 'latest' });check({ state: 'checking' }, { action: 'none', busy: true });check({ state: 'available', version: '0.3.7' }, { action: 'manual', busy: false });@@ -207,7 +207,7 @@ test('manual update with a direct installer reads as a download, not a page to htest('just-updated is quiet on the badge and loses to a newer available release', () => {const v = describeUpdate({ state: 'just-updated', version: '0.4.5' }, '0.4.5');- assert.equal(v.label, null);+ assert.equal(v.label, 'latest');const next = reduceStatus({ state: 'just-updated', version: '0.4.5' },{ state: 'available', version: '0.4.6' }