The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(desktop): version details name the update channel; the overlay links to change it
Teknium573f514a1997
diff --git a/apps/desktop/src/app/settings/about-settings.test.tsx b/apps/desktop/src/app/settings/about-settings.test.tsxindex f09c24a9431..cf7b69e3005 100644--- a/apps/desktop/src/app/settings/about-settings.test.tsx+++ b/apps/desktop/src/app/settings/about-settings.test.tsx@@ -54,6 +54,7 @@ vi.mock('@/store/updates', async (): Promise<Record<string, unknown>> => {refreshDesktopVersion: vi.fn<() => Promise<DesktopVersionInfo | null>>().mockResolvedValue(null),setUpdateChannel: vi.fn<() => Promise<DesktopUpdateStatus | null>>().mockResolvedValue(null),sourceUpdateChannel: (await vi.importActual<typeof UpdatesStore>('@/store/updates')).sourceUpdateChannel,+ sourceUpdateTrack: (await vi.importActual<typeof UpdatesStore>('@/store/updates')).sourceUpdateTrack,openUpdateOverlayFor: vi.fn(),openUpdatesWindow: vi.fn(),startActiveUpdate: vi.fn()diff --git a/apps/desktop/src/app/updates-overlay.tsx b/apps/desktop/src/app/updates-overlay.tsxindex da4eda1752c..2c6b563f2b1 100644--- a/apps/desktop/src/app/updates-overlay.tsx+++ b/apps/desktop/src/app/updates-overlay.tsx@@ -1,6 +1,9 @@import { useStore } from '@nanostores/react'import { useEffect, useState } from 'react'+import { SETTINGS_ROUTE } from '@/app/routes'+import { SETTING_IDS } from '@/app/settings/settings-manifest'+import { settingsSearchTargetQuery } from '@/app/settings/settings-search'import { BrandMark } from '@/components/brand-mark'import { SyncStatusCard } from '@/components/sync-status-card'import { Button } from '@/components/ui/button'@@ -219,7 +222,21 @@ function IdleView({)}- const details = version ? <VersionDetails version={version} /> : null+ // The channel is chosen in Settings (with its confirm step); here it is named, with a way there.+ const changeChannel = (+ <button+ className="text-primary underline-offset-2 hover:underline"+ onClick={() => {+ setUpdateOverlayOpen(false)+ window.location.hash = `#${SETTINGS_ROUTE}?${settingsSearchTargetQuery({ view: 'about', setting: SETTING_IDS.about.updates })}`+ }}+ type="button"+ >+ {t.settings.about.channel.change}+ </button>+ )++ const details = version ? <VersionDetails channelAction={changeChannel} version={version} /> : null// App-installer check-unknown (OS checker unavailable): NOT "no updates"// and NOT a generic error — the OS also installs updates automatically ondiff --git a/apps/desktop/src/components/update-status.test.tsx b/apps/desktop/src/components/update-status.test.tsxindex e5544466c6a..b3ed6fc89a5 100644--- a/apps/desktop/src/components/update-status.test.tsx+++ b/apps/desktop/src/components/update-status.test.tsx@@ -43,6 +43,27 @@ function derive(status: DesktopUpdateStatus | null, apply: UpdateApplyState = ID}describe('deriveUpdateStatus', () => {+ it('names the stable release only when the checkout is on it', () => {+ const latestRelease = en.settings.about.channel.latestRelease+ const stable = { supported: true, behind: 0, channel: 'stable', sourceVersion: '0.21.6', targetSha: 'a'.repeat(40) }+ const on = deriveUpdateStatus({ apply: IDLE_APPLY, checking: false, latestRelease, status: { ...stable, currentSha: 'a'.repeat(40) }, target: 'client', u: en.updates })+ expect(on.line).toBe('You’re on the latest stable release (v0.21.6).')++ // Ahead of the release (forward-only): the check pins the target to HEAD, so+ // targetSha === currentSha; aheadOfRelease keeps it from claiming the release.+ const ahead = deriveUpdateStatus({+ apply: IDLE_APPLY,+ checking: false,+ latestRelease,+ status: { ...stable, targetSha: 'b'.repeat(40), currentSha: 'b'.repeat(40), aheadOfRelease: true },+ target: 'client',+ u: en.updates+ })++ expect(ahead.line).toBe(en.updates.latestBody)+ expect(derive({ supported: true, behind: 0, branch: 'main' }).line).toBe(en.updates.latestBody)+ })+it('never-checked: idle tone, invites a check', () => {const view = derive(null)diff --git a/apps/desktop/src/components/update-status.tsx b/apps/desktop/src/components/update-status.tsxindex 78fa6fe179a..4207bc6d5ff 100644--- a/apps/desktop/src/components/update-status.tsx+++ b/apps/desktop/src/components/update-status.tsx@@ -65,6 +65,8 @@ interface UpdateStatusInput {status: DesktopUpdateStatus | nulltarget: UpdateTargetu: Translations['updates']+ /** Names the pinned release when a source install is current on stable. */+ latestRelease?: (version: string) => string}export function deriveUpdateStatus(input: UpdateStatusInput): UpdateStatusView {@@ -82,7 +84,7 @@ export function deriveUpdateStatus(input: UpdateStatusInput): UpdateStatusView {return ordinaryUpdateStatus(input)}-function ordinaryUpdateStatus({ apply, checking, status, target, u }: UpdateStatusInput): UpdateStatusView {+function ordinaryUpdateStatus({ apply, checking, latestRelease, status, target, u }: UpdateStatusInput): UpdateStatusView {const behind = status?.behind ?? 0// behind is null when the exact count is unknowable (shallow clone): the// backend flags that case via updateAvailable instead of a number.@@ -120,9 +122,25 @@ function ordinaryUpdateStatus({ apply, checking, status, target, u }: UpdateStat}if (status) {+ // Stable pins to a release; name it. A checkout ahead of it (forward-only) is newer+ // than the release, so it keeps the generic line instead of claiming to be on it.+ const pinned =+ target === 'client' &&+ latestRelease &&+ status.channel === 'stable' &&+ status.sourceVersion &&+ !status.aheadOfRelease &&+ status.targetSha &&+ status.currentSha === status.targetSha+return {applying,- line: target === 'backend' ? u.latestBodyBackend : u.latestBody,+ line:+ target === 'backend'+ ? u.latestBodyBackend+ : pinned+ ? latestRelease(`v${status.sourceVersion}`)+ : u.latestBody,supported,tone: 'idle',updateAvailable@@ -278,7 +296,14 @@ export function UpdateStatusCard({const apply = useStore(isBackend ? $backendUpdateApply : $updateApply)const [justChecked, setJustChecked] = useState<boolean>(false)- const view = deriveUpdateStatus({ apply, checking, status, target, u })+ const view = deriveUpdateStatus({+ apply,+ checking,+ latestRelease: t.settings.about.channel.latestRelease,+ status,+ target,+ u+ })const handleCheck = async (): Promise<void> => {setJustChecked(false)diff --git a/apps/desktop/src/components/version-details.test.tsx b/apps/desktop/src/components/version-details.test.tsxindex 26b4e30cd2c..6539b9ab166 100644--- a/apps/desktop/src/components/version-details.test.tsx+++ b/apps/desktop/src/components/version-details.test.tsx@@ -4,11 +4,13 @@ import { afterEach, describe, expect, it, type Mock, vi } from 'vitest'import type { DesktopVersionInfo } from '@/global'import { I18nProvider } from '@/i18n'import { $previewTabs, closeRightRail } from '@/store/preview'+import { $updateStatus } from '@/store/updates'import { VersionDetails } from './version-details'afterEach((): void => {cleanup()+ $updateStatus.set(null)closeRightRail()vi.unstubAllGlobals()})@@ -132,4 +134,36 @@ describe('VersionDetails', () => {})expect($previewTabs.get()).toHaveLength(0)})++ it('names the source channel, and offers the change action only where the caller passes one', () => {+ const render_ = (action?: boolean) =>+ render(+ <I18nProvider>+ <VersionDetails channelAction={action ? <button type="button">Change</button> : undefined} version={baseVersion} />+ </I18nProvider>+ )++ $updateStatus.set({ supported: true, mechanism: 'posix-handoff', channel: 'stable' })+ render_()+ expect(screen.getByText('Channel')).toBeTruthy()+ expect(screen.getByText('Stable releases')).toBeTruthy()+ expect(screen.queryByRole('button', { name: 'Change' })).toBeNull()+ cleanup()++ $updateStatus.set({ supported: true, mechanism: 'windows-handoff', branch: 'main' })+ render_(true)+ expect(screen.getByText(/Every commit \(main\)/)).toBeTruthy()+ expect(screen.getByRole('button', { name: 'Change' })).toBeTruthy()+ cleanup()++ $updateStatus.set({ supported: true, mechanism: 'posix-handoff', branch: 'feature/gui' })+ render_(true)+ expect(screen.getByText(/Branch: feature\/gui/)).toBeTruthy()+ cleanup()++ // A packaged install's channel is the package's, not a source track: no row.+ $updateStatus.set({ supported: true, mechanism: 'electron-updater', channel: 'stable' })+ render_(true)+ expect(screen.queryByText('Channel')).toBeNull()+ })})diff --git a/apps/desktop/src/components/version-details.tsx b/apps/desktop/src/components/version-details.tsxindex 4f2e896dce0..4b08e403d0c 100644--- a/apps/desktop/src/components/version-details.tsx+++ b/apps/desktop/src/components/version-details.tsx@@ -1,8 +1,12 @@+import { useStore } from '@nanostores/react'+import type { ReactNode } from 'react'+import type { DesktopVersionInfo, RuntimeSource } from '@/global'import { useI18n } from '@/i18n'import { distributionLabelKey } from '@/lib/distribution-label'import { ExternalLink } from '@/lib/external-link'import { shortVersion } from '@/lib/version-label'+import { $updateStatus, sourceUpdateTrack } from '@/store/updates'/*** Human label for an external build's runtime source: the resolution rung@@ -14,6 +18,29 @@ function runtimeSourceLabel(source: RuntimeSource): string {return where ? `${source.type} (${where})` : source.type}+/** What this source install follows (stable, main or a branch); packages render nothing. */+function ChannelRow({ action }: { action?: ReactNode }) {+ const { t } = useI18n()+ const c = t.settings.about.channel+ const track = sourceUpdateTrack(useStore($updateStatus))++ if (!track) {+ return null+ }++ const label = track.kind === 'stable' ? c.stable : track.kind === 'main' ? `${c.main} (main)` : c.branch(track.name)++ return (+ <div className="flex justify-between gap-4">+ <dt className="text-muted-foreground">{c.detailsLabel}</dt>+ <dd className="text-right">+ {label}+ {action && <> · {action}</>}+ </dd>+ </div>+ )+}+/*** Shared build-provenance display. Reads from `$desktopVersion`* (populated from the build stamp / `hermes:version` IPC), so every@@ -21,7 +48,7 @@ function runtimeSourceLabel(source: RuntimeSource): string {* same version, branch, commit, distribution, runtime, and install id* from one source of truth.*/-export function VersionDetails({ version }: { version: DesktopVersionInfo }) {+export function VersionDetails({ version, channelAction }: { version: DesktopVersionInfo; channelAction?: ReactNode }) {const { t } = useI18n()const u = t.updates@@ -75,6 +102,7 @@ export function VersionDetails({ version }: { version: DesktopVersionInfo }) {</dd></div>)}+ <ChannelRow action={channelAction} />{source && (<div className="flex justify-between gap-4"><dt className="text-muted-foreground">{u.versionDetailsBuildOrigin}</dt>diff --git a/apps/desktop/src/global.d.ts b/apps/desktop/src/global.d.tsindex fdc361ac4a8..faf6ee18450 100644--- a/apps/desktop/src/global.d.ts+++ b/apps/desktop/src/global.d.ts@@ -885,6 +885,10 @@ export interface DesktopUpdateStatus {channelSelectable?: boolean/** The latest release tag on a release-feed channel, e.g. `v0.18.0`. */latestTag?: string | null+ /** Source stable: the release version the channel resolves to, e.g. `0.21.6`. */+ sourceVersion?: string+ /** Source stable, forward-only: this checkout is newer than that release and waits for the next. */+ aheadOfRelease?: booleantargetSha?: stringcommits?: DesktopUpdateCommit[]dirty?: booleandiff --git a/apps/desktop/src/i18n/ar_update_channel.ts b/apps/desktop/src/i18n/ar_update_channel.tsindex 5aa8b9b3d73..520434c0eaf 100644--- a/apps/desktop/src/i18n/ar_update_channel.ts+++ b/apps/desktop/src/i18n/ar_update_channel.ts@@ -7,5 +7,9 @@ export const arUpdateChannel = {stableConfirmBody:'سينتقل Hermes إلى أحدث إصدار منشور، وقد يكون أقدم من الكود الذي تشغّله الآن. قد لا تُقرأ البيانات التي كتبها كود أحدث بشكل صحيح، لذا انسخها احتياطيًا أولًا.',stableConfirm: 'التبديل إلى المستقر',- failed: 'تعذّر تغيير قناة التحديث'+ failed: 'تعذّر تغيير قناة التحديث',+ detailsLabel: 'القناة',+ branch: (b: string) => `الفرع: ${b}`,+ change: 'تغيير',+ latestRelease: (v: string) => `أنت على أحدث إصدار مستقر (${v}).`}diff --git a/apps/desktop/src/i18n/de_update_channel.ts b/apps/desktop/src/i18n/de_update_channel.tsindex 4c8e17b0bcb..c4d3d1a1dd8 100644--- a/apps/desktop/src/i18n/de_update_channel.ts+++ b/apps/desktop/src/i18n/de_update_channel.ts@@ -8,5 +8,9 @@ export const deUpdateChannel = {stableConfirmBody:'Hermes wechselt zum neuesten veröffentlichten Release, das älter sein kann als der Code, den du gerade nutzt. Von neuerem Code geschriebene Daten werden eventuell nicht korrekt gelesen – sichere sie vorher.',stableConfirm: 'Zu Stabil wechseln',- failed: 'Update-Kanal konnte nicht geändert werden'+ failed: 'Update-Kanal konnte nicht geändert werden',+ detailsLabel: 'Kanal',+ branch: (b: string) => `Branch: ${b}`,+ change: 'Ändern',+ latestRelease: (v: string) => `Du nutzt das neueste stabile Release (${v}).`}diff --git a/apps/desktop/src/i18n/en_update_channel.ts b/apps/desktop/src/i18n/en_update_channel.tsindex 7743cef7f1e..cddf3efc39b 100644--- a/apps/desktop/src/i18n/en_update_channel.ts+++ b/apps/desktop/src/i18n/en_update_channel.ts@@ -9,5 +9,9 @@ export const enUpdateChannel: UpdateChannelCopy = {stableConfirmBody:'Hermes will move to the latest published release, which can be older than the code you run now. Data written by newer code may not read correctly, so back it up first.',stableConfirm: 'Switch to stable',- failed: 'Could not change the update channel'+ failed: 'Could not change the update channel',+ detailsLabel: 'Channel',+ branch: (b: string) => `Branch: ${b}`,+ change: 'Change',+ latestRelease: (v: string) => `You’re on the latest stable release (${v}).`}diff --git a/apps/desktop/src/i18n/es_update_channel.ts b/apps/desktop/src/i18n/es_update_channel.tsindex c010ae43cc2..5f664fefbc0 100644--- a/apps/desktop/src/i18n/es_update_channel.ts+++ b/apps/desktop/src/i18n/es_update_channel.ts@@ -7,5 +7,9 @@ export const esUpdateChannel = {stableConfirmBody:'Hermes pasará a la última versión publicada, que puede ser más antigua que el código que usas ahora. Los datos escritos por código más nuevo podrían no leerse bien, así que haz una copia antes.',stableConfirm: 'Cambiar a estable',- failed: 'No se pudo cambiar el canal de actualizaciones'+ failed: 'No se pudo cambiar el canal de actualizaciones',+ detailsLabel: 'Canal',+ branch: (b: string) => `Rama: ${b}`,+ change: 'Cambiar',+ latestRelease: (v: string) => `Tienes la última versión estable (${v}).`}diff --git a/apps/desktop/src/i18n/fr_update_channel.ts b/apps/desktop/src/i18n/fr_update_channel.tsindex af003c82467..f0158f69a91 100644--- a/apps/desktop/src/i18n/fr_update_channel.ts+++ b/apps/desktop/src/i18n/fr_update_channel.ts@@ -8,5 +8,9 @@ export const frUpdateChannel = {stableConfirmBody:'Hermes passera à la dernière version publiée, qui peut être plus ancienne que le code que vous utilisez. Les données écrites par un code plus récent risquent de mal se lire : sauvegardez-les d’abord.',stableConfirm: 'Passer en stable',- failed: 'Impossible de changer le canal de mise à jour'+ failed: 'Impossible de changer le canal de mise à jour',+ detailsLabel: 'Canal',+ branch: (b: string) => `Branche : ${b}`,+ change: 'Modifier',+ latestRelease: (v: string) => `Vous utilisez la dernière version stable (${v}).`}diff --git a/apps/desktop/src/i18n/ja_update_channel.ts b/apps/desktop/src/i18n/ja_update_channel.tsindex 71ebc82a704..0da61c9335c 100644--- a/apps/desktop/src/i18n/ja_update_channel.ts+++ b/apps/desktop/src/i18n/ja_update_channel.ts@@ -8,5 +8,9 @@ export const jaUpdateChannel = {stableConfirmBody:'Hermes は最新の公開リリースに移動します。現在のコードより古い場合があります。新しいコードが書き込んだデータは正しく読めない可能性があるため、先にバックアップしてください。',stableConfirm: '安定版に切り替え',- failed: 'アップデートチャンネルを変更できませんでした'+ failed: 'アップデートチャンネルを変更できませんでした',+ detailsLabel: 'チャンネル',+ branch: (b: string) => `ブランチ: ${b}`,+ change: '変更',+ latestRelease: (v: string) => `最新の安定版リリース(${v})を使用しています。`}diff --git a/apps/desktop/src/i18n/ru_update_channel.ts b/apps/desktop/src/i18n/ru_update_channel.tsindex f24b2b2ef55..96b32362134 100644--- a/apps/desktop/src/i18n/ru_update_channel.ts+++ b/apps/desktop/src/i18n/ru_update_channel.ts@@ -8,5 +8,9 @@ export const ruUpdateChannel = {stableConfirmBody:'Hermes перейдёт на последний опубликованный релиз, который может быть старше текущего кода. Данные, записанные более новым кодом, могут читаться неправильно, поэтому сначала сделайте резервную копию.',stableConfirm: 'Перейти на стабильный',- failed: 'Не удалось изменить канал обновлений'+ failed: 'Не удалось изменить канал обновлений',+ detailsLabel: 'Канал',+ branch: (b: string) => `Ветка: ${b}`,+ change: 'Изменить',+ latestRelease: (v: string) => `У вас последний стабильный релиз (${v}).`}diff --git a/apps/desktop/src/i18n/types_update_channel.ts b/apps/desktop/src/i18n/types_update_channel.tsindex 97ea7192c6c..fcca7d6dd0e 100644--- a/apps/desktop/src/i18n/types_update_channel.ts+++ b/apps/desktop/src/i18n/types_update_channel.ts@@ -8,4 +8,12 @@ export interface UpdateChannelCopy {stableConfirmBody: stringstableConfirm: stringfailed: string+ /** Version details: the row naming this install's update channel. */+ detailsLabel: string+ /** A source checkout following a branch other than main. */+ branch: (name: string) => string+ /** Updates overlay: opens Settings › About › Updates, where the channel is chosen. */+ change: string+ /** Up to date on stable: names the release the install is pinned to. */+ latestRelease: (version: string) => string}diff --git a/apps/desktop/src/i18n/zh-hant_update_channel.ts b/apps/desktop/src/i18n/zh-hant_update_channel.tsindex 83e6b8ddf53..6cf9715a1cb 100644--- a/apps/desktop/src/i18n/zh-hant_update_channel.ts+++ b/apps/desktop/src/i18n/zh-hant_update_channel.ts@@ -7,5 +7,9 @@ export const zhHantUpdateChannel = {stableConfirmBody:'Hermes 將切換到最新的已發布版本,它可能比你目前執行的程式碼更舊。較新程式碼寫入的資料可能無法正確讀取,請先備份。',stableConfirm: '切換到穩定版',- failed: '無法變更更新頻道'+ failed: '無法變更更新頻道',+ detailsLabel: '頻道',+ branch: (b: string) => `分支:${b}`,+ change: '變更',+ latestRelease: (v: string) => `你正在使用最新的穩定版發布(${v})。`}diff --git a/apps/desktop/src/i18n/zh_update_channel.ts b/apps/desktop/src/i18n/zh_update_channel.tsindex 8befe56518b..b132a6a1d71 100644--- a/apps/desktop/src/i18n/zh_update_channel.ts+++ b/apps/desktop/src/i18n/zh_update_channel.ts@@ -7,5 +7,9 @@ export const zhUpdateChannel = {stableConfirmBody:'Hermes 将切换到最新的已发布版本,它可能比你当前运行的代码更旧。较新代码写入的数据可能无法正确读取,请先备份。',stableConfirm: '切换到稳定版',- failed: '无法更改更新渠道'+ failed: '无法更改更新渠道',+ detailsLabel: '渠道',+ branch: (b: string) => `分支:${b}`,+ change: '更改',+ latestRelease: (v: string) => `你正在使用最新的稳定版发布(${v})。`}diff --git a/apps/desktop/src/store/updates-channel.test.ts b/apps/desktop/src/store/updates-channel.test.tsindex df9541f86d7..03331e2c2f1 100644--- a/apps/desktop/src/store/updates-channel.test.ts+++ b/apps/desktop/src/store/updates-channel.test.ts@@ -2,7 +2,7 @@ import { describe, expect, it } from 'vitest'import type { DesktopUpdateStatus } from '@/global'-import { sourceUpdateChannel } from './updates'+import { sourceUpdateChannel, sourceUpdateTrack } from './updates'const status = (fields: Partial<DesktopUpdateStatus>): DesktopUpdateStatus => ({supported: true,@@ -30,3 +30,14 @@ describe('sourceUpdateChannel', () => {expect(sourceUpdateChannel(status({ branch: 'feature/gui' }))).toBeNull()})})++describe('sourceUpdateTrack', () => {+ it('names what a source checkout follows, including a custom branch and older runtimes', () => {+ expect(sourceUpdateTrack(status({ channel: 'stable', channelSelectable: undefined }))).toEqual({ kind: 'stable' })+ expect(sourceUpdateTrack(status({ branch: 'main' }))).toEqual({ kind: 'main' })+ expect(sourceUpdateTrack(status({ branch: 'feature/gui' }))).toEqual({ kind: 'branch', name: 'feature/gui' })+ // Packages own their channel; preview channels are not a source track.+ expect(sourceUpdateTrack(status({ mechanism: 'electron-updater', channel: 'stable' }))).toBeNull()+ expect(sourceUpdateTrack(status({ channel: 'pm-preview' }))).toBeNull()+ })+})diff --git a/apps/desktop/src/store/updates.ts b/apps/desktop/src/store/updates.tsindex 5bc1645698a..563b5f0ffdd 100644--- a/apps/desktop/src/store/updates.ts+++ b/apps/desktop/src/store/updates.ts@@ -632,6 +632,25 @@ export async function checkUpdates({ force = false }: UpdateCheckOptions = {}):export type SourceUpdateChannel = 'main' | 'stable'+/** What a source checkout follows, for display; null where a package owns the channel. */+export type SourceUpdateTrack = { kind: 'stable' } | { kind: 'main' } | { kind: 'branch'; name: string }++export function sourceUpdateTrack(status: DesktopUpdateStatus | null): SourceUpdateTrack | null {+ if (!status?.supported || (status.mechanism !== 'posix-handoff' && status.mechanism !== 'windows-handoff')) {+ return null+ }++ if (status.channel === 'stable') {+ return { kind: 'stable' }+ }++ if (status.channel !== undefined || !status.branch) {+ return null+ }++ return status.branch === 'main' ? { kind: 'main' } : { kind: 'branch', name: status.branch }+}+/*** The selectable channel of a source checkout, or null where the selector must not* appear: packages own their channel, runtimes older than the flag cannot save one,diff --git a/hermes_cli/source_check.py b/hermes_cli/source_check.pyindex 0764c0c36c2..279ba23fa82 100644--- a/hermes_cli/source_check.py+++ b/hermes_cli/source_check.py@@ -290,6 +290,9 @@ def _resolve_channel(result: dict, channel: str, co: _Checkout, *, forward_only:result.update(channel=channel, targetSha=target, updateAvailable=co.head != target,behind=0 if co.head == target else UPDATE_AVAILABLE_NO_COUNT,sourceVersion=source_target.version, buildId=source_target.build_id)+ if getattr(source_target, "ahead", False):+ # Forward-only: the target is this checkout's own HEAD, newer than the release.+ result["aheadOfRelease"] = Trueif source_target.retired:result["retirement"] = {"destination": source_target.channel, "sourceOnly": True}return source_targetdiff --git a/locales/_keys.desktop.json b/locales/_keys.desktop.jsonindex 17d03575b88..40f58cc328a 100644--- a/locales/_keys.desktop.json+++ b/locales/_keys.desktop.json@@ -2507,8 +2507,12 @@"sessionImport.subtitle","sessionImport.title","sessionImport.you",+ "settings.about.channel.branch",+ "settings.about.channel.change","settings.about.channel.description",+ "settings.about.channel.detailsLabel","settings.about.channel.failed",+ "settings.about.channel.latestRelease","settings.about.channel.main","settings.about.channel.stable","settings.about.channel.stableConfirm",