The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(desktop): offset this lane's growth in main.ts and the en catalog
Teknium70860fcfbea9
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.tsindex 8ae84272fe7..c38983e3a74 100644--- a/apps/desktop/electron/main.ts+++ b/apps/desktop/electron/main.ts@@ -16255,21 +16255,16 @@ async function mergeRemoteProfileSessions(searchParams, remoteProfiles, registryconst registrySources = registrySourcesOverride || (await pooledRegistrySessionSources())if (registrySources.length) {- total += await mergeRegistrySessionRows(- registrySources,- remoteParams,- (descriptor, path) => getJsonForBackend(descriptor, path, { timeoutMs: 10_000 }),- merged,- profileTotals- )+ const getRegistryJson = (descriptor, path) => getJsonForBackend(descriptor, path, { timeoutMs: 10_000 })+ total += await mergeRegistrySessionRows(registrySources, remoteParams, getRegistryJson, merged, profileTotals)}const recency = s => s?.[order] ?? s?.started_at ?? 0merged.sort((a, b) => recency(b) - recency(a))- return composeUnifiedSessionResponse(base, merged, offset, limit, total, profileTotals, remoteErrors, {- archivedOnly: searchParams.get('archived') === 'only'- })+ const archivedOnly = searchParams.get('archived') === 'only'++ return composeUnifiedSessionResponse(base, merged, offset, limit, total, profileTotals, remoteErrors, { archivedOnly })}// Every CONNECTED registry gateway as a session source: resolved descriptorsdiff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex 526dde69f0c..ad846682400 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -8,6 +8,7 @@ import { enCatalogInstall } from './en_catalog_install'import { enClarify } from './en_clarify'import { enConnectorAccounts } from './en_connector_accounts'import { enConnectorCard } from './en_connector_card'+import { enGatewayGroupOpen, enSkillDeepLink } from './en_deep_links'import { enFirstRun } from './en_first_run'import { enLocalModels } from './en_local_models'import { enModelMenu } from './en_model_menu'@@ -2101,17 +2102,7 @@ export const en: Translations = {}},- skillDeepLink: {- installTitle: (name: string) => `Install “${name}”?`,- installDescription: 'This skill will be available in new sessions. Only install sources you trust.',- installTo: 'Install to',- thisComputer: 'This computer',- installing: 'Installing…',- installComplete: (name: string) => `“${name}” installed`,- destinationChanged: 'The destination changed. Close this dialog and open the install link again.',- installed: 'Installed',- source: 'Source'- },+ skillDeepLink: enSkillDeepLink,skills: {tabSkills: 'Skills',tabToolsets: 'Tools',@@ -2349,11 +2340,7 @@ export const en: Translations = {importedBadge: 'imported map',resetToMine: 'Back to my map'},- gatewayGroupOpen: {- opening: 'Opening gateway group…',- lookupFailed: 'Could not look up this group on the gateway. Try again.',- missing: 'This gateway group no longer exists.'- },+ gatewayGroupOpen: enGatewayGroupOpen,agents: {extendedTranscript: 'Extended transcript',transcriptTruncated: 'Showing the latest 16 KiB',diff --git a/apps/desktop/src/i18n/en_deep_links.ts b/apps/desktop/src/i18n/en_deep_links.tsnew file mode 100644index 00000000000..9fdeff2e671--- /dev/null+++ b/apps/desktop/src/i18n/en_deep_links.ts@@ -0,0 +1,19 @@+import type { GatewayGroupOpenCopy, SkillDeepLinkCopy } from './types_deep_links'++export const enSkillDeepLink: SkillDeepLinkCopy = {+ installTitle: (name: string) => `Install “${name}”?`,+ installDescription: 'This skill will be available in new sessions. Only install sources you trust.',+ installTo: 'Install to',+ thisComputer: 'This computer',+ installing: 'Installing…',+ installComplete: (name: string) => `“${name}” installed`,+ destinationChanged: 'The destination changed. Close this dialog and open the install link again.',+ installed: 'Installed',+ source: 'Source'+}++export const enGatewayGroupOpen: GatewayGroupOpenCopy = {+ opening: 'Opening gateway group…',+ lookupFailed: 'Could not look up this group on the gateway. Try again.',+ missing: 'This gateway group no longer exists.'+}diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex 8a8de10104c..6461e87ba98 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -15,6 +15,7 @@ import type { BootTranslations } from './types_boot'import type { CatalogInstallTranslations } from './types_catalog_install'import type { ClarifyCopy } from './types_clarify'import type { ConnectorAccountsTranslations, ConnectorCardTranslations } from './types_connectors'+import type { GatewayGroupOpenCopy, SkillDeepLinkCopy } from './types_deep_links'import type { FirstRunCopy } from './types_first_run'import type { ModelMenuTranslations } from './types_model_menu'import type { NoticeTranslations } from './types_notices'@@ -1885,17 +1886,7 @@ export interface Translations extends NoticeTranslations {}}- skillDeepLink: {- installTitle: (name: string) => string- installDescription: string- installTo: string- thisComputer: string- installing: string- installComplete: (name: string) => string- destinationChanged: string- installed: string- source: string- }+ skillDeepLink: SkillDeepLinkCopyskills: {tabSkills: stringtabToolsets: string@@ -2107,12 +2098,7 @@ export interface Translations extends NoticeTranslations {importedBadge: stringresetToMine: string}- /** Bots: reopening a gateway group by name or restored tab key (#140805). */- gatewayGroupOpen: {- opening: string- lookupFailed: string- missing: string- }+ gatewayGroupOpen: GatewayGroupOpenCopyagents: {extendedTranscript: stringtranscriptTruncated: stringdiff --git a/apps/desktop/src/i18n/types_deep_links.ts b/apps/desktop/src/i18n/types_deep_links.tsnew file mode 100644index 00000000000..6928abc1435--- /dev/null+++ b/apps/desktop/src/i18n/types_deep_links.ts@@ -0,0 +1,19 @@+/** Opening a skill install link. */+export interface SkillDeepLinkCopy {+ installTitle: (name: string) => string+ installDescription: string+ installTo: string+ thisComputer: string+ installing: string+ installComplete: (name: string) => string+ destinationChanged: string+ installed: string+ source: string+}++/** Bots: reopening a gateway group by name or restored tab key (#140805). */+export interface GatewayGroupOpenCopy {+ opening: string+ lookupFailed: string+ missing: string+}