Skip to content

The agent that grows with you

refactor(desktop): split the subagent picker under the code-health caps

Tekniuma233de9538fb
diff --git a/apps/desktop/src/app/settings/config-field.tsx b/apps/desktop/src/app/settings/config-field.tsx
index b707077fb8f..ec633f6ddea 100644
--- a/apps/desktop/src/app/settings/config-field.tsx
+++ b/apps/desktop/src/app/settings/config-field.tsx
@@ -3,7 +3,6 @@ import { type ReactNode, useEffect, useRef, useState } from 'react'
import { Input } from '@/components/ui/input'
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
import { Textarea } from '@/components/ui/textarea'
-import type { ProfileScope } from '@/hermes'
import { useI18n } from '@/i18n'
import { prettyName } from '@/lib/text'
import { cn } from '@/lib/utils'
@@ -11,7 +10,6 @@ import type { ConfigFieldSchema } from '@/types/hermes'
import { ComboboxInput } from './combobox-input'
import { CONTROL_TEXT, EMPTY_SELECT_VALUE, FIELD_DESCRIPTIONS, FIELD_LABELS, FREE_INPUT_KEYS } from './constants'
-import { DelegationModelProviderField, type DelegationModelProviderValue } from './delegation-model-provider-field'
import { FallbackModelsField } from './fallback-models-field'
import { fieldCopyForSchemaKey } from './field-copy'
import { ListRow, ToggleRow } from './primitives'
@@ -39,11 +37,7 @@ export function ConfigField({
enumOptions,
optionLabels,
onChange,
- descriptionExtra,
- delegationProvider,
- delegationBaseUrl,
- scope,
- onDelegationChange
+ descriptionExtra
}: {
schemaKey: string
schema: ConfigFieldSchema
@@ -52,10 +46,6 @@ export function ConfigField({
optionLabels?: Record<string, string>
onChange: (value: unknown) => void
descriptionExtra?: ReactNode
- delegationProvider?: string
- delegationBaseUrl?: string
- scope?: ProfileScope
- onDelegationChange?: (next: DelegationModelProviderValue) => void
}) {
const { t } = useI18n()
const c = t.settings.config
@@ -122,22 +112,6 @@ export function ConfigField({
return wideRow(<FallbackModelsField onChange={onChange} value={value} />)
}
- // One route draft owns both rows and applies provider/model atomically.
- if (schemaKey === 'delegation.model') {
- return (
- <div data-tour={dataTour}>
- <DelegationModelProviderField
- baseUrl={delegationBaseUrl}
- model={String(value ?? '')}
- modelDescription={descriptionNode}
- onChange={next => onDelegationChange?.(next)}
- provider={delegationProvider ?? ''}
- scope={scope}
- />
- </div>
- )
- }
-
if (schema.type === 'boolean') {
return (
<ToggleRow
diff --git a/apps/desktop/src/app/settings/config-settings.tsx b/apps/desktop/src/app/settings/config-settings.tsx
index 58d44fbc890..b48a15225f5 100644
--- a/apps/desktop/src/app/settings/config-settings.tsx
+++ b/apps/desktop/src/app/settings/config-settings.tsx
@@ -38,6 +38,7 @@ import { PanelEmpty } from '../overlays/panel'
import { ConfigField } from './config-field'
import { configSubpageForField } from './config-subpages'
+import { DELEGATION_ROUTE_COMPANION_KEY, DelegationRouteRow } from './delegation-route-row'
import {
clearsEnabledToolsets,
diffConfig,
@@ -442,12 +443,9 @@ function ConfigSettingsInner({
return <SettingsSkeleton sections={[{ rows: 6 }]} />
}
- const visibleFields = activeSectionId === 'voice' ? fields.filter(([key]) => voiceFieldVisible(key, config)) : fields
-
- const filteredVisibleFields =
- activeSectionId === 'model' && (subpage === undefined || subpage === 'delegation')
- ? visibleFields.filter(([key]) => key !== 'delegation.provider')
- : visibleFields
+ const visibleFields = (
+ activeSectionId === 'voice' ? fields.filter(([key]) => voiceFieldVisible(key, config)) : fields
+ ).filter(([key]) => key !== DELEGATION_ROUTE_COMPANION_KEY)
const showEmptyState =
visibleFields.length === 0 &&
@@ -506,47 +504,36 @@ function ConfigSettingsInner({
) : null}
{showEmptyState ? (
<EmptyState description={c.emptyDesc} title={c.emptyTitle} />
- ) : filteredVisibleFields.length === 0 ? null : (
+ ) : visibleFields.length === 0 ? null : (
<div className="grid gap-1">
- {filteredVisibleFields.map(([key, field]) => (
+ {visibleFields.map(([key, field]) => (
<div className="scroll-mt-6 rounded-lg" id={`setting-field-${key}`} key={key}>
- <ConfigField
- delegationBaseUrl={
- key === 'delegation.model' ? String(getNested(config, 'delegation.base_url') ?? '') : undefined
- }
- delegationProvider={
- key === 'delegation.model' ? String(getNested(config, 'delegation.provider') ?? '') : undefined
- }
- descriptionExtra={
- key === 'memory.provider' && isExternalMemoryProvider(getNested(config, key)) ? (
- <MemoryConnect profile={scopeProfile} provider={String(getNested(config, key))} />
- ) : undefined
- }
- enumOptions={
- key === 'tts.elevenlabs.voice_id'
- ? enumOptionsFor(key, getNested(config, key), config, elevenLabsVoiceOptions ?? undefined)
- : enumOptionsFor(key, getNested(config, key), config)
- }
- onChange={value => updateConfig(setNested(config, key, value))}
- onDelegationChange={({ model: nextModel, provider: nextProvider, resetDirectEndpoint }) => {
- let next = setNested(
- setNested(config, 'delegation.model', nextModel),
- 'delegation.provider',
- nextProvider
- )
-
- if (resetDirectEndpoint) {
- next = setNested(setNested(next, 'delegation.base_url', ''), 'delegation.api_key', '')
+ {key === 'delegation.model' ? (
+ <DelegationRouteRow
+ config={config}
+ onConfigChange={updateConfig}
+ schema={field}
+ scope={writeScope ?? scopeProfile}
+ />
+ ) : (
+ <ConfigField
+ descriptionExtra={
+ key === 'memory.provider' && isExternalMemoryProvider(getNested(config, key)) ? (
+ <MemoryConnect profile={scopeProfile} provider={String(getNested(config, key))} />
+ ) : undefined
}
-
- updateConfig(next)
- }}
- optionLabels={key === 'tts.elevenlabs.voice_id' ? elevenLabsVoiceLabels : undefined}
- schema={field}
- schemaKey={key}
- scope={writeScope ?? scopeProfile}
- value={getNested(config, key)}
- />
+ enumOptions={
+ key === 'tts.elevenlabs.voice_id'
+ ? enumOptionsFor(key, getNested(config, key), config, elevenLabsVoiceOptions ?? undefined)
+ : enumOptionsFor(key, getNested(config, key), config)
+ }
+ onChange={value => updateConfig(setNested(config, key, value))}
+ optionLabels={key === 'tts.elevenlabs.voice_id' ? elevenLabsVoiceLabels : undefined}
+ schema={field}
+ schemaKey={key}
+ value={getNested(config, key)}
+ />
+ )}
{key === 'memory.provider' && isExternalMemoryProvider(getNested(config, key)) ? (
<ProviderConfigPanel
key={String(getNested(config, key))}
diff --git a/apps/desktop/src/app/settings/delegation-model-provider-field.tsx b/apps/desktop/src/app/settings/delegation-model-provider-field.tsx
index b332d88c25d..0df161de1b5 100644
--- a/apps/desktop/src/app/settings/delegation-model-provider-field.tsx
+++ b/apps/desktop/src/app/settings/delegation-model-provider-field.tsx
@@ -1,7 +1,7 @@
import type { ModelOptionProvider } from '@hermes/shared'
import { useStore } from '@nanostores/react'
import { useQuery } from '@tanstack/react-query'
-import { type ReactNode, useMemo, useState } from 'react'
+import { type ReactNode, useMemo } from 'react'
import { Button } from '@/components/ui/button'
import { Checkbox } from '@/components/ui/checkbox'
@@ -11,25 +11,24 @@ import { getGlobalModelOptions, type ProfileScope, profileScopeKey } from '@/her
import { useI18n } from '@/i18n'
import { findCatalogProvider } from '@/lib/model-options'
import { cn } from '@/lib/utils'
-import { $customModels, customModelSlug, withCustomModels } from '@/store/custom-models'
+import { $customModels, withCustomModels } from '@/store/custom-models'
import { CONTROL_TEXT } from './constants'
+import {
+ CUSTOM_PROVIDER_VALUE,
+ type DelegationModelProviderValue,
+ type DelegationRouteDraft,
+ DIRECT_VALUE,
+ INHERIT_VALUE,
+ MODEL_ONLY_VALUE,
+ providerItem,
+ useDelegationRouteDraft
+} from './delegation-route-draft'
import { ModelSelect } from './model-select'
import { ListRow } from './primitives'
-export interface DelegationModelProviderValue {
- model: string
- provider: string
- /** Explicitly leave direct-endpoint routing. Other request settings stay intact. */
- resetDirectEndpoint: boolean
-}
-
-export const INHERIT_VALUE = '__inherit__'
-export const MODEL_ONLY_VALUE = '__model_only__'
-const DIRECT_VALUE = '__direct__'
-const CUSTOM_PROVIDER_VALUE = '__custom_provider__'
-// Provider item values have a separate namespace from editor actions.
-const providerItem = (provider: string) => `provider:${provider}`
+export type { DelegationModelProviderValue } from './delegation-route-draft'
+export { INHERIT_VALUE, MODEL_ONLY_VALUE } from './delegation-route-draft'
interface DelegationModelProviderFieldProps {
model: string
@@ -40,6 +39,8 @@ interface DelegationModelProviderFieldProps {
onChange: (next: DelegationModelProviderValue) => void
}
+const ROW_CONTROL = 'w-full min-w-0 max-w-full @2xl:w-72'
+
/** A route draft belongs to the same immutable owner as the config that seeded it. */
export function DelegationModelProviderField(props: DelegationModelProviderFieldProps) {
const identity = JSON.stringify([profileScopeKey(props.scope), props.model, props.provider, props.baseUrl ?? ''])
@@ -47,34 +48,9 @@ export function DelegationModelProviderField(props: DelegationModelProviderField
return <DelegationRouteEditor key={identity} {...props} />
}
-function DelegationRouteEditor({
- model,
- provider,
- baseUrl = '',
- modelDescription,
- scope,
- onChange
-}: DelegationModelProviderFieldProps) {
- const { t } = useI18n()
- const c = t.settings.config
- // Match tools/delegate_tool_config.py: native SDK routes ignore a direct URL.
- const nativeSdk = ['bedrock', 'vertex', 'google', 'google-genai'].includes(provider.trim().toLowerCase())
- const hasDirectEndpoint = Boolean(baseUrl.trim()) && !nativeSdk
-
- const initialMode = hasDirectEndpoint
- ? DIRECT_VALUE
- : provider
- ? providerItem(provider)
- : model
- ? MODEL_ONLY_VALUE
- : INHERIT_VALUE
-
- const [mode, setMode] = useState(initialMode)
- const [draftModel, setDraftModel] = useState(model)
- const [draftProvider, setDraftProvider] = useState(provider)
- const [useParentModel, setUseParentModel] = useState(Boolean(provider && !model))
-
- const modelOptions = useQuery({
+/** Catalog rows for the owner being edited; custom ids enrich only providers returned for that owner. */
+function useOwnerCatalog(scope: ProfileScope | undefined) {
+ const query = useQuery({
queryKey: ['model-options', 'delegation', profileScopeKey(scope)],
queryFn: () => getGlobalModelOptions(undefined, scope),
retry: false
@@ -82,164 +58,196 @@ function DelegationRouteEditor({
const customModels = useStore($customModels)
- // Custom ids enrich only providers actually returned for this owner. They
- // cannot introduce another profile's endpoints/provider rows.
const providers = useMemo(
() =>
withCustomModels(
- (modelOptions.data?.providers ?? []).filter(p => p.slug),
+ (query.data?.providers ?? []).filter(p => p.slug),
customModels
),
- [modelOptions.data?.providers, customModels]
+ [query.data?.providers, customModels]
)
- const selectedProvider: ModelOptionProvider | undefined = findCatalogProvider(providers, draftProvider)
-
- const displayProviders =
- draftProvider && !providers.some(p => p.slug === draftProvider)
- ? [
- {
- name: selectedProvider?.name ?? draftProvider,
- slug: draftProvider,
- models: selectedProvider?.models ?? []
- },
- ...providers
- ]
- : providers
-
- const inherit = mode === INHERIT_VALUE
- const direct = mode === DIRECT_VALUE
- const modelOnly = mode === MODEL_ONLY_VALUE
- const manualProvider = mode === CUSTOM_PROVIDER_VALUE
- const nextProvider = inherit || modelOnly ? '' : draftProvider
- const nextModel = inherit || useParentModel ? '' : draftModel
- const resetDirectEndpoint = !direct && (hasDirectEndpoint || mode !== initialMode)
- const changed = nextProvider !== provider || nextModel !== model || (Boolean(baseUrl.trim()) && resetDirectEndpoint)
- const validProvider = inherit || modelOnly || direct || Boolean(selectedProvider || customModelSlug(nextProvider))
- const validModel = inherit || useParentModel || Boolean(customModelSlug(nextModel))
- const pending = mode !== initialMode || draftModel !== model || draftProvider !== provider || changed
-
- const reset = () => {
- setMode(initialMode)
- setDraftModel(model)
- setDraftProvider(provider)
- setUseParentModel(Boolean(provider && !model))
- }
+ return { providers, query }
+}
- const chooseProvider = (value: string) => {
- setMode(value)
- setUseParentModel(false)
-
- if (value === INHERIT_VALUE) {
- setDraftModel('')
- } else if (value === CUSTOM_PROVIDER_VALUE) {
- setDraftProvider('')
- setDraftModel('')
- } else if (value.startsWith('provider:')) {
- const selected = value.slice('provider:'.length)
- setDraftProvider(selected)
-
- // Never reinterpret a model from the previous route as a completed switch.
- if (selected !== draftProvider) {
- setDraftModel('')
- }
- }
+/** A saved provider the catalog lacks (alias, display name, custom) stays visible as-is. */
+function displayProviders(
+ providers: readonly ModelOptionProvider[],
+ draftProvider: string
+): readonly ModelOptionProvider[] {
+ if (!draftProvider || providers.some(p => p.slug === draftProvider)) {
+ return providers
}
+ const found = findCatalogProvider(providers, draftProvider)
+
+ return [{ name: found?.name ?? draftProvider, slug: draftProvider, models: found?.models ?? [] }, ...providers]
+}
+
+function DelegationRouteEditor({
+ model,
+ provider,
+ baseUrl = '',
+ modelDescription,
+ scope,
+ onChange
+}: DelegationModelProviderFieldProps) {
+ const { providers, query } = useOwnerCatalog(scope)
+ const draft = useDelegationRouteDraft({ model, provider, baseUrl }, providers)
+ const showsModel = draft.mode !== INHERIT_VALUE && !draft.useParentModel
+
return (
<div className="grid gap-1">
- <ListRow
- action={
- <div className="grid w-full min-w-0 max-w-full @2xl:w-72 gap-2">
- <Select onValueChange={chooseProvider} value={mode}>
- <SelectTrigger
- aria-label={c.delegationProviderSelectLabel}
- className={cn(CONTROL_TEXT, '[&_[data-slot=select-value]]:truncate')}
- >
- <SelectValue placeholder={t.settings.model.provider} />
- </SelectTrigger>
- <SelectContent>
- {hasDirectEndpoint && <SelectItem value={DIRECT_VALUE}>{c.delegationDirect}</SelectItem>}
- <SelectItem value={INHERIT_VALUE}>{c.delegationInherit}</SelectItem>
- <SelectItem value={MODEL_ONLY_VALUE}>{c.delegationModelOnly}</SelectItem>
- {displayProviders.map(p => (
- <SelectItem key={p.slug} value={providerItem(p.slug)}>
- {p.name}
- </SelectItem>
- ))}
- <SelectItem value={CUSTOM_PROVIDER_VALUE}>{c.delegationCustomProvider}</SelectItem>
- </SelectContent>
- </Select>
- {manualProvider && (
- <Input
- aria-label={c.delegationCustomProviderLabel}
- onChange={event => setDraftProvider(event.target.value)}
- placeholder="custom:provider"
- value={draftProvider}
- />
- )}
- </div>
- }
- description={inherit || useParentModel ? modelDescription : undefined}
- title={c.delegationProviderSelectLabel}
+ <ProviderRow
+ description={showsModel ? undefined : modelDescription}
+ draft={draft}
+ providers={displayProviders(providers, draft.provider)}
/>
- {!inherit && !useParentModel && (
- <ListRow
- action={
- <ModelSelect
- aria-label={c.delegationModelSelectLabel}
- className="w-full min-w-0 max-w-full @2xl:w-72 [&_[data-slot=select-value]]:truncate"
- models={direct || modelOnly || manualProvider ? [] : (selectedProvider?.models ?? [])}
- onValueChange={setDraftModel}
- provider={direct || modelOnly || manualProvider ? undefined : selectedProvider}
- providerSlug={modelOnly || direct || manualProvider ? '' : draftProvider}
- value={draftModel}
+ {showsModel && <ModelRow description={modelDescription} draft={draft} providers={providers} />}
+ <div className="grid justify-items-end gap-3 pb-3 text-right">
+ <RouteNotes draft={draft} />
+ {query.isError && <CatalogRetry fetching={query.isFetching} onRetry={() => void query.refetch()} />}
+ {draft.pending && <ApplyBar draft={draft} onApply={() => onChange(draft.value)} />}
+ </div>
+ </div>
+ )
+}
+
+function ProviderRow({
+ draft,
+ providers,
+ description
+}: {
+ draft: DelegationRouteDraft
+ providers: readonly ModelOptionProvider[]
+ description?: ReactNode
+}) {
+ const { t } = useI18n()
+ const s = t.settings.model.subagents
+
+ return (
+ <ListRow
+ action={
+ <div className={cn('grid gap-2', ROW_CONTROL)}>
+ <Select onValueChange={draft.chooseMode} value={draft.mode}>
+ <SelectTrigger
+ aria-label={s.providerLabel}
+ className={cn(CONTROL_TEXT, '[&_[data-slot=select-value]]:truncate')}
+ >
+ <SelectValue placeholder={t.settings.model.provider} />
+ </SelectTrigger>
+ <SelectContent>
+ {draft.hasDirectEndpoint && <SelectItem value={DIRECT_VALUE}>{s.direct}</SelectItem>}
+ <SelectItem value={INHERIT_VALUE}>{s.inherit}</SelectItem>
+ <SelectItem value={MODEL_ONLY_VALUE}>{s.modelOnly}</SelectItem>
+ {providers.map(p => (
+ <SelectItem key={p.slug} value={providerItem(p.slug)}>
+ {p.name}
+ </SelectItem>
+ ))}
+ <SelectItem value={CUSTOM_PROVIDER_VALUE}>{s.customProvider}</SelectItem>
+ </SelectContent>
+ </Select>
+ {draft.mode === CUSTOM_PROVIDER_VALUE && (
+ <Input
+ aria-label={s.customProviderLabel}
+ onChange={event => draft.setProvider(event.target.value)}
+ placeholder="custom:provider"
+ value={draft.provider}
/>
- }
- description={modelDescription}
- title={c.delegationModelSelectLabel}
+ )}
+ </div>
+ }
+ description={description}
+ title={s.providerLabel}
+ />
+ )
+}
+
+function ModelRow({
+ draft,
+ providers,
+ description
+}: {
+ draft: DelegationRouteDraft
+ providers: readonly ModelOptionProvider[]
+ description?: ReactNode
+}) {
+ const { t } = useI18n()
+ const s = t.settings.model.subagents
+ // Direct, model-only and hand-typed providers have no catalog list: free text only.
+ const listed = draft.mode.startsWith(providerItem(''))
+ const selected = listed ? findCatalogProvider(providers, draft.provider) : undefined
+
+ return (
+ <ListRow
+ action={
+ <ModelSelect
+ aria-label={s.modelLabel}
+ className={cn(ROW_CONTROL, '[&_[data-slot=select-value]]:truncate')}
+ models={selected?.models ?? []}
+ onValueChange={draft.setModel}
+ provider={selected}
+ providerSlug={listed ? draft.provider : ''}
+ value={draft.model}
/>
+ }
+ description={description}
+ title={s.modelLabel}
+ />
+ )
+}
+
+function RouteNotes({ draft }: { draft: DelegationRouteDraft }) {
+ const { t } = useI18n()
+ const s = t.settings.model.subagents
+ const allowsParentModel = draft.mode !== INHERIT_VALUE && draft.mode !== MODEL_ONLY_VALUE
+ const note = 'text-xs text-muted-foreground'
+
+ return (
+ <>
+ {allowsParentModel && (
+ <label className={cn('flex items-center gap-2', note)}>
+ <Checkbox
+ checked={draft.useParentModel}
+ onCheckedChange={checked => draft.setUseParentModel(checked === true)}
+ />
+ {s.parentModel}
+ </label>
)}
- <div className="grid justify-items-end gap-3 pb-3 text-right">
- {!inherit && !modelOnly && (
- <label className="flex items-center gap-2 text-xs text-muted-foreground">
- <Checkbox checked={useParentModel} onCheckedChange={checked => setUseParentModel(checked === true)} />
- {c.delegationParentModel}
- </label>
- )}
- {useParentModel && <p className="text-xs text-muted-foreground">{c.delegationParentModelWarning}</p>}
- {hasDirectEndpoint && (
- <p className="text-xs text-muted-foreground">{direct ? c.delegationDirectActive : c.delegationDirectClear}</p>
- )}
- {modelOptions.isError && (
- <div className="flex flex-wrap items-center gap-2" role="status">
- <p className="text-xs text-muted-foreground">{c.delegationCatalogFailed}</p>
- <Button
- disabled={modelOptions.isFetching}
- onClick={() => void modelOptions.refetch()}
- size="xs"
- variant="secondary"
- >
- {t.common.retry}
- </Button>
- </div>
- )}
- {pending && (
- <div className="flex flex-wrap items-center justify-end gap-2">
- <span className="text-xs text-muted-foreground">{c.delegationDraftHint}</span>
- <Button onClick={reset} size="sm" variant="text">
- {t.common.cancel}
- </Button>
- <Button
- disabled={!changed || !validProvider || !validModel}
- onClick={() => onChange({ model: nextModel, provider: nextProvider, resetDirectEndpoint })}
- size="sm"
- >
- {t.common.apply}
- </Button>
- </div>
- )}
- </div>
+ {draft.useParentModel && <p className={note}>{s.parentModelWarning}</p>}
+ {draft.hasDirectEndpoint && (
+ <p className={note}>{draft.mode === DIRECT_VALUE ? s.directActive : s.directClear}</p>
+ )}
+ </>
+ )
+}
+
+function CatalogRetry({ fetching, onRetry }: { fetching: boolean; onRetry: () => void }) {
+ const { t } = useI18n()
+
+ return (
+ <div className="flex flex-wrap items-center gap-2" role="status">
+ <p className="text-xs text-muted-foreground">{t.settings.model.subagents.catalogFailed}</p>
+ <Button disabled={fetching} onClick={onRetry} size="xs" variant="secondary">
+ {t.common.retry}
+ </Button>
+ </div>
+ )
+}
+
+function ApplyBar({ draft, onApply }: { draft: DelegationRouteDraft; onApply: () => void }) {
+ const { t } = useI18n()
+
+ return (
+ <div className="flex flex-wrap items-center justify-end gap-2">
+ <span className="text-xs text-muted-foreground">{t.settings.model.subagents.draftHint}</span>
+ <Button onClick={draft.reset} size="sm" variant="text">
+ {t.common.cancel}
+ </Button>
+ <Button disabled={!draft.canApply} onClick={onApply} size="sm">
+ {t.common.apply}
+ </Button>
</div>
)
}
diff --git a/apps/desktop/src/app/settings/delegation-route-draft.ts b/apps/desktop/src/app/settings/delegation-route-draft.ts
new file mode 100644
index 00000000000..ca069ee6a5c
--- /dev/null
+++ b/apps/desktop/src/app/settings/delegation-route-draft.ts
@@ -0,0 +1,137 @@
+import type { ModelOptionProvider } from '@hermes/shared'
+import { useState } from 'react'
+
+import { findCatalogProvider } from '@/lib/model-options'
+import { customModelSlug } from '@/store/custom-models'
+
+export interface DelegationModelProviderValue {
+ model: string
+ provider: string
+ /** Explicitly leave direct-endpoint routing. Other request settings stay intact. */
+ resetDirectEndpoint: boolean
+}
+
+export interface SavedRoute {
+ model: string
+ provider: string
+ baseUrl: string
+}
+
+export const INHERIT_VALUE = '__inherit__'
+export const MODEL_ONLY_VALUE = '__model_only__'
+export const DIRECT_VALUE = '__direct__'
+export const CUSTOM_PROVIDER_VALUE = '__custom_provider__'
+const PROVIDER_PREFIX = 'provider:'
+// Provider item values have a separate namespace from editor actions.
+export const providerItem = (provider: string) => `${PROVIDER_PREFIX}${provider}`
+
+// Match tools/delegate_tool_config.py: native SDK routes ignore a direct URL.
+const NATIVE_SDK_PROVIDERS = new Set(['bedrock', 'vertex', 'google', 'google-genai'])
+
+export function directEndpointActive({ provider, baseUrl }: SavedRoute): boolean {
+ return Boolean(baseUrl.trim()) && !NATIVE_SDK_PROVIDERS.has(provider.trim().toLowerCase())
+}
+
+function savedMode(saved: SavedRoute): string {
+ if (directEndpointActive(saved)) {
+ return DIRECT_VALUE
+ }
+
+ if (saved.provider) {
+ return providerItem(saved.provider)
+ }
+
+ return saved.model ? MODEL_ONLY_VALUE : INHERIT_VALUE
+}
+
+/** A provider the catalog or a typed slug names, and a model unless the route inherits it. */
+function routeComplete(
+ draft: { mode: string; provider: string; useParentModel: boolean },
+ nextProvider: string,
+ nextModel: string,
+ providers: readonly ModelOptionProvider[]
+): boolean {
+ const providerless = [INHERIT_VALUE, MODEL_ONLY_VALUE, DIRECT_VALUE].includes(draft.mode)
+ const providerKnown = Boolean(findCatalogProvider(providers, draft.provider) || customModelSlug(nextProvider))
+ const modelInherited = draft.mode === INHERIT_VALUE || draft.useParentModel
+
+ return (providerless || providerKnown) && (modelInherited || Boolean(customModelSlug(nextModel)))
+}
+
+/** The route an Apply would write, and whether Apply is allowed. */
+function draftOutcome(
+ saved: SavedRoute,
+ draft: { mode: string; model: string; provider: string; useParentModel: boolean },
+ providers: readonly ModelOptionProvider[]
+) {
+ const initialMode = savedMode(saved)
+ const inherit = draft.mode === INHERIT_VALUE
+ const modelOnly = draft.mode === MODEL_ONLY_VALUE
+ const direct = draft.mode === DIRECT_VALUE
+ const nextProvider = inherit || modelOnly ? '' : draft.provider
+ const nextModel = inherit || draft.useParentModel ? '' : draft.model
+ const hadDirect = directEndpointActive(saved)
+ const resetDirectEndpoint = !direct && (hadDirect || draft.mode !== initialMode)
+ const clearsEndpoint = Boolean(saved.baseUrl.trim()) && resetDirectEndpoint
+ const changed = nextProvider !== saved.provider || nextModel !== saved.model || clearsEndpoint
+ const edited = draft.mode !== initialMode || draft.model !== saved.model || draft.provider !== saved.provider
+
+ return {
+ canApply: changed && routeComplete(draft, nextProvider, nextModel, providers),
+ pending: edited || changed,
+ value: { model: nextModel, provider: nextProvider, resetDirectEndpoint }
+ }
+}
+
+/** One local draft for the subagent route; nothing is written until the caller applies `value`. */
+export function useDelegationRouteDraft(saved: SavedRoute, providers: readonly ModelOptionProvider[]) {
+ const initialMode = savedMode(saved)
+ const parentModelInitially = Boolean(saved.provider && !saved.model)
+ const [mode, setMode] = useState(initialMode)
+ const [model, setModel] = useState(saved.model)
+ const [provider, setProvider] = useState(saved.provider)
+ const [useParentModel, setUseParentModel] = useState(parentModelInitially)
+
+ const reset = () => {
+ setMode(initialMode)
+ setModel(saved.model)
+ setProvider(saved.provider)
+ setUseParentModel(parentModelInitially)
+ }
+
+ const chooseMode = (value: string) => {
+ setMode(value)
+ setUseParentModel(false)
+
+ if (value === INHERIT_VALUE) {
+ setModel('')
+ } else if (value === CUSTOM_PROVIDER_VALUE) {
+ setProvider('')
+ setModel('')
+ } else if (value.startsWith(PROVIDER_PREFIX)) {
+ const selected = value.slice(PROVIDER_PREFIX.length)
+ setProvider(selected)
+
+ // Never reinterpret a model from the previous route as a completed switch.
+ if (selected !== provider) {
+ setModel('')
+ }
+ }
+ }
+
+ return {
+ mode,
+ model,
+ provider,
+ useParentModel,
+ hasDirectEndpoint: directEndpointActive(saved),
+ setModel,
+ setProvider,
+ setUseParentModel,
+ chooseMode,
+ reset,
+ ...draftOutcome(saved, { mode, model, provider, useParentModel }, providers)
+ }
+}
+
+export type DelegationRouteDraft = ReturnType<typeof useDelegationRouteDraft>
diff --git a/apps/desktop/src/app/settings/delegation-route-row.tsx b/apps/desktop/src/app/settings/delegation-route-row.tsx
new file mode 100644
index 00000000000..660036a7aa9
--- /dev/null
+++ b/apps/desktop/src/app/settings/delegation-route-row.tsx
@@ -0,0 +1,62 @@
+import type { ProfileScope } from '@/hermes'
+import { useI18n } from '@/i18n'
+import type { ConfigFieldSchema, HermesConfigRecord } from '@/types/hermes'
+
+import { FIELD_DESCRIPTIONS } from './constants'
+import { DelegationModelProviderField, type DelegationModelProviderValue } from './delegation-model-provider-field'
+import { fieldCopyForSchemaKey } from './field-copy'
+import { getNested, setNested } from './helpers'
+
+/** `delegation.provider` renders inside the `delegation.model` row, which applies both at once. */
+export const DELEGATION_ROUTE_COMPANION_KEY = 'delegation.provider'
+
+// A direct endpoint is URL + key + wire protocol; leaving it drops all three so a later endpoint
+// never inherits a stale protocol (from #138048). Request settings belong to every route and stay.
+const DIRECT_ENDPOINT_KEYS = ['delegation.base_url', 'delegation.api_key', 'delegation.api_mode']
+
+/** The config after applying a subagent route. */
+export function applyDelegationRoute(
+ config: HermesConfigRecord,
+ { model, provider, resetDirectEndpoint }: DelegationModelProviderValue
+): HermesConfigRecord {
+ let next = setNested(setNested(config, 'delegation.model', model), 'delegation.provider', provider)
+
+ if (resetDirectEndpoint) {
+ next = DIRECT_ENDPOINT_KEYS.reduce((acc, key) => setNested(acc, key, ''), next)
+ }
+
+ return next
+}
+
+/** One provider + model route draft for subagents, read from and written back to the owner's config. */
+export function DelegationRouteRow({
+ config,
+ schema,
+ scope,
+ onConfigChange
+}: {
+ config: HermesConfigRecord
+ schema: ConfigFieldSchema
+ scope?: ProfileScope
+ onConfigChange: (next: HermesConfigRecord) => void
+}) {
+ const { t } = useI18n()
+
+ const description =
+ fieldCopyForSchemaKey(t.settings.fieldDescriptions, 'delegation.model') ??
+ fieldCopyForSchemaKey(FIELD_DESCRIPTIONS, 'delegation.model') ??
+ schema.description
+
+ return (
+ <div data-tour="field-delegation.model">
+ <DelegationModelProviderField
+ baseUrl={String(getNested(config, 'delegation.base_url') ?? '')}
+ model={String(getNested(config, 'delegation.model') ?? '')}
+ modelDescription={description}
+ onChange={route => onConfigChange(applyDelegationRoute(config, route))}
+ provider={String(getNested(config, 'delegation.provider') ?? '')}
+ scope={scope}
+ />
+ </div>
+ )
+}
diff --git a/apps/desktop/src/app/settings/delegation-settings-integration.test.tsx b/apps/desktop/src/app/settings/delegation-settings-integration.test.tsx
index 47775634dbd..b0e846d79ed 100644
--- a/apps/desktop/src/app/settings/delegation-settings-integration.test.tsx
+++ b/apps/desktop/src/app/settings/delegation-settings-integration.test.tsx
@@ -30,6 +30,7 @@ vi.mock('@/store/settings-scope', () => ({
vi.mock('./profile-scope', () => ({ SettingsProfileScope: () => null }))
vi.mock('../hooks/use-on-profile-switch', () => ({ useOnProfileSwitch: () => {} }))
vi.mock('@/store/projects', () => ({
+ $worktreeRefreshToken: atom(0),
repoDiscoveryPolicyFromConfig: () => ({ enabled: true, roots: [], exclude_paths: [] }),
repoDiscoveryPolicySignature: (policy: unknown) => JSON.stringify(policy),
scanAndRecordRepos: vi.fn().mockResolvedValue(undefined)
@@ -178,8 +179,8 @@ describe('real settings route and autosave integration', () => {
const route = (saves[0].body as { config: HermesConfigRecord }).config.delegation as Record<string, unknown>
expect(route.base_url).toBe('')
expect(route.api_key).toBe('')
+ expect(route.api_mode).toBe('')
expect(route).not.toHaveProperty('request_overrides')
- expect(route).not.toHaveProperty('api_mode')
expect(route.model ?? 'old-model').toBe(
choice === 'Inherit from main agent' ? '' : choice === 'Anthropic' ? 'claude-sonnet-4-6' : 'old-model'
)
diff --git a/apps/desktop/src/i18n/ar_settings.ts b/apps/desktop/src/i18n/ar_settings.ts
index f9050862696..bfbf122f92d 100644
--- a/apps/desktop/src/i18n/ar_settings.ts
+++ b/apps/desktop/src/i18n/ar_settings.ts
@@ -805,6 +805,23 @@ export const arSettings = {
label: 'المنسّق',
hint: 'مراجعة استخدام المهارات'
}
+ },
+ subagents: {
+ inherit: 'الوراثة من الوكيل الرئيسي',
+ modelOnly: 'نموذج مخصص (بيانات اعتماد الوكيل الرئيسي)',
+ providerLabel: 'موفّر الوكلاء الفرعيين',
+ modelLabel: 'نموذج الوكلاء الفرعيين',
+ direct: 'نقطة نهاية مباشرة',
+ customProvider: 'موفّر مخصص...',
+ customProviderLabel: 'موفّر مخصص للوكلاء الفرعيين',
+ parentModel: 'استخدام نموذج الوكيل الرئيسي',
+ parentModelWarning:
+ 'يجب أن يدعم الموفّر المختار نموذج الوكيل الرئيسي. قد يفشل المسار الذي يحدد الموفّر وحده إذا كان النموذج غير متوافق.',
+ directActive:
+ 'نقطة نهاية مباشرة مفعّلة ولها الأولوية على الموفّر المحفوظ. يُحتفظ بعنوانها وبيانات اعتمادها ما دام هذا الوضع محددًا.',
+ directClear: 'تطبيق هذا المسار يمسح نقطة النهاية المباشرة ومفتاحها المحفوظ. تبقى إعدادات الطلب الأخرى كما هي.',
+ catalogFailed: 'كتالوج النماذج غير متاح. أدخل الموفّر والنموذج يدويًا أو أعد المحاولة.',
+ draftHint: 'تبقى التغييرات محلية حتى تطبيقها.'
}
},
providers: {
diff --git a/apps/desktop/src/i18n/de.ts b/apps/desktop/src/i18n/de.ts
index 230d35a84b5..9b2a7a43540 100644
--- a/apps/desktop/src/i18n/de.ts
+++ b/apps/desktop/src/i18n/de.ts
@@ -1,6 +1,5 @@
import { defineFieldCopy } from '@/app/settings/field-copy'
-import { deAuxTasks } from './de_aux_tasks'
import { deBoot } from './de_boot'
import { deClarify } from './de_clarify'
import { deConnectorAccounts } from './de_connector_accounts'
@@ -8,6 +7,7 @@ import { deConnectorCard } from './de_connector_card'
import { deFirstRun } from './de_first_run'
import { deLocalModels } from './de_local_models'
import { deModelMenu } from './de_model_menu'
+import { deModelSettings } from './de_model_settings'
import { deNotices } from './de_notices'
import { deOnboarding } from './de_onboarding'
import { deProjects } from './de_projects'
@@ -1942,69 +1942,7 @@ export const deOverrides = {
deepLinkErrorUrl: 'Nur http:// und https:// Server-URLs sind erlaubt.',
deepLinkErrorTooLarge: 'Die Config-Payload überschreitet das 32-KB-Limit.'
},
- model: {
- setupProviderFallback: 'Anbieter',
- setUpProvider: name => `${name} einrichten`,
- staleAuxBefore: (count, names) =>
- `${count} Hilfsaufgabe${count === 1 ? '' : 'n'} (${names}) ${count === 1 ? 'läuft' : 'laufen'} noch auf `,
- staleAuxAfter: ', nicht auf Ihrem Hauptmodell.',
- staleAuxOtherProviders: 'anderen Anbietern',
- moaEnabled: 'Aktiviert',
- moaSetDefault: 'Als Standard festlegen',
- moaNewPresetPlaceholder: 'neue Vorlage',
- moaAddPreset: 'Vorlage hinzufügen',
- customModel: 'Eigenes Modell…',
- customModelPlaceholder: 'Modell-ID',
- chooseFromList: 'Aus Liste wählen',
- moaDefault: 'Standard:',
- moaReferenceToggle: (enabled, index) => `Referenz ${index} ${enabled ? 'deaktivieren' : 'aktivieren'}`,
- moaReferenceTitle: index => `Referenz ${index}`,
- moaAddReference: 'Referenzmodell hinzufügen',
- loading: 'Modellkonfiguration wird geladen…',
- appliesDesc:
- 'Gilt für neue Sessions. Verwenden Sie die Modellauswahl im Composer, um im aktiven Chat schnell zu wechseln.',
- provider: 'Anbieter',
- model: 'Modell',
- applying: 'Wird angewendet…',
- mainAppliedTitle: 'Hauptmodell aktualisiert',
- mainAppliedMessage: model => `Neue Sitzungen verwenden ${model}.`,
- defaultsLabel: 'Voreinstellungen',
- reasoning: 'Denken',
- reasoningOff: 'Aus',
- speed: 'Geschwindigkeit',
- speedStandard: 'Standard',
- defaultsFailed: 'Voreinstellungen des Modells konnten nicht gespeichert werden',
- loadFailed: 'Modelle konnten nicht geladen werden',
- restartRequired:
- 'Dieses Backend führt nach einem Update alten Code aus. Starten Sie es neu, um den neuen Code zu laden.',
- restartBackend: 'Backend neu starten',
- restartingBackend: 'Backend wird neu gestartet…',
- restartFailed: 'Das Backend konnte nicht neu gestartet werden',
- auxiliaryTitle: 'Hilfsmodelle',
- resetAllToMain: 'Alle auf Hauptmodell zurücksetzen',
- staleAuxDismiss: 'Nicht erneut anzeigen',
- auxiliaryDesc:
- 'Hilfsaufgaben laufen standardmäßig auf dem Hauptmodell. Weise einer Aufgabe ein eigenes Modell zu, um das zu überschreiben.',
- setToMain: 'Auf Hauptmodell setzen',
- change: 'Ändern',
- autoUseMain: 'automatisch · Hauptmodell verwenden',
- inheritMainEffort: 'übernehmen · Aufwand des Hauptmodells',
- inheritsFrom: task => `erbt von ${task}`,
- followTask: task => `${task} folgen`,
- providerDefault: '(Anbietervorgabe)',
- fallbackAdd: 'Fallback hinzufügen',
- fallbackEmpty: 'Keine Fallback-Modelle — es wird das Standardmodell verwendet, außer es schlägt fehl.',
- notInCatalog:
- 'ist nicht in der Modellliste dieses Anbieters enthalten — Aufrufe können auf ein Backup ausweichen.',
- moaTitle: 'Mixture of Agents',
- moaPreset: 'Voreinstellung',
- moaDescription:
- 'Konfigurieren Sie benannte Vorlagen, die als Modelle unter dem Anbieter „Mixture of Agents“ erscheinen. Der Aggregator ist das handelnde Modell – er führt jeden Schritt der Tool-Schleife aus, und fast alle Kosten des Laufs werden seinem Anbieter berechnet. Referenzen beraten standardmäßig nur einmal pro Benutzer-Turn.',
- moaAggregator: 'Aggregator',
- moaAggregatorBilled: 'handelndes Modell · wird für den Lauf berechnet',
- moaReferenceHint: 'berät standardmäßig einmal pro Turn',
- tasks: deAuxTasks
- },
+ model: deModelSettings,
localModels: deLocalModels,
billing: {
perMonth: (amount: string) => `${amount}/Monat`,
diff --git a/apps/desktop/src/i18n/de_model_settings.ts b/apps/desktop/src/i18n/de_model_settings.ts
new file mode 100644
index 00000000000..0f634f6b8ce
--- /dev/null
+++ b/apps/desktop/src/i18n/de_model_settings.ts
@@ -0,0 +1,85 @@
+import type { TranslationOverride } from '@hermes/shared/i18n'
+
+import { deAuxTasks } from './de_aux_tasks'
+import type { ModelSettingsTranslations } from './types_model_settings'
+
+export const deModelSettings: TranslationOverride<ModelSettingsTranslations> = {
+ setupProviderFallback: 'Anbieter',
+ setUpProvider: name => `${name} einrichten`,
+ staleAuxBefore: (count, names) =>
+ `${count} Hilfsaufgabe${count === 1 ? '' : 'n'} (${names}) ${count === 1 ? 'läuft' : 'laufen'} noch auf `,
+ staleAuxAfter: ', nicht auf Ihrem Hauptmodell.',
+ staleAuxOtherProviders: 'anderen Anbietern',
+ moaEnabled: 'Aktiviert',
+ moaSetDefault: 'Als Standard festlegen',
+ moaNewPresetPlaceholder: 'neue Vorlage',
+ moaAddPreset: 'Vorlage hinzufügen',
+ customModel: 'Eigenes Modell…',
+ customModelPlaceholder: 'Modell-ID',
+ chooseFromList: 'Aus Liste wählen',
+ moaDefault: 'Standard:',
+ moaReferenceToggle: (enabled, index) => `Referenz ${index} ${enabled ? 'deaktivieren' : 'aktivieren'}`,
+ moaReferenceTitle: index => `Referenz ${index}`,
+ moaAddReference: 'Referenzmodell hinzufügen',
+ loading: 'Modellkonfiguration wird geladen…',
+ appliesDesc:
+ 'Gilt für neue Sessions. Verwenden Sie die Modellauswahl im Composer, um im aktiven Chat schnell zu wechseln.',
+ provider: 'Anbieter',
+ model: 'Modell',
+ applying: 'Wird angewendet…',
+ mainAppliedTitle: 'Hauptmodell aktualisiert',
+ mainAppliedMessage: model => `Neue Sitzungen verwenden ${model}.`,
+ defaultsLabel: 'Voreinstellungen',
+ reasoning: 'Denken',
+ reasoningOff: 'Aus',
+ speed: 'Geschwindigkeit',
+ speedStandard: 'Standard',
+ defaultsFailed: 'Voreinstellungen des Modells konnten nicht gespeichert werden',
+ loadFailed: 'Modelle konnten nicht geladen werden',
+ restartRequired:
+ 'Dieses Backend führt nach einem Update alten Code aus. Starten Sie es neu, um den neuen Code zu laden.',
+ restartBackend: 'Backend neu starten',
+ restartingBackend: 'Backend wird neu gestartet…',
+ restartFailed: 'Das Backend konnte nicht neu gestartet werden',
+ auxiliaryTitle: 'Hilfsmodelle',
+ resetAllToMain: 'Alle auf Hauptmodell zurücksetzen',
+ staleAuxDismiss: 'Nicht erneut anzeigen',
+ auxiliaryDesc:
+ 'Hilfsaufgaben laufen standardmäßig auf dem Hauptmodell. Weise einer Aufgabe ein eigenes Modell zu, um das zu überschreiben.',
+ setToMain: 'Auf Hauptmodell setzen',
+ change: 'Ändern',
+ autoUseMain: 'automatisch · Hauptmodell verwenden',
+ inheritMainEffort: 'übernehmen · Aufwand des Hauptmodells',
+ inheritsFrom: task => `erbt von ${task}`,
+ followTask: task => `${task} folgen`,
+ providerDefault: '(Anbietervorgabe)',
+ fallbackAdd: 'Fallback hinzufügen',
+ fallbackEmpty: 'Keine Fallback-Modelle — es wird das Standardmodell verwendet, außer es schlägt fehl.',
+ notInCatalog: 'ist nicht in der Modellliste dieses Anbieters enthalten — Aufrufe können auf ein Backup ausweichen.',
+ moaTitle: 'Mixture of Agents',
+ moaPreset: 'Voreinstellung',
+ moaDescription:
+ 'Konfigurieren Sie benannte Vorlagen, die als Modelle unter dem Anbieter „Mixture of Agents“ erscheinen. Der Aggregator ist das handelnde Modell – er führt jeden Schritt der Tool-Schleife aus, und fast alle Kosten des Laufs werden seinem Anbieter berechnet. Referenzen beraten standardmäßig nur einmal pro Benutzer-Turn.',
+ moaAggregator: 'Aggregator',
+ moaAggregatorBilled: 'handelndes Modell · wird für den Lauf berechnet',
+ moaReferenceHint: 'berät standardmäßig einmal pro Turn',
+ tasks: deAuxTasks,
+ subagents: {
+ inherit: 'Vom Hauptagenten übernehmen',
+ modelOnly: 'Eigenes Modell (Zugangsdaten des Hauptagenten)',
+ providerLabel: 'Subagent-Anbieter',
+ modelLabel: 'Subagent-Modell',
+ direct: 'Direkter Endpunkt',
+ customProvider: 'Eigener Anbieter...',
+ customProviderLabel: 'Eigener Subagent-Anbieter',
+ parentModel: 'Modell des Hauptagenten verwenden',
+ parentModelWarning:
+ 'Der gewählte Anbieter muss das Modell des Hauptagenten unterstützen. Eine reine Anbieter-Route kann bei inkompatiblem Modell fehlschlagen.',
+ directActive:
+ 'Ein direkter Endpunkt ist aktiv und hat Vorrang vor dem gespeicherten Anbieter. Endpunkt und Zugangsdaten bleiben erhalten, solange dieser Modus gewählt ist.',
+ directClear:
+ 'Diese Route entfernt den direkten Endpunkt und seinen gespeicherten Schlüssel. Andere Anfrage-Einstellungen bleiben erhalten.',
+ catalogFailed: 'Modellkatalog nicht verfügbar. Anbieter und Modell manuell eingeben oder erneut versuchen.',
+ draftHint: 'Änderungen bleiben lokal, bis sie übernommen werden.'
+ }
+}
diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.ts
index 42e66ac3c4a..964947b17e6 100644
--- a/apps/desktop/src/i18n/en.ts
+++ b/apps/desktop/src/i18n/en.ts
@@ -1,7 +1,6 @@
import { FIELD_DESCRIPTIONS, FIELD_LABELS } from '@/app/settings/constants'
import { enAppTour } from './en_app_tour'
-import { enAuxTasks } from './en_aux_tasks'
import { enBilling } from './en_billing'
import { enBoot } from './en_boot'
import { enCatalogInstall } from './en_catalog_install'
@@ -12,6 +11,7 @@ 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'
+import { enModelSettings } from './en_model_settings'
import { enNotices } from './en_notices'
import { enOnboarding } from './en_onboarding'
import { enProjects } from './en_projects'
@@ -1231,23 +1231,7 @@ export const en: Translations = {
voiceShortcutHintTitle: 'Voice recording shortcut',
voiceShortcutHintDesc:
'Set the voice recording shortcut in Settings → Keyboard Shortcuts ("Start / stop voice conversation"). The voice.record_key config value only applies to the CLI and TUI.',
- showOptions: 'Show options',
- delegationInherit: 'Inherit from main agent',
- delegationModelOnly: 'Custom model (use parent credentials)',
- delegationProviderSelectLabel: 'Subagent Provider',
- delegationModelSelectLabel: 'Subagent Model',
- delegationDirect: 'Direct endpoint override',
- delegationCustomProvider: 'Custom provider...',
- delegationCustomProviderLabel: 'Custom subagent provider',
- delegationParentModel: 'Use parent model',
- delegationParentModelWarning:
- 'The chosen provider must support the parent model. A provider-only route can fail if the model is incompatible.',
- delegationDirectActive:
- 'A direct endpoint is active and takes precedence over the saved provider. Its endpoint and credentials are kept while this mode is selected.',
- delegationDirectClear:
- 'Applying this route clears the direct endpoint and its stored key. Other request settings are kept.',
- delegationCatalogFailed: 'Model catalog unavailable. Enter a provider and model manually, or retry.',
- delegationDraftHint: 'Changes stay local until applied.'
+ showOptions: 'Show options'
},
hudModifier: {
title: 'Tap to summon HUD',
@@ -1604,64 +1588,7 @@ export const en: Translations = {
deepLinkErrorUrl: 'Only http:// and https:// server URLs are allowed.',
deepLinkErrorTooLarge: 'The config payload exceeds the 32KB limit.'
},
- model: {
- setupProviderFallback: 'provider',
- setUpProvider: name => `Set up ${name}`,
- staleAuxBefore: (count, names) => `${count} auxiliary task${count === 1 ? '' : 's'} (${names}) still run on `,
- staleAuxAfter: ', not your main model.',
- staleAuxOtherProviders: 'other providers',
- moaEnabled: 'Enabled',
- moaSetDefault: 'Set default',
- moaNewPresetPlaceholder: 'new preset',
- moaAddPreset: 'Add preset',
- customModel: 'Custom model…',
- customModelPlaceholder: 'Model id',
- chooseFromList: 'Choose from list',
- moaDefault: 'Default:',
- moaReferenceToggle: (enabled, index) => `${enabled ? 'Disable' : 'Enable'} reference ${index}`,
- moaReferenceTitle: index => `Reference ${index}`,
- moaAddReference: 'Add reference model',
- loading: 'Loading model configuration...',
- appliesDesc: 'Applies to new sessions. Use the model picker in the composer to hot-swap the active chat.',
- provider: 'Provider',
- model: 'Model',
- applying: 'Applying...',
- mainAppliedTitle: 'Main model updated',
- mainAppliedMessage: model => `New sessions will use ${model}.`,
- defaultsLabel: 'Defaults',
- reasoning: 'Reasoning',
- reasoningOff: 'Off',
- speed: 'Speed',
- speedStandard: 'Standard',
- defaultsFailed: 'Failed to save model defaults',
- loadFailed: 'Could not load models',
- restartRequired: 'This backend is running old code after an update. Restart it to load the new code.',
- restartBackend: 'Restart backend',
- restartingBackend: 'Restarting backend...',
- restartFailed: 'Could not restart the backend',
- auxiliaryTitle: 'Auxiliary models',
- resetAllToMain: 'Reset all to main',
- staleAuxDismiss: "Don't show again",
- auxiliaryDesc: 'Helper tasks run on the main model by default. Assign a dedicated model to any task to override.',
- setToMain: 'Set to main',
- change: 'Change',
- autoUseMain: 'auto · use main model',
- inheritMainEffort: 'inherit · main model effort',
- inheritsFrom: task => `inherits ${task}`,
- followTask: task => `Follow ${task}`,
- providerDefault: '(provider default)',
- fallbackAdd: 'Add fallback',
- fallbackEmpty: 'No fallback models — the default model is used unless it fails.',
- notInCatalog: "isn't in this provider's model list — calls may fall back to a backup.",
- moaTitle: 'Mixture of Agents',
- moaPreset: 'Preset',
- moaDescription:
- 'Configure named presets that appear as models under the Mixture of Agents provider. The aggregator is the acting model — it runs every step of the tool loop, and almost all of the run’s cost is billed to its provider. References only advise once per user turn by default.',
- moaAggregator: 'Aggregator',
- moaAggregatorBilled: 'acting model · billed for the run',
- moaReferenceHint: 'advises once per turn by default',
- tasks: enAuxTasks
- },
+ model: enModelSettings,
localModels: enLocalModels,
billing: {
perMonth: amount => `${amount}/mo`,
@@ -3543,7 +3470,8 @@ export const en: Translations = {
restoreImageDraft: 'Restore image draft',
queueCancelFailed: "Couldn't remove the queued turn",
queueLostDiscard: 'Discard',
- queueLostDiscardTip: 'The gateway restarted mid-turn and cannot finish this one. Discard it so the queued turns behind it run.',
+ queueLostDiscardTip:
+ 'The gateway restarted mid-turn and cannot finish this one. Discard it so the queued turns behind it run.',
queueResume: 'Resume',
queueResumeTip: 'Paused by Stop — resume sending the queued turns',
queueStuckTitle: 'Queued message not sent',
@@ -4701,7 +4629,14 @@ export const en: Translations = {
title: 'Hermes got stuck in a loop',
body: 'The reply kept repeating the same steps, so Hermes stopped it. Retry, or start a new chat if it happens again.'
},
- SESSION_OWNER_BUSY: { title: 'Hermes is busy in this chat', body: 'Another turn is running here and your message could not join its queue. Nothing was sent. Retry once that turn ends.' }, SESSION_OWNER_UNCONFIRMED: { title: 'Your message may already be queued', body: 'The gateway did not confirm your message in time. If it was queued, it runs once the earlier turn finishes or is resolved. Check the chat before sending it again.' },
+ SESSION_OWNER_BUSY: {
+ title: 'Hermes is busy in this chat',
+ body: 'Another turn is running here and your message could not join its queue. Nothing was sent. Retry once that turn ends.'
+ },
+ SESSION_OWNER_UNCONFIRMED: {
+ title: 'Your message may already be queued',
+ body: 'The gateway did not confirm your message in time. If it was queued, it runs once the earlier turn finishes or is resolved. Check the chat before sending it again.'
+ },
SESSION_NOT_OWNED: {
title: 'This chat is open somewhere else',
body: 'This chat is currently open in another Hermes window or terminal. Close it there and send your message again, or start a new chat here.'
diff --git a/apps/desktop/src/i18n/en_model_settings.ts b/apps/desktop/src/i18n/en_model_settings.ts
new file mode 100644
index 00000000000..97f3d4dcfc4
--- /dev/null
+++ b/apps/desktop/src/i18n/en_model_settings.ts
@@ -0,0 +1,78 @@
+import { enAuxTasks } from './en_aux_tasks'
+import type { ModelSettingsTranslations } from './types_model_settings'
+
+export const enModelSettings: ModelSettingsTranslations = {
+ setupProviderFallback: 'provider',
+ setUpProvider: name => `Set up ${name}`,
+ staleAuxBefore: (count, names) => `${count} auxiliary task${count === 1 ? '' : 's'} (${names}) still run on `,
+ staleAuxAfter: ', not your main model.',
+ staleAuxOtherProviders: 'other providers',
+ moaEnabled: 'Enabled',
+ moaSetDefault: 'Set default',
+ moaNewPresetPlaceholder: 'new preset',
+ moaAddPreset: 'Add preset',
+ customModel: 'Custom model…',
+ customModelPlaceholder: 'Model id',
+ chooseFromList: 'Choose from list',
+ moaDefault: 'Default:',
+ moaReferenceToggle: (enabled, index) => `${enabled ? 'Disable' : 'Enable'} reference ${index}`,
+ moaReferenceTitle: index => `Reference ${index}`,
+ moaAddReference: 'Add reference model',
+ loading: 'Loading model configuration...',
+ appliesDesc: 'Applies to new sessions. Use the model picker in the composer to hot-swap the active chat.',
+ provider: 'Provider',
+ model: 'Model',
+ applying: 'Applying...',
+ mainAppliedTitle: 'Main model updated',
+ mainAppliedMessage: model => `New sessions will use ${model}.`,
+ defaultsLabel: 'Defaults',
+ reasoning: 'Reasoning',
+ reasoningOff: 'Off',
+ speed: 'Speed',
+ speedStandard: 'Standard',
+ defaultsFailed: 'Failed to save model defaults',
+ loadFailed: 'Could not load models',
+ restartRequired: 'This backend is running old code after an update. Restart it to load the new code.',
+ restartBackend: 'Restart backend',
+ restartingBackend: 'Restarting backend...',
+ restartFailed: 'Could not restart the backend',
+ auxiliaryTitle: 'Auxiliary models',
+ resetAllToMain: 'Reset all to main',
+ staleAuxDismiss: "Don't show again",
+ auxiliaryDesc: 'Helper tasks run on the main model by default. Assign a dedicated model to any task to override.',
+ setToMain: 'Set to main',
+ change: 'Change',
+ autoUseMain: 'auto · use main model',
+ inheritMainEffort: 'inherit · main model effort',
+ inheritsFrom: task => `inherits ${task}`,
+ followTask: task => `Follow ${task}`,
+ providerDefault: '(provider default)',
+ fallbackAdd: 'Add fallback',
+ fallbackEmpty: 'No fallback models — the default model is used unless it fails.',
+ notInCatalog: "isn't in this provider's model list — calls may fall back to a backup.",
+ moaTitle: 'Mixture of Agents',
+ moaPreset: 'Preset',
+ moaDescription:
+ 'Configure named presets that appear as models under the Mixture of Agents provider. The aggregator is the acting model — it runs every step of the tool loop, and almost all of the run’s cost is billed to its provider. References only advise once per user turn by default.',
+ moaAggregator: 'Aggregator',
+ moaAggregatorBilled: 'acting model · billed for the run',
+ moaReferenceHint: 'advises once per turn by default',
+ tasks: enAuxTasks,
+ subagents: {
+ inherit: 'Inherit from main agent',
+ modelOnly: 'Custom model (use parent credentials)',
+ providerLabel: 'Subagent Provider',
+ modelLabel: 'Subagent Model',
+ direct: 'Direct endpoint override',
+ customProvider: 'Custom provider...',
+ customProviderLabel: 'Custom subagent provider',
+ parentModel: 'Use parent model',
+ parentModelWarning:
+ 'The chosen provider must support the parent model. A provider-only route can fail if the model is incompatible.',
+ directActive:
+ 'A direct endpoint is active and takes precedence over the saved provider. Its endpoint and credentials are kept while this mode is selected.',
+ directClear: 'Applying this route clears the direct endpoint and its stored key. Other request settings are kept.',
+ catalogFailed: 'Model catalog unavailable. Enter a provider and model manually, or retry.',
+ draftHint: 'Changes stay local until applied.'
+ }
+}
diff --git a/apps/desktop/src/i18n/es.ts b/apps/desktop/src/i18n/es.ts
index 5e42a54f45e..ee9e8b61d5e 100644
--- a/apps/desktop/src/i18n/es.ts
+++ b/apps/desktop/src/i18n/es.ts
@@ -1,7 +1,6 @@
import { defineFieldCopy } from '@/app/settings/field-copy'
import { defineLocale, type TranslationOverrides } from './define-locale'
-import { esAuxTasks } from './es_aux_tasks'
import { esBoot } from './es_boot'
import { esClarify } from './es_clarify'
import { esConnectorAccounts } from './es_connector_accounts'
@@ -9,6 +8,7 @@ import { esConnectorCard } from './es_connector_card'
import { esFirstRun } from './es_first_run'
import { esLocalModels } from './es_local_models'
import { esModelMenu } from './es_model_menu'
+import { esModelSettings } from './es_model_settings'
import { esNotices } from './es_notices'
import { esOnboarding } from './es_onboarding'
import { esProjects } from './es_projects'
@@ -1936,70 +1936,7 @@ export const esOverrides = {
deepLinkErrorUrl: 'Solo se permiten URL de servidor http:// y https://.',
deepLinkErrorTooLarge: 'La configuración supera el límite de 32 KB.'
},
- model: {
- setupProviderFallback: 'proveedor',
- setUpProvider: name => `Configurar ${name}`,
- staleAuxBefore: (count, names) =>
- count === 1
- ? `${count} tarea auxiliar (${names}) todavía se ejecuta en `
- : `${count} tareas auxiliares (${names}) todavía se ejecutan en `,
- staleAuxAfter: ', no en tu modelo principal.',
- staleAuxOtherProviders: 'otros proveedores',
- moaEnabled: 'Activado',
- moaSetDefault: 'Establecer como predeterminado',
- moaNewPresetPlaceholder: 'nuevo preajuste',
- moaAddPreset: 'Añadir preajuste',
- customModel: 'Modelo personalizado…',
- customModelPlaceholder: 'ID del modelo',
- chooseFromList: 'Elegir de la lista',
- moaDefault: 'Predeterminado:',
- moaReferenceToggle: (enabled, index) => `${enabled ? 'Desactivar' : 'Activar'} la referencia ${index}`,
- moaReferenceTitle: index => `Referencia ${index}`,
- moaAddReference: 'Añadir modelo de referencia',
- loading: 'Cargando configuración de modelo...',
- appliesDesc:
- 'Se aplica a sesiones nuevas. Usa el selector de modelo en el compositor para cambiar el chat activo.',
- provider: 'Proveedor',
- model: 'Modelo',
- applying: 'Aplicando...',
- mainAppliedTitle: 'Modelo principal actualizado',
- mainAppliedMessage: model => `Las sesiones nuevas usarán ${model}.`,
- defaultsLabel: 'Valores predeterminados',
- reasoning: 'Razonamiento',
- reasoningOff: 'Desactivado',
- speed: 'Velocidad',
- speedStandard: 'Estándar',
- defaultsFailed: 'No se pudieron guardar los valores predeterminados del modelo',
- loadFailed: 'No se pudieron cargar los modelos',
- restartRequired:
- 'Este backend ejecuta código antiguo tras una actualización. Reinícialo para cargar el código nuevo.',
- restartBackend: 'Reiniciar backend',
- restartingBackend: 'Reiniciando backend...',
- restartFailed: 'No se pudo reiniciar el backend',
- auxiliaryTitle: 'Modelos auxiliares',
- resetAllToMain: 'Restablecer todos al principal',
- staleAuxDismiss: 'No volver a mostrar',
- auxiliaryDesc:
- 'Las tareas auxiliares usan el modelo principal de forma predeterminada. Asigna un modelo dedicado a cualquier tarea para anularlo.',
- setToMain: 'Usar principal',
- change: 'Cambiar',
- autoUseMain: 'auto · usar modelo principal',
- inheritMainEffort: 'heredar · esfuerzo del modelo principal',
- inheritsFrom: task => `hereda de ${task}`,
- followTask: task => `Seguir ${task}`,
- providerDefault: '(predeterminado del proveedor)',
- fallbackAdd: 'Añadir respaldo',
- fallbackEmpty: 'No hay modelos de respaldo; se usa el modelo predeterminado salvo que falle.',
- notInCatalog: 'no está en la lista de modelos de este proveedor; las llamadas pueden recurrir a un respaldo.',
- moaTitle: 'Mixture of Agents',
- moaPreset: 'Preajuste',
- moaDescription:
- 'Configura preajustes con nombre que aparecen como modelos del proveedor Mixture of Agents. El agregador es el modelo que actúa: ejecuta cada paso del bucle de herramientas, y casi todo el coste de la ejecución se factura a su proveedor. Por defecto, las referencias solo asesoran una vez por turno del usuario.',
- moaAggregator: 'Agregador',
- moaAggregatorBilled: 'modelo que actúa · se factura por la ejecución',
- moaReferenceHint: 'asesora una vez por turno por defecto',
- tasks: esAuxTasks
- },
+ model: esModelSettings,
localModels: esLocalModels,
billing: {
perMonth: (amount: string) => `${amount}/mes`,
diff --git a/apps/desktop/src/i18n/es_model_settings.ts b/apps/desktop/src/i18n/es_model_settings.ts
new file mode 100644
index 00000000000..31fca4dcf5f
--- /dev/null
+++ b/apps/desktop/src/i18n/es_model_settings.ts
@@ -0,0 +1,86 @@
+import type { TranslationOverride } from '@hermes/shared/i18n'
+
+import { esAuxTasks } from './es_aux_tasks'
+import type { ModelSettingsTranslations } from './types_model_settings'
+
+export const esModelSettings: TranslationOverride<ModelSettingsTranslations> = {
+ setupProviderFallback: 'proveedor',
+ setUpProvider: name => `Configurar ${name}`,
+ staleAuxBefore: (count, names) =>
+ count === 1
+ ? `${count} tarea auxiliar (${names}) todavía se ejecuta en `
+ : `${count} tareas auxiliares (${names}) todavía se ejecutan en `,
+ staleAuxAfter: ', no en tu modelo principal.',
+ staleAuxOtherProviders: 'otros proveedores',
+ moaEnabled: 'Activado',
+ moaSetDefault: 'Establecer como predeterminado',
+ moaNewPresetPlaceholder: 'nuevo preajuste',
+ moaAddPreset: 'Añadir preajuste',
+ customModel: 'Modelo personalizado…',
+ customModelPlaceholder: 'ID del modelo',
+ chooseFromList: 'Elegir de la lista',
+ moaDefault: 'Predeterminado:',
+ moaReferenceToggle: (enabled, index) => `${enabled ? 'Desactivar' : 'Activar'} la referencia ${index}`,
+ moaReferenceTitle: index => `Referencia ${index}`,
+ moaAddReference: 'Añadir modelo de referencia',
+ loading: 'Cargando configuración de modelo...',
+ appliesDesc: 'Se aplica a sesiones nuevas. Usa el selector de modelo en el compositor para cambiar el chat activo.',
+ provider: 'Proveedor',
+ model: 'Modelo',
+ applying: 'Aplicando...',
+ mainAppliedTitle: 'Modelo principal actualizado',
+ mainAppliedMessage: model => `Las sesiones nuevas usarán ${model}.`,
+ defaultsLabel: 'Valores predeterminados',
+ reasoning: 'Razonamiento',
+ reasoningOff: 'Desactivado',
+ speed: 'Velocidad',
+ speedStandard: 'Estándar',
+ defaultsFailed: 'No se pudieron guardar los valores predeterminados del modelo',
+ loadFailed: 'No se pudieron cargar los modelos',
+ restartRequired:
+ 'Este backend ejecuta código antiguo tras una actualización. Reinícialo para cargar el código nuevo.',
+ restartBackend: 'Reiniciar backend',
+ restartingBackend: 'Reiniciando backend...',
+ restartFailed: 'No se pudo reiniciar el backend',
+ auxiliaryTitle: 'Modelos auxiliares',
+ resetAllToMain: 'Restablecer todos al principal',
+ staleAuxDismiss: 'No volver a mostrar',
+ auxiliaryDesc:
+ 'Las tareas auxiliares usan el modelo principal de forma predeterminada. Asigna un modelo dedicado a cualquier tarea para anularlo.',
+ setToMain: 'Usar principal',
+ change: 'Cambiar',
+ autoUseMain: 'auto · usar modelo principal',
+ inheritMainEffort: 'heredar · esfuerzo del modelo principal',
+ inheritsFrom: task => `hereda de ${task}`,
+ followTask: task => `Seguir ${task}`,
+ providerDefault: '(predeterminado del proveedor)',
+ fallbackAdd: 'Añadir respaldo',
+ fallbackEmpty: 'No hay modelos de respaldo; se usa el modelo predeterminado salvo que falle.',
+ notInCatalog: 'no está en la lista de modelos de este proveedor; las llamadas pueden recurrir a un respaldo.',
+ moaTitle: 'Mixture of Agents',
+ moaPreset: 'Preajuste',
+ moaDescription:
+ 'Configura preajustes con nombre que aparecen como modelos del proveedor Mixture of Agents. El agregador es el modelo que actúa: ejecuta cada paso del bucle de herramientas, y casi todo el coste de la ejecución se factura a su proveedor. Por defecto, las referencias solo asesoran una vez por turno del usuario.',
+ moaAggregator: 'Agregador',
+ moaAggregatorBilled: 'modelo que actúa · se factura por la ejecución',
+ moaReferenceHint: 'asesora una vez por turno por defecto',
+ tasks: esAuxTasks,
+ subagents: {
+ inherit: 'Heredar del agente principal',
+ modelOnly: 'Modelo personalizado (credenciales del agente principal)',
+ providerLabel: 'Proveedor de subagentes',
+ modelLabel: 'Modelo de subagentes',
+ direct: 'Endpoint directo',
+ customProvider: 'Proveedor personalizado...',
+ customProviderLabel: 'Proveedor personalizado de subagentes',
+ parentModel: 'Usar el modelo del agente principal',
+ parentModelWarning:
+ 'El proveedor elegido debe admitir el modelo del agente principal. Una ruta solo de proveedor puede fallar si el modelo no es compatible.',
+ directActive:
+ 'Hay un endpoint directo activo que tiene prioridad sobre el proveedor guardado. Su endpoint y credenciales se conservan mientras este modo esté seleccionado.',
+ directClear:
+ 'Aplicar esta ruta borra el endpoint directo y su clave guardada. El resto de ajustes de solicitud se conserva.',
+ catalogFailed: 'Catálogo de modelos no disponible. Introduce un proveedor y un modelo manualmente, o reintenta.',
+ draftHint: 'Los cambios se quedan en local hasta que los apliques.'
+ }
+}
diff --git a/apps/desktop/src/i18n/fr.ts b/apps/desktop/src/i18n/fr.ts
index d8d9eed1d52..2dbd8993ce9 100644
--- a/apps/desktop/src/i18n/fr.ts
+++ b/apps/desktop/src/i18n/fr.ts
@@ -1,7 +1,6 @@
import { defineFieldCopy } from '@/app/settings/field-copy'
import { defineLocale, type TranslationOverrides } from './define-locale'
-import { frAuxTasks } from './fr_aux_tasks'
import { frBoot } from './fr_boot'
import { frClarify } from './fr_clarify'
import { frConnectorAccounts } from './fr_connector_accounts'
@@ -9,6 +8,7 @@ import { frConnectorCard } from './fr_connector_card'
import { frFirstRun } from './fr_first_run'
import { frLocalModels } from './fr_local_models'
import { frModelMenu } from './fr_model_menu'
+import { frModelSettings } from './fr_model_settings'
import { frNotices } from './fr_notices'
import { frOnboarding } from './fr_onboarding'
import { frProjects } from './fr_projects'
@@ -1946,71 +1946,7 @@ export const frOverrides = {
deepLinkErrorUrl: 'Seules les URL de serveur http:// et https:// sont autorisées.',
deepLinkErrorTooLarge: 'La configuration dépasse la limite de 32 Ko.'
},
- model: {
- setupProviderFallback: 'fournisseur',
- setUpProvider: name => `Configurer ${name}`,
- staleAuxBefore: (count, names) =>
- count > 1
- ? `${count} tâches auxiliaires (${names}) s'exécutent encore sur `
- : `${count} tâche auxiliaire (${names}) s'exécute encore sur `,
- staleAuxAfter: ', et non sur votre modèle principal.',
- staleAuxOtherProviders: "d'autres fournisseurs",
- moaEnabled: 'Activé',
- moaSetDefault: 'Définir par défaut',
- moaNewPresetPlaceholder: 'nouveau préréglage',
- moaAddPreset: 'Ajouter un préréglage',
- customModel: 'Modèle personnalisé…',
- customModelPlaceholder: 'ID du modèle',
- chooseFromList: 'Choisir dans la liste',
- moaDefault: 'Par défaut :',
- moaReferenceToggle: (enabled, index) => `${enabled ? 'Désactiver' : 'Activer'} la référence ${index}`,
- moaReferenceTitle: index => `Référence ${index}`,
- moaAddReference: 'Ajouter un modèle de référence',
- loading: 'Chargement de la configuration du modèle...',
- appliesDesc:
- "S'applique aux nouvelles sessions. Utilisez le sélecteur de modèle dans le compositeur pour changer à chaud la conversation active.",
- provider: 'Fournisseur',
- model: 'Modèle',
- applying: 'Application...',
- mainAppliedTitle: 'Modèle principal mis à jour',
- mainAppliedMessage: model => `Les nouvelles sessions utiliseront ${model}.`,
- defaultsLabel: 'Par défaut',
- reasoning: 'Raisonnement',
- reasoningOff: 'Désactivé',
- speed: 'Vitesse',
- speedStandard: 'Standard',
- defaultsFailed: "Échec de l'enregistrement des modèles par défaut",
- loadFailed: 'Impossible de charger les modèles',
- restartRequired:
- "Ce backend exécute encore l'ancien code après une mise à jour. Redémarrez-le pour charger le nouveau code.",
- restartBackend: 'Redémarrer le backend',
- restartingBackend: 'Redémarrage du backend...',
- restartFailed: 'Impossible de redémarrer le backend',
- auxiliaryTitle: 'Modèles auxiliaires',
- resetAllToMain: 'Tout réinitialiser au principal',
- staleAuxDismiss: 'Ne plus afficher',
- auxiliaryDesc:
- "Les tâches d'assistance s'exécutent sur le modèle principal par défaut. Attribuez un modèle dédié à toute tâche pour remplacer.",
- setToMain: 'Définir comme principal',
- change: 'Modifier',
- autoUseMain: 'auto · utiliser le modèle principal',
- inheritMainEffort: 'hériter · effort du modèle principal',
- inheritsFrom: task => `hérite de ${task}`,
- followTask: task => `Suivre ${task}`,
- providerDefault: '(par défaut du fournisseur)',
- fallbackAdd: 'Ajouter un secours',
- fallbackEmpty: "Aucun modèle de secours — le modèle par défaut est utilisé sauf en cas d'échec.",
- notInCatalog:
- "n'est pas dans la liste des modèles de ce fournisseur — les appels peuvent basculer sur un secours.",
- moaTitle: "Mélange d'agents",
- moaPreset: 'Préréglage',
- moaDescription:
- "Configurez des préréglages nommés qui apparaissent comme modèles chez le fournisseur Mélange d'agents. L'agrégateur est le modèle actif : il exécute chaque étape de la boucle d'outils et son fournisseur facture presque tout le coût de l'exécution. Par défaut, les modèles de référence ne donnent qu'un avis par tour utilisateur.",
- moaAggregator: 'Agrégateur',
- moaAggregatorBilled: "modèle actif · facturé pour l'exécution",
- moaReferenceHint: 'donne un avis une fois par tour par défaut',
- tasks: frAuxTasks
- },
+ model: frModelSettings,
localModels: frLocalModels,
billing: {
perMonth: (amount: string) => `${amount}/mois`,
diff --git a/apps/desktop/src/i18n/fr_model_settings.ts b/apps/desktop/src/i18n/fr_model_settings.ts
new file mode 100644
index 00000000000..2d3a943d694
--- /dev/null
+++ b/apps/desktop/src/i18n/fr_model_settings.ts
@@ -0,0 +1,88 @@
+import type { TranslationOverride } from '@hermes/shared/i18n'
+
+import { frAuxTasks } from './fr_aux_tasks'
+import type { ModelSettingsTranslations } from './types_model_settings'
+
+export const frModelSettings: TranslationOverride<ModelSettingsTranslations> = {
+ setupProviderFallback: 'fournisseur',
+ setUpProvider: name => `Configurer ${name}`,
+ staleAuxBefore: (count, names) =>
+ count > 1
+ ? `${count} tâches auxiliaires (${names}) s'exécutent encore sur `
+ : `${count} tâche auxiliaire (${names}) s'exécute encore sur `,
+ staleAuxAfter: ', et non sur votre modèle principal.',
+ staleAuxOtherProviders: "d'autres fournisseurs",
+ moaEnabled: 'Activé',
+ moaSetDefault: 'Définir par défaut',
+ moaNewPresetPlaceholder: 'nouveau préréglage',
+ moaAddPreset: 'Ajouter un préréglage',
+ customModel: 'Modèle personnalisé…',
+ customModelPlaceholder: 'ID du modèle',
+ chooseFromList: 'Choisir dans la liste',
+ moaDefault: 'Par défaut :',
+ moaReferenceToggle: (enabled, index) => `${enabled ? 'Désactiver' : 'Activer'} la référence ${index}`,
+ moaReferenceTitle: index => `Référence ${index}`,
+ moaAddReference: 'Ajouter un modèle de référence',
+ loading: 'Chargement de la configuration du modèle...',
+ appliesDesc:
+ "S'applique aux nouvelles sessions. Utilisez le sélecteur de modèle dans le compositeur pour changer à chaud la conversation active.",
+ provider: 'Fournisseur',
+ model: 'Modèle',
+ applying: 'Application...',
+ mainAppliedTitle: 'Modèle principal mis à jour',
+ mainAppliedMessage: model => `Les nouvelles sessions utiliseront ${model}.`,
+ defaultsLabel: 'Par défaut',
+ reasoning: 'Raisonnement',
+ reasoningOff: 'Désactivé',
+ speed: 'Vitesse',
+ speedStandard: 'Standard',
+ defaultsFailed: "Échec de l'enregistrement des modèles par défaut",
+ loadFailed: 'Impossible de charger les modèles',
+ restartRequired:
+ "Ce backend exécute encore l'ancien code après une mise à jour. Redémarrez-le pour charger le nouveau code.",
+ restartBackend: 'Redémarrer le backend',
+ restartingBackend: 'Redémarrage du backend...',
+ restartFailed: 'Impossible de redémarrer le backend',
+ auxiliaryTitle: 'Modèles auxiliaires',
+ resetAllToMain: 'Tout réinitialiser au principal',
+ staleAuxDismiss: 'Ne plus afficher',
+ auxiliaryDesc:
+ "Les tâches d'assistance s'exécutent sur le modèle principal par défaut. Attribuez un modèle dédié à toute tâche pour remplacer.",
+ setToMain: 'Définir comme principal',
+ change: 'Modifier',
+ autoUseMain: 'auto · utiliser le modèle principal',
+ inheritMainEffort: 'hériter · effort du modèle principal',
+ inheritsFrom: task => `hérite de ${task}`,
+ followTask: task => `Suivre ${task}`,
+ providerDefault: '(par défaut du fournisseur)',
+ fallbackAdd: 'Ajouter un secours',
+ fallbackEmpty: "Aucun modèle de secours — le modèle par défaut est utilisé sauf en cas d'échec.",
+ notInCatalog: "n'est pas dans la liste des modèles de ce fournisseur — les appels peuvent basculer sur un secours.",
+ moaTitle: "Mélange d'agents",
+ moaPreset: 'Préréglage',
+ moaDescription:
+ "Configurez des préréglages nommés qui apparaissent comme modèles chez le fournisseur Mélange d'agents. L'agrégateur est le modèle actif : il exécute chaque étape de la boucle d'outils et son fournisseur facture presque tout le coût de l'exécution. Par défaut, les modèles de référence ne donnent qu'un avis par tour utilisateur.",
+ moaAggregator: 'Agrégateur',
+ moaAggregatorBilled: "modèle actif · facturé pour l'exécution",
+ moaReferenceHint: 'donne un avis une fois par tour par défaut',
+ tasks: frAuxTasks,
+ subagents: {
+ inherit: "Hériter de l'agent principal",
+ modelOnly: "Modèle personnalisé (identifiants de l'agent principal)",
+ providerLabel: 'Fournisseur des sous-agents',
+ modelLabel: 'Modèle des sous-agents',
+ direct: 'Point de terminaison direct',
+ customProvider: 'Fournisseur personnalisé...',
+ customProviderLabel: 'Fournisseur personnalisé des sous-agents',
+ parentModel: "Utiliser le modèle de l'agent principal",
+ parentModelWarning:
+ "Le fournisseur choisi doit prendre en charge le modèle de l'agent principal. Une route limitée au fournisseur peut échouer si le modèle est incompatible.",
+ directActive:
+ 'Un point de terminaison direct est actif et prime sur le fournisseur enregistré. Son adresse et ses identifiants sont conservés tant que ce mode est sélectionné.',
+ directClear:
+ 'Appliquer cette route efface le point de terminaison direct et sa clé enregistrée. Les autres réglages de requête sont conservés.',
+ catalogFailed:
+ 'Catalogue de modèles indisponible. Saisissez un fournisseur et un modèle manuellement, ou réessayez.',
+ draftHint: "Les modifications restent locales jusqu'à leur application."
+ }
+}
diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.ts
index 26ea8e8a84f..c68b6590abc 100644
--- a/apps/desktop/src/i18n/ja.ts
+++ b/apps/desktop/src/i18n/ja.ts
@@ -2,13 +2,13 @@ import { defineFieldCopy } from '@/app/settings/field-copy'
import { defineLocale, type TranslationOverrides } from './define-locale'
import { introJa } from './intro-ja'
-import { jaAuxTasks } from './ja_aux_tasks'
import { jaBoot } from './ja_boot'
import { jaClarify } from './ja_clarify'
import { jaConnectors } from './ja_connectors'
import { jaFirstRun } from './ja_first_run'
import { jaLocalModels } from './ja_local_models'
import { jaModelMenu } from './ja_model_menu'
+import { jaModelSettings } from './ja_model_settings'
import { jaNotices } from './ja_notices'
import { jaOnboarding } from './ja_onboarding'
import { jaPluginSettings } from './ja_plugins'
@@ -1172,56 +1172,7 @@ export const jaOverrides = {
deepLinkErrorUrl: 'サーバー URL は http:// と https:// のみ許可されます。',
deepLinkErrorTooLarge: '設定ペイロードが 32KB の上限を超えています。'
},
- model: {
- moaTitle: 'エージェント混合(Mixture of Agents)',
- moaPreset: 'プリセット',
- moaDescription:
- '「Mixture of Agents」プロバイダーのモデルとして表示される名前付きプリセットを設定します。集約モデルが実行を担当し、ツールループのすべての処理を行うため、実行費用のほぼ全額がそのプロバイダーに請求されます。参照モデルは既定でユーザーの各ターンに一度だけ助言します。',
- moaAggregator: '集約モデル',
- moaAggregatorBilled: '実行モデル · 実行費用の請求先',
- moaReferenceHint: '既定では各ターンに一度だけ助言',
- setupProviderFallback: 'プロバイダー',
- setUpProvider: name => `${name} を設定`,
- staleAuxBefore: (count, names) => `${count} 件の補助タスク(${names})は引き続き `,
- staleAuxAfter: ' で実行され、メインモデルは使用されません。',
- staleAuxOtherProviders: '別のプロバイダー',
- moaEnabled: '有効',
- moaSetDefault: 'デフォルトに設定',
- moaNewPresetPlaceholder: '新しいプリセット',
- moaAddPreset: 'プリセットを追加',
- customModel: 'カスタムモデル…',
- customModelPlaceholder: 'モデル ID',
- chooseFromList: 'リストから選択',
- moaDefault: 'デフォルト:',
- moaReferenceToggle: (enabled, index) => `参照 ${index} を${enabled ? '無効化' : '有効化'}`,
- moaReferenceTitle: index => `参照 ${index}`,
- moaAddReference: '参照モデルを追加',
- loading: 'モデル設定を読み込み中...',
- appliesDesc:
- '新しいセッションに適用されます。コンポーザーのモデルピッカーを使ってアクティブなチャットをホットスワップできます。',
- provider: 'プロバイダー',
- model: 'モデル',
- applying: '適用中...',
- loadFailed: 'モデルを読み込めませんでした',
- restartRequired:
- 'アップデート後、このバックエンドは古いコードのままです。再起動して新しいコードを読み込んでください。',
- restartBackend: 'バックエンドを再起動',
- restartingBackend: 'バックエンドを再起動中...',
- restartFailed: 'バックエンドを再起動できませんでした',
- auxiliaryTitle: '補助モデル',
- resetAllToMain: 'すべてメインにリセット',
- staleAuxDismiss: '今後表示しない',
- auxiliaryDesc:
- 'ヘルパータスクはデフォルトでメインモデルで実行されます。タスクに専用モデルを割り当てることでオーバーライドできます。',
- setToMain: 'メインに設定',
- change: '変更',
- autoUseMain: '自動 · メインモデルを使用',
- inheritMainEffort: '継承 · メインモデルの推論強度',
- inheritsFrom: task => `${task} を継承`,
- followTask: task => `${task} に従う`,
- providerDefault: '(プロバイダーのデフォルト)',
- tasks: jaAuxTasks
- },
+ model: jaModelSettings,
localModels: jaLocalModels,
providers: {
connectAccount: 'アカウントを接続',
diff --git a/apps/desktop/src/i18n/ja_model_settings.ts b/apps/desktop/src/i18n/ja_model_settings.ts
new file mode 100644
index 00000000000..14b3c18fdb8
--- /dev/null
+++ b/apps/desktop/src/i18n/ja_model_settings.ts
@@ -0,0 +1,73 @@
+import type { TranslationOverride } from '@hermes/shared/i18n'
+
+import { jaAuxTasks } from './ja_aux_tasks'
+import type { ModelSettingsTranslations } from './types_model_settings'
+
+export const jaModelSettings: TranslationOverride<ModelSettingsTranslations> = {
+ moaTitle: 'エージェント混合(Mixture of Agents)',
+ moaPreset: 'プリセット',
+ moaDescription:
+ '「Mixture of Agents」プロバイダーのモデルとして表示される名前付きプリセットを設定します。集約モデルが実行を担当し、ツールループのすべての処理を行うため、実行費用のほぼ全額がそのプロバイダーに請求されます。参照モデルは既定でユーザーの各ターンに一度だけ助言します。',
+ moaAggregator: '集約モデル',
+ moaAggregatorBilled: '実行モデル · 実行費用の請求先',
+ moaReferenceHint: '既定では各ターンに一度だけ助言',
+ setupProviderFallback: 'プロバイダー',
+ setUpProvider: name => `${name} を設定`,
+ staleAuxBefore: (count, names) => `${count} 件の補助タスク(${names})は引き続き `,
+ staleAuxAfter: ' で実行され、メインモデルは使用されません。',
+ staleAuxOtherProviders: '別のプロバイダー',
+ moaEnabled: '有効',
+ moaSetDefault: 'デフォルトに設定',
+ moaNewPresetPlaceholder: '新しいプリセット',
+ moaAddPreset: 'プリセットを追加',
+ customModel: 'カスタムモデル…',
+ customModelPlaceholder: 'モデル ID',
+ chooseFromList: 'リストから選択',
+ moaDefault: 'デフォルト:',
+ moaReferenceToggle: (enabled, index) => `参照 ${index} を${enabled ? '無効化' : '有効化'}`,
+ moaReferenceTitle: index => `参照 ${index}`,
+ moaAddReference: '参照モデルを追加',
+ loading: 'モデル設定を読み込み中...',
+ appliesDesc:
+ '新しいセッションに適用されます。コンポーザーのモデルピッカーを使ってアクティブなチャットをホットスワップできます。',
+ provider: 'プロバイダー',
+ model: 'モデル',
+ applying: '適用中...',
+ loadFailed: 'モデルを読み込めませんでした',
+ restartRequired:
+ 'アップデート後、このバックエンドは古いコードのままです。再起動して新しいコードを読み込んでください。',
+ restartBackend: 'バックエンドを再起動',
+ restartingBackend: 'バックエンドを再起動中...',
+ restartFailed: 'バックエンドを再起動できませんでした',
+ auxiliaryTitle: '補助モデル',
+ resetAllToMain: 'すべてメインにリセット',
+ staleAuxDismiss: '今後表示しない',
+ auxiliaryDesc:
+ 'ヘルパータスクはデフォルトでメインモデルで実行されます。タスクに専用モデルを割り当てることでオーバーライドできます。',
+ setToMain: 'メインに設定',
+ change: '変更',
+ autoUseMain: '自動 · メインモデルを使用',
+ inheritMainEffort: '継承 · メインモデルの推論強度',
+ inheritsFrom: task => `${task} を継承`,
+ followTask: task => `${task} に従う`,
+ providerDefault: '(プロバイダーのデフォルト)',
+ tasks: jaAuxTasks,
+ subagents: {
+ inherit: 'メインエージェントから継承',
+ modelOnly: 'カスタムモデル(メインエージェントの認証情報を使用)',
+ providerLabel: 'サブエージェントのプロバイダー',
+ modelLabel: 'サブエージェントのモデル',
+ direct: '直接エンドポイント',
+ customProvider: 'カスタムプロバイダー...',
+ customProviderLabel: 'サブエージェントのカスタムプロバイダー',
+ parentModel: 'メインエージェントのモデルを使用',
+ parentModelWarning:
+ '選択したプロバイダーがメインエージェントのモデルに対応している必要があります。モデルが対応していないと、プロバイダーのみのルートは失敗することがあります。',
+ directActive:
+ '直接エンドポイントが有効で、保存済みのプロバイダーより優先されます。このモードを選択している間、エンドポイントと認証情報は保持されます。',
+ directClear:
+ 'このルートを適用すると、直接エンドポイントと保存済みのキーが削除されます。その他のリクエスト設定は保持されます。',
+ catalogFailed: 'モデルカタログを取得できません。プロバイダーとモデルを手動で入力するか、再試行してください。',
+ draftHint: '適用するまで変更はローカルにのみ保持されます。'
+ }
+}
diff --git a/apps/desktop/src/i18n/ru.ts b/apps/desktop/src/i18n/ru.ts
index e56d993eeb1..46b4f32d69e 100644
--- a/apps/desktop/src/i18n/ru.ts
+++ b/apps/desktop/src/i18n/ru.ts
@@ -1,12 +1,12 @@
import { defineFieldCopy } from '@/app/settings/field-copy'
import { defineLocale, type TranslationOverrides } from './define-locale'
-import { ruAuxTasks } from './ru_aux_tasks'
import { ruBoot } from './ru_boot'
import { ruClarify } from './ru_clarify'
import { ruConnectors } from './ru_connectors'
import { ruFirstRun } from './ru_first_run'
import { ruModelMenu } from './ru_model_menu'
+import { ruModelSettings } from './ru_model_settings'
import { ruNotices } from './ru_notices'
import { ruOnboarding } from './ru_onboarding'
import { ruPluginSettings } from './ru_plugins'
@@ -1301,59 +1301,7 @@ export const ruOverrides = {
deepLinkErrorUrl: 'Разрешены только URL серверов http:// и https://.',
deepLinkErrorTooLarge: 'Пакет конфигурации превышает лимит 32 КБ.'
},
- model: {
- moaPreset: 'Пресет',
- moaDescription:
- 'Настройте именованные пресеты, которые появятся как модели провайдера Mixture of Agents. Модель-агрегатор выполняет каждый шаг цикла инструментов; почти вся стоимость запуска списывается у её провайдера. По умолчанию референсные модели дают совет один раз на сообщение пользователя.',
- moaAggregator: 'Модель-агрегатор',
- moaAggregatorBilled: 'исполняющая модель · на неё приходится стоимость запуска',
- moaReferenceHint: 'по умолчанию советует один раз за ход',
- setupProviderFallback: 'провайдер',
- setUpProvider: name => `Настроить ${name}`,
- staleAuxBefore: (count, names) => `Вспомогательные задачи (${count}: ${names}) по-прежнему используют `,
- staleAuxAfter: ', а не основную модель.',
- staleAuxOtherProviders: 'других провайдеров',
- moaEnabled: 'Включено',
- moaSetDefault: 'Сделать основным',
- moaNewPresetPlaceholder: 'новый пресет',
- moaAddPreset: 'Добавить пресет',
- customModel: 'Своя модель…',
- customModelPlaceholder: 'ID модели',
- chooseFromList: 'Выбрать из списка',
- moaDefault: 'По умолчанию:',
- moaReferenceToggle: (enabled, index) => `${enabled ? 'Отключить' : 'Включить'} референс ${index}`,
- moaReferenceTitle: index => `Референс ${index}`,
- moaAddReference: 'Добавить референсную модель',
- loading: 'Загрузка конфигурации модели…',
- appliesDesc:
- 'Применяется к новым сеансам. Для горячей смены модели в активном чате используйте выборщик модели в композере.',
- provider: 'Провайдер',
- model: 'Модель',
- applying: 'Применение…',
- defaultsLabel: 'По умолчанию',
- reasoning: 'Рассуждения',
- reasoningOff: 'Выкл',
- speed: 'Скорость',
- speedStandard: 'Стандартная',
- defaultsFailed: 'Не удалось сохранить модель по умолчанию',
- auxiliaryTitle: 'Вспомогательные модели',
- resetAllToMain: 'Сбросить всё на основную',
- staleAuxDismiss: 'Больше не показывать',
- auxiliaryDesc:
- 'Вспомогательные задачи по умолчанию выполняются основной моделью. Назначьте отдельную модель любой задаче, чтобы переопределить.',
- setToMain: 'На основную',
- change: 'Изменить',
- autoUseMain: 'авто · использовать основную модель',
- inheritMainEffort: 'наследовать · усилие основной модели',
- inheritsFrom: task => `наследует ${task}`,
- followTask: task => `Как ${task}`,
- providerDefault: '(по умолчанию провайдера)',
- fallbackAdd: 'Добавить запасную',
- fallbackEmpty: 'Запасных моделей нет — используется модель по умолчанию, если она не падает.',
- notInCatalog: 'нет в списке моделей этого провайдера — вызовы могут уходить на запасную.',
- moaTitle: 'Смесь агентов',
- tasks: ruAuxTasks
- },
+ model: ruModelSettings,
providers: {
connectAccount: 'Подключить аккаунт',
haveApiKey: 'Ввести API-ключ вместо этого?',
diff --git a/apps/desktop/src/i18n/ru_model_settings.ts b/apps/desktop/src/i18n/ru_model_settings.ts
new file mode 100644
index 00000000000..c43ab1b2dd9
--- /dev/null
+++ b/apps/desktop/src/i18n/ru_model_settings.ts
@@ -0,0 +1,76 @@
+import type { TranslationOverride } from '@hermes/shared/i18n'
+
+import { ruAuxTasks } from './ru_aux_tasks'
+import type { ModelSettingsTranslations } from './types_model_settings'
+
+export const ruModelSettings: TranslationOverride<ModelSettingsTranslations> = {
+ moaPreset: 'Пресет',
+ moaDescription:
+ 'Настройте именованные пресеты, которые появятся как модели провайдера Mixture of Agents. Модель-агрегатор выполняет каждый шаг цикла инструментов; почти вся стоимость запуска списывается у её провайдера. По умолчанию референсные модели дают совет один раз на сообщение пользователя.',
+ moaAggregator: 'Модель-агрегатор',
+ moaAggregatorBilled: 'исполняющая модель · на неё приходится стоимость запуска',
+ moaReferenceHint: 'по умолчанию советует один раз за ход',
+ setupProviderFallback: 'провайдер',
+ setUpProvider: name => `Настроить ${name}`,
+ staleAuxBefore: (count, names) => `Вспомогательные задачи (${count}: ${names}) по-прежнему используют `,
+ staleAuxAfter: ', а не основную модель.',
+ staleAuxOtherProviders: 'других провайдеров',
+ moaEnabled: 'Включено',
+ moaSetDefault: 'Сделать основным',
+ moaNewPresetPlaceholder: 'новый пресет',
+ moaAddPreset: 'Добавить пресет',
+ customModel: 'Своя модель…',
+ customModelPlaceholder: 'ID модели',
+ chooseFromList: 'Выбрать из списка',
+ moaDefault: 'По умолчанию:',
+ moaReferenceToggle: (enabled, index) => `${enabled ? 'Отключить' : 'Включить'} референс ${index}`,
+ moaReferenceTitle: index => `Референс ${index}`,
+ moaAddReference: 'Добавить референсную модель',
+ loading: 'Загрузка конфигурации модели…',
+ appliesDesc:
+ 'Применяется к новым сеансам. Для горячей смены модели в активном чате используйте выборщик модели в композере.',
+ provider: 'Провайдер',
+ model: 'Модель',
+ applying: 'Применение…',
+ defaultsLabel: 'По умолчанию',
+ reasoning: 'Рассуждения',
+ reasoningOff: 'Выкл',
+ speed: 'Скорость',
+ speedStandard: 'Стандартная',
+ defaultsFailed: 'Не удалось сохранить модель по умолчанию',
+ auxiliaryTitle: 'Вспомогательные модели',
+ resetAllToMain: 'Сбросить всё на основную',
+ staleAuxDismiss: 'Больше не показывать',
+ auxiliaryDesc:
+ 'Вспомогательные задачи по умолчанию выполняются основной моделью. Назначьте отдельную модель любой задаче, чтобы переопределить.',
+ setToMain: 'На основную',
+ change: 'Изменить',
+ autoUseMain: 'авто · использовать основную модель',
+ inheritMainEffort: 'наследовать · усилие основной модели',
+ inheritsFrom: task => `наследует ${task}`,
+ followTask: task => `Как ${task}`,
+ providerDefault: '(по умолчанию провайдера)',
+ fallbackAdd: 'Добавить запасную',
+ fallbackEmpty: 'Запасных моделей нет — используется модель по умолчанию, если она не падает.',
+ notInCatalog: 'нет в списке моделей этого провайдера — вызовы могут уходить на запасную.',
+ moaTitle: 'Смесь агентов',
+ tasks: ruAuxTasks,
+ subagents: {
+ inherit: 'Наследовать от основного агента',
+ modelOnly: 'Своя модель (учётные данные основного агента)',
+ providerLabel: 'Провайдер субагентов',
+ modelLabel: 'Модель субагентов',
+ direct: 'Прямой эндпоинт',
+ customProvider: 'Свой провайдер...',
+ customProviderLabel: 'Свой провайдер субагентов',
+ parentModel: 'Использовать модель основного агента',
+ parentModelWarning:
+ 'Выбранный провайдер должен поддерживать модель основного агента. Маршрут только с провайдером может не сработать, если модель несовместима.',
+ directActive:
+ 'Активен прямой эндпоинт, он важнее сохранённого провайдера. Пока выбран этот режим, эндпоинт и учётные данные сохраняются.',
+ directClear:
+ 'Применение этого маршрута удалит прямой эндпоинт и его сохранённый ключ. Остальные настройки запросов сохранятся.',
+ catalogFailed: 'Каталог моделей недоступен. Введите провайдера и модель вручную или повторите попытку.',
+ draftHint: 'Изменения остаются локальными, пока вы их не примените.'
+ }
+}
diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.ts
index b44010428ed..32591c7c8d1 100644
--- a/apps/desktop/src/i18n/types.ts
+++ b/apps/desktop/src/i18n/types.ts
@@ -9,7 +9,6 @@ import type { ErrorCodeKey } from '@/lib/error-surface'
import type { TipId } from '@/lib/tips/catalog'
import type { AppTourTranslations } from './types_app_tour'
-import type { AuxTaskCopyMap } from './types_aux_tasks'
import type { BillingTranslations } from './types_billing'
import type { BootTranslations } from './types_boot'
import type { CatalogInstallTranslations } from './types_catalog_install'
@@ -18,6 +17,7 @@ import type { ConnectorAccountsTranslations, ConnectorCardTranslations } from '.
import type { GatewayGroupOpenCopy, SkillDeepLinkCopy } from './types_deep_links'
import type { FirstRunCopy } from './types_first_run'
import type { ModelMenuTranslations } from './types_model_menu'
+import type { ModelSettingsTranslations } from './types_model_settings'
import type { NoticeTranslations } from './types_notices'
import type { OnboardingTranslations } from './types_onboarding'
import type { SidebarProjectsTranslations } from './types_projects'
@@ -1013,19 +1013,6 @@ export interface Translations extends NoticeTranslations {
voiceShortcutHintTitle: string
voiceShortcutHintDesc: string
showOptions: string
- delegationInherit: string
- delegationModelOnly: string
- delegationProviderSelectLabel: string
- delegationModelSelectLabel: string
- delegationDirect: string
- delegationCustomProvider: string
- delegationCustomProviderLabel: string
- delegationParentModel: string
- delegationParentModelWarning: string
- delegationDirectActive: string
- delegationDirectClear: string
- delegationCatalogFailed: string
- delegationDraftHint: string
}
hudModifier: {
title: string
@@ -1346,63 +1333,7 @@ export interface Translations extends NoticeTranslations {
deepLinkErrorUrl: string
deepLinkErrorTooLarge: string
}
- model: {
- setupProviderFallback: string
- setUpProvider: (name: string) => string
- staleAuxBefore: (count: number, names: string) => string
- staleAuxAfter: string
- staleAuxOtherProviders: string
- moaEnabled: string
- moaSetDefault: string
- moaNewPresetPlaceholder: string
- moaAddPreset: string
- customModel: string
- customModelPlaceholder: string
- chooseFromList: string
- moaDefault: string
- moaReferenceToggle: (enabled: boolean, index: number) => string
- moaReferenceTitle: (index: number) => string
- moaAddReference: string
- loading: string
- appliesDesc: string
- provider: string
- model: string
- applying: string
- mainAppliedTitle: string
- mainAppliedMessage: (model: string) => string
- defaultsLabel: string
- reasoning: string
- reasoningOff: string
- speed: string
- speedStandard: string
- defaultsFailed: string
- loadFailed: string
- restartRequired: string
- restartBackend: string
- restartingBackend: string
- restartFailed: string
- auxiliaryTitle: string
- resetAllToMain: string
- staleAuxDismiss: string
- auxiliaryDesc: string
- setToMain: string
- change: string
- autoUseMain: string
- inheritMainEffort: string
- inheritsFrom: (task: string) => string
- followTask: (task: string) => string
- providerDefault: string
- fallbackAdd: string
- fallbackEmpty: string
- notInCatalog: string
- moaTitle: string
- moaPreset: string
- moaDescription: string
- moaAggregator: string
- moaAggregatorBilled: string
- moaReferenceHint: string
- tasks: AuxTaskCopyMap
- }
+ model: ModelSettingsTranslations
localModels: {
connectionChanged: string
title: string
diff --git a/apps/desktop/src/i18n/types_model_settings.ts b/apps/desktop/src/i18n/types_model_settings.ts
new file mode 100644
index 00000000000..e9f22b4628f
--- /dev/null
+++ b/apps/desktop/src/i18n/types_model_settings.ts
@@ -0,0 +1,75 @@
+import type { AuxTaskCopyMap } from './types_aux_tasks'
+
+// Settings → Model; `Translations.settings.model`.
+export interface ModelSettingsTranslations {
+ setupProviderFallback: string
+ setUpProvider: (name: string) => string
+ staleAuxBefore: (count: number, names: string) => string
+ staleAuxAfter: string
+ staleAuxOtherProviders: string
+ moaEnabled: string
+ moaSetDefault: string
+ moaNewPresetPlaceholder: string
+ moaAddPreset: string
+ customModel: string
+ customModelPlaceholder: string
+ chooseFromList: string
+ moaDefault: string
+ moaReferenceToggle: (enabled: boolean, index: number) => string
+ moaReferenceTitle: (index: number) => string
+ moaAddReference: string
+ loading: string
+ appliesDesc: string
+ provider: string
+ model: string
+ applying: string
+ mainAppliedTitle: string
+ mainAppliedMessage: (model: string) => string
+ defaultsLabel: string
+ reasoning: string
+ reasoningOff: string
+ speed: string
+ speedStandard: string
+ defaultsFailed: string
+ loadFailed: string
+ restartRequired: string
+ restartBackend: string
+ restartingBackend: string
+ restartFailed: string
+ auxiliaryTitle: string
+ resetAllToMain: string
+ staleAuxDismiss: string
+ auxiliaryDesc: string
+ setToMain: string
+ change: string
+ autoUseMain: string
+ inheritMainEffort: string
+ inheritsFrom: (task: string) => string
+ followTask: (task: string) => string
+ providerDefault: string
+ fallbackAdd: string
+ fallbackEmpty: string
+ notInCatalog: string
+ moaTitle: string
+ moaPreset: string
+ moaDescription: string
+ moaAggregator: string
+ moaAggregatorBilled: string
+ moaReferenceHint: string
+ tasks: AuxTaskCopyMap
+ subagents: {
+ inherit: string
+ modelOnly: string
+ providerLabel: string
+ modelLabel: string
+ direct: string
+ customProvider: string
+ customProviderLabel: string
+ parentModel: string
+ parentModelWarning: string
+ directActive: string
+ directClear: string
+ catalogFailed: string
+ draftHint: string
+ }
+}
diff --git a/apps/desktop/src/i18n/zh-hant_settings.ts b/apps/desktop/src/i18n/zh-hant_settings.ts
index a801b3acb2c..6ffb759ff30 100644
--- a/apps/desktop/src/i18n/zh-hant_settings.ts
+++ b/apps/desktop/src/i18n/zh-hant_settings.ts
@@ -1079,6 +1079,21 @@ export const zhHantSettings = {
kanban_decomposer: { label: '看板分解', hint: '任務拆解' },
profile_describer: { label: '設定檔描述', hint: '自動生成設定檔描述' },
curator: { label: '策展器', hint: '技能使用審查' }
+ },
+ subagents: {
+ inherit: '繼承主代理設定',
+ modelOnly: '自訂模型(沿用主代理憑證)',
+ providerLabel: '子代理提供方',
+ modelLabel: '子代理模型',
+ direct: '直接端點覆寫',
+ customProvider: '自訂提供方...',
+ customProviderLabel: '自訂子代理提供方',
+ parentModel: '使用主代理模型',
+ parentModelWarning: '所選提供方必須支援主代理模型。模型不相容時,僅指定提供方的路由可能失敗。',
+ directActive: '直接端點已啟用,優先於已儲存的提供方。選擇此模式時會保留其端點與憑證。',
+ directClear: '套用此路由會清除直接端點及其儲存的金鑰。其他請求設定維持不變。',
+ catalogFailed: '模型目錄無法使用。請手動輸入提供方與模型,或重試。',
+ draftHint: '套用前,變更只保留在本機。'
}
},
localModels: {
diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.ts
index 9d9132fcb68..b06806302e8 100644
--- a/apps/desktop/src/i18n/zh.ts
+++ b/apps/desktop/src/i18n/zh.ts
@@ -2,12 +2,12 @@ import { defineFieldCopy } from '@/app/settings/field-copy'
import { defineLocale, type TranslationOverrides } from './define-locale'
import { introZh } from './intro-zh'
-import { zhAuxTasks } from './zh_aux_tasks'
import { zhClarify } from './zh_clarify'
import { zhConnectorCard } from './zh_connector_card'
import { zhFirstRun } from './zh_first_run'
import { zhLocalModels } from './zh_local_models'
import { zhModelMenu } from './zh_model_menu'
+import { zhModelSettings } from './zh_model_settings'
import { zhNotices } from './zh_notices'
import { zhOnboarding } from './zh_onboarding'
import { zhProjects } from './zh_projects'
@@ -1284,21 +1284,8 @@ export const zhOverrides = {
attachmentSizeLabel: '预览 / 图片加载大小上限(MB)',
voiceShortcutHintTitle: '语音录制快捷键',
voiceShortcutHintDesc:
- '在「设置 → 快捷键」(“开始 / 停止语音对话”)中设置语音录制快捷键。voice.record_key 配置仅适用于 CLI 和 TUI。',
- showOptions: '显示选项',
- delegationInherit: '继承主智能体配置',
- delegationModelOnly: '自定义模型(沿用主智能体凭证)',
- delegationProviderSelectLabel: '子智能体提供商',
- delegationModelSelectLabel: '子智能体模型',
- delegationDirect: '直接端点覆盖',
- delegationCustomProvider: '自定义提供商...',
- delegationCustomProviderLabel: '自定义子智能体提供商',
- delegationParentModel: '使用主智能体模型',
- delegationParentModelWarning: '所选提供商必须支持主智能体模型。模型不兼容时,仅覆盖提供商的路由可能失败。',
- delegationDirectActive: '直接端点已启用,优先于保存的提供商。选择此模式会保留其端点和凭证。',
- delegationDirectClear: '应用此路由会清除直接端点及其保存的密钥。其他请求设置保持不变。',
- delegationCatalogFailed: '模型目录不可用。请手动输入提供商和模型,或重试。',
- delegationDraftHint: '应用前,更改仅保留在本地。'
+ '请在“设置 → 键盘快捷键”中设置语音录制快捷键(“开始 / 停止语音对话”)。voice.record_key 配置项仅适用于 CLI 和 TUI。',
+ showOptions: '显示选项'
},
hudModifier: {
title: '轻按唤出 HUD',
@@ -1640,62 +1627,7 @@ export const zhOverrides = {
deepLinkErrorUrl: '仅允许 http:// 和 https:// 服务器地址。',
deepLinkErrorTooLarge: '配置负载超过 32KB 上限。'
},
- model: {
- setupProviderFallback: '提供方',
- setUpProvider: name => `设置 ${name}`,
- staleAuxBefore: (count, names) => `${count} 个辅助任务(${names})仍由 `,
- staleAuxAfter: ' 运行,而不是主模型。',
- staleAuxOtherProviders: '其他提供方',
- moaEnabled: '启用',
- moaSetDefault: '设为默认',
- moaNewPresetPlaceholder: '新预设',
- moaAddPreset: '添加预设',
- customModel: '自定义模型…',
- customModelPlaceholder: '模型 ID',
- chooseFromList: '从列表中选择',
- moaDefault: '默认:',
- moaReferenceToggle: (enabled, index) => `${enabled ? '禁用' : '启用'}参考 ${index}`,
- moaReferenceTitle: index => `参考 ${index}`,
- moaAddReference: '添加参考模型',
- loading: '正在加载模型配置...',
- appliesDesc: '应用于新会话。可在输入框的模型选择器中临时切换当前对话。',
- provider: '提供方',
- model: '模型',
- applying: '应用中...',
- defaultsLabel: '默认值',
- reasoning: '推理',
- reasoningOff: '关闭',
- speed: '速度',
- speedStandard: '标准',
- defaultsFailed: '保存模型默认值失败',
- loadFailed: '无法加载模型',
- restartRequired: '更新后此后端仍在运行旧代码。请重启以加载新代码。',
- restartBackend: '重启后端',
- restartingBackend: '正在重启后端...',
- restartFailed: '无法重启后端',
- auxiliaryTitle: '辅助模型',
- resetAllToMain: '全部重置为主模型',
- staleAuxDismiss: '不再显示',
- auxiliaryDesc: '辅助任务默认使用主模型。你可以为任意任务指定专用模型。',
- setToMain: '设为主模型',
- change: '更改',
- autoUseMain: '自动 · 使用主模型',
- inheritMainEffort: '继承 · 主模型推理强度',
- inheritsFrom: task => `继承 ${task}`,
- followTask: task => `跟随 ${task}`,
- providerDefault: '(提供方默认)',
- fallbackAdd: '添加备用模型',
- fallbackEmpty: '未配置备用模型 — 默认模型失败时才会使用备用模型。',
- notInCatalog: '不在该提供方的模型列表中 — 调用可能回退到备用模型。',
- moaTitle: '混合智能体(Mixture of Agents)',
- moaPreset: '预设',
- moaDescription:
- '配置以「混合智能体」提供商下模型形式出现的命名预设。聚合模型是执行模型——它运行工具循环的每一步,整个运行几乎全部费用都计入其提供商。参考模型默认每轮用户消息仅提供一次建议。',
- moaAggregator: '聚合模型',
- moaAggregatorBilled: '执行模型 · 整个运行在此计费',
- moaReferenceHint: '默认每轮仅建议一次',
- tasks: zhAuxTasks
- },
+ model: zhModelSettings,
localModels: zhLocalModels,
billing: {
perMonth: amount => `${amount}/月`,
diff --git a/apps/desktop/src/i18n/zh_model_settings.ts b/apps/desktop/src/i18n/zh_model_settings.ts
new file mode 100644
index 00000000000..6824cf10fbf
--- /dev/null
+++ b/apps/desktop/src/i18n/zh_model_settings.ts
@@ -0,0 +1,76 @@
+import type { TranslationOverride } from '@hermes/shared/i18n'
+
+import type { ModelSettingsTranslations } from './types_model_settings'
+import { zhAuxTasks } from './zh_aux_tasks'
+
+export const zhModelSettings: TranslationOverride<ModelSettingsTranslations> = {
+ setupProviderFallback: '提供方',
+ setUpProvider: name => `设置 ${name}`,
+ staleAuxBefore: (count, names) => `${count} 个辅助任务(${names})仍由 `,
+ staleAuxAfter: ' 运行,而不是主模型。',
+ staleAuxOtherProviders: '其他提供方',
+ moaEnabled: '启用',
+ moaSetDefault: '设为默认',
+ moaNewPresetPlaceholder: '新预设',
+ moaAddPreset: '添加预设',
+ customModel: '自定义模型…',
+ customModelPlaceholder: '模型 ID',
+ chooseFromList: '从列表中选择',
+ moaDefault: '默认:',
+ moaReferenceToggle: (enabled, index) => `${enabled ? '禁用' : '启用'}参考 ${index}`,
+ moaReferenceTitle: index => `参考 ${index}`,
+ moaAddReference: '添加参考模型',
+ loading: '正在加载模型配置...',
+ appliesDesc: '应用于新会话。可在输入框的模型选择器中临时切换当前对话。',
+ provider: '提供方',
+ model: '模型',
+ applying: '应用中...',
+ defaultsLabel: '默认值',
+ reasoning: '推理',
+ reasoningOff: '关闭',
+ speed: '速度',
+ speedStandard: '标准',
+ defaultsFailed: '保存模型默认值失败',
+ loadFailed: '无法加载模型',
+ restartRequired: '更新后此后端仍在运行旧代码。请重启以加载新代码。',
+ restartBackend: '重启后端',
+ restartingBackend: '正在重启后端...',
+ restartFailed: '无法重启后端',
+ auxiliaryTitle: '辅助模型',
+ resetAllToMain: '全部重置为主模型',
+ staleAuxDismiss: '不再显示',
+ auxiliaryDesc: '辅助任务默认使用主模型。你可以为任意任务指定专用模型。',
+ setToMain: '设为主模型',
+ change: '更改',
+ autoUseMain: '自动 · 使用主模型',
+ inheritMainEffort: '继承 · 主模型推理强度',
+ inheritsFrom: task => `继承 ${task}`,
+ followTask: task => `跟随 ${task}`,
+ providerDefault: '(提供方默认)',
+ fallbackAdd: '添加备用模型',
+ fallbackEmpty: '未配置备用模型 — 默认模型失败时才会使用备用模型。',
+ notInCatalog: '不在该提供方的模型列表中 — 调用可能回退到备用模型。',
+ moaTitle: '混合智能体(Mixture of Agents)',
+ moaPreset: '预设',
+ moaDescription:
+ '配置以「混合智能体」提供商下模型形式出现的命名预设。聚合模型是执行模型——它运行工具循环的每一步,整个运行几乎全部费用都计入其提供商。参考模型默认每轮用户消息仅提供一次建议。',
+ moaAggregator: '聚合模型',
+ moaAggregatorBilled: '执行模型 · 整个运行在此计费',
+ moaReferenceHint: '默认每轮仅建议一次',
+ tasks: zhAuxTasks,
+ subagents: {
+ inherit: '继承主智能体配置',
+ modelOnly: '自定义模型(沿用主智能体凭证)',
+ providerLabel: '子智能体提供商',
+ modelLabel: '子智能体模型',
+ direct: '直接端点覆盖',
+ customProvider: '自定义提供商...',
+ customProviderLabel: '自定义子智能体提供商',
+ parentModel: '使用主智能体模型',
+ parentModelWarning: '所选提供商必须支持主智能体模型。模型不兼容时,仅覆盖提供商的路由可能失败。',
+ directActive: '直接端点已启用,优先于保存的提供商。选择此模式会保留其端点和凭证。',
+ directClear: '应用此路由会清除直接端点及其保存的密钥。其他请求设置保持不变。',
+ catalogFailed: '模型目录不可用。请手动输入提供商和模型,或重试。',
+ draftHint: '应用前,更改仅保留在本地。'
+ }
+}
diff --git a/locales/_keys.desktop.json b/locales/_keys.desktop.json
index 9124c127895..7111e2ad21c 100644
--- a/locales/_keys.desktop.json
+++ b/locales/_keys.desktop.json
@@ -3592,6 +3592,19 @@
"settings.model.staleAuxBefore",
"settings.model.staleAuxDismiss",
"settings.model.staleAuxOtherProviders",
+ "settings.model.subagents.catalogFailed",
+ "settings.model.subagents.customProvider",
+ "settings.model.subagents.customProviderLabel",
+ "settings.model.subagents.direct",
+ "settings.model.subagents.directActive",
+ "settings.model.subagents.directClear",
+ "settings.model.subagents.draftHint",
+ "settings.model.subagents.inherit",
+ "settings.model.subagents.modelLabel",
+ "settings.model.subagents.modelOnly",
+ "settings.model.subagents.parentModel",
+ "settings.model.subagents.parentModelWarning",
+ "settings.model.subagents.providerLabel",
"settings.model.tasks.approval.hint",
"settings.model.tasks.approval.label",
"settings.model.tasks.compression.hint",