Skip to content

The agent that grows with you

fix(desktop): Model settings label the main-model context window and expose the compression model timeout

teknium1f30fe581a8fb
diff --git a/apps/desktop/src/app/settings/constants.ts b/apps/desktop/src/app/settings/constants.ts
index 0b63fdff05b..28930d893d6 100644
--- a/apps/desktop/src/app/settings/constants.ts
+++ b/apps/desktop/src/app/settings/constants.ts
@@ -406,7 +406,7 @@ export const FREE_INPUT_KEYS = new Set([
export const FIELD_LABELS: Record<string, string> = defineFieldCopy({
model: 'Default Model',
- modelContextLength: 'Context Window',
+ modelContextLength: 'Main model context window (override)',
fallbackProviders: 'Fallback Models',
toolsets: 'Enabled Toolsets',
timezone: 'Timezone',
@@ -566,6 +566,11 @@ export const FIELD_LABELS: Record<string, string> = defineFieldCopy({
targetRatio: 'Compression Target',
protectLastN: 'Protected Recent Messages'
},
+ auxiliary: {
+ compression: {
+ timeout: 'Compression model timeout (s)'
+ }
+ },
delegation: {
model: 'Subagent Model',
provider: 'Subagent Provider',
@@ -581,7 +586,8 @@ export const FIELD_LABELS: Record<string, string> = defineFieldCopy({
export const FIELD_DESCRIPTIONS: Record<string, string> = defineFieldCopy({
model: 'Used for new chats unless you pick a different model in the composer.',
- modelContextLength: "Leave at 0 to use the selected model's detected context window.",
+ modelContextLength:
+ "Overrides the detected context window of the MAIN chat model only (tokens). Leave at 0 to use the selected model's detected value. Does not affect auxiliary/MoA models.",
fallbackProviders: 'Backup provider:model entries to try if the default model fails.',
display: {
personality: 'Default assistant style for new sessions.',
@@ -635,6 +641,12 @@ export const FIELD_DESCRIPTIONS: Record<string, string> = defineFieldCopy({
enabled: 'Summarize older context when conversations get large.',
codexGpt55Autoraise: 'Raise compression to 85% for supported ChatGPT Codex OAuth models.'
},
+ auxiliary: {
+ compression: {
+ timeout:
+ 'Seconds to wait for the auxiliary compression model per call (default 120). Raise for slow local models.'
+ }
+ },
voice: {
autoTts: 'Automatically speak assistant responses.',
voiceChatMode:
@@ -742,7 +754,8 @@ export const SECTIONS: DesktopConfigSection[] = [
'compression.threshold',
'compression.codex_gpt55_autoraise',
'compression.target_ratio',
- 'compression.protect_last_n'
+ 'compression.protect_last_n',
+ 'auxiliary.compression.timeout'
]
},
{
diff --git a/apps/desktop/src/app/settings/helpers.test.ts b/apps/desktop/src/app/settings/helpers.test.ts
index 90c00e50e6a..27ef2ae8fcb 100644
--- a/apps/desktop/src/app/settings/helpers.test.ts
+++ b/apps/desktop/src/app/settings/helpers.test.ts
@@ -32,6 +32,17 @@ describe('settings helpers', () => {
expect(fieldCopyForSchemaKey(FIELD_DESCRIPTIONS, 'desktop.repo_scan_exclude_paths')).toBeTruthy()
})
+ it('exposes the auxiliary compression timeout in Memory & Context with user-facing copy', () => {
+ // 3-segment schema key: the label lookup must round-trip the nested
+ // auxiliary.compression.timeout path the backend schema flattens.
+ const memory = SECTIONS.find(section => section.id === 'memory')
+
+ expect(memory?.keys).toContain('auxiliary.compression.timeout')
+ expect(fieldCopyForSchemaKey(FIELD_LABELS, 'auxiliary.compression.timeout')).toBe('Compression model timeout (s)')
+ expect(fieldCopyForSchemaKey(FIELD_DESCRIPTIONS, 'auxiliary.compression.timeout')).toContain('default 120')
+ expect(fieldCopyForSchemaKey(FIELD_LABELS, 'model_context_length')).toMatch(/main model/i)
+ })
+
it('does not shadow the backend schema options for memory.provider', () => {
// memory.provider options are discovery-driven and served by the backend
// config schema (merged per-request); enumOptionsFor must return undefined
diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.ts
index 417790d62c3..7bca0e561ff 100644
--- a/apps/desktop/src/i18n/ar.ts
+++ b/apps/desktop/src/i18n/ar.ts
@@ -659,7 +659,7 @@ export const ar = defineLocale({
},
fieldLabels: {
model: 'النموذج الافتراضي',
- modelContextLength: 'نافذة السياق',
+ modelContextLength: 'يتجاوز نافذة السياق المكتشفة لنموذج المحادثة الرئيسي فقط (بالرموز). اتركه 0 لاستخدام القيمة المكتشفة للنموذج المحدد. لا يؤثر على النماذج المساعدة أو نماذج MoA.',
fallbackProviders: 'النماذج الاحتياطية',
toolsets: 'مجموعات الأدوات المفعلة',
timezone: 'المنطقة الزمنية',
@@ -738,6 +738,7 @@ export const ar = defineLocale({
'compression.codexGpt55Autoraise': 'الرفع التلقائي لضغط Codex',
'compression.targetRatio': 'هدف الضغط',
'compression.protectLastN': 'الرسائل الأخيرة المحمية',
+ 'auxiliary.compression.timeout': 'مهلة نموذج الضغط (ثانية)',
'delegation.model': 'نموذج الوكيل الفرعي',
'delegation.provider': 'مزود الوكيل الفرعي',
'delegation.maxIterations': 'حد دورات الوكيل الفرعي',
@@ -773,6 +774,7 @@ export const ar = defineLocale({
'context.engine': 'استراتيجية إدارة المحادثات الطويلة قرب حد السياق.',
'compression.enabled': 'يلخص السياق الأقدم عندما تكبر المحادثات.',
'compression.codexGpt55Autoraise': 'يرفع عتبة الضغط إلى 85٪ لنماذج ChatGPT Codex OAuth المدعومة.',
+ 'auxiliary.compression.timeout': 'عدد الثواني لانتظار نموذج الضغط المساعد في كل استدعاء (الافتراضي 120). ارفعه للنماذج المحلية البطيئة.',
'voice.autoTts': 'ينطق ردود المساعد تلقائياً.',
'tts.xai.voiceId': 'معرف صوت xAI مثل eve أو معرف صوت مخصص.',
'tts.xai.language': 'رمز لغة النطق، مثل en.',
diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.ts
index cb3925206c7..039471d1f88 100644
--- a/apps/desktop/src/i18n/ja.ts
+++ b/apps/desktop/src/i18n/ja.ts
@@ -631,7 +631,7 @@ export const ja = defineLocale({
},
fieldLabels: defineFieldCopy({
model: 'デフォルトモデル',
- modelContextLength: 'コンテキストウィンドウ',
+ modelContextLength: 'メインのチャットモデルのみ、検出されたコンテキストウィンドウを上書きします(トークン数)。0 のままにすると、選択したモデルから検出された値を使用します。補助モデル/MoA モデルには影響しません。',
fallbackProviders: 'フォールバックモデル',
toolsets: '有効なツールセット',
timezone: 'タイムゾーン',
@@ -780,6 +780,11 @@ export const ja = defineLocale({
targetRatio: '圧縮目標',
protectLastN: '保護する直近メッセージ'
},
+ auxiliary: {
+ compression: {
+ timeout: '圧縮モデルのタイムアウト(秒)'
+ }
+ },
delegation: {
model: 'サブエージェントモデル',
provider: 'サブエージェントプロバイダー',
@@ -841,6 +846,11 @@ export const ja = defineLocale({
enabled: '会話が大きくなったとき、古いコンテキストを要約します。',
codexGpt55Autoraise: '対応する ChatGPT Codex OAuth モデルの圧縮しきい値を 85% に引き上げます。'
},
+ auxiliary: {
+ compression: {
+ timeout: '補助圧縮モデルの呼び出しごとに待機する秒数(既定 120)。遅いローカルモデルでは値を上げてください。'
+ }
+ },
voice: {
autoTts: 'アシスタントの応答を自動で読み上げます。'
},
diff --git a/apps/desktop/src/i18n/ru.ts b/apps/desktop/src/i18n/ru.ts
index 5a50258192d..4744586e4c7 100644
--- a/apps/desktop/src/i18n/ru.ts
+++ b/apps/desktop/src/i18n/ru.ts
@@ -691,7 +691,7 @@ export const ru = defineLocale({
},
fieldLabels: defineFieldCopy({
model: 'Модель по умолчанию',
- modelContextLength: 'Окно контекста',
+ modelContextLength: 'Переопределяет обнаруженное окно контекста ТОЛЬКО основной модели чата (в токенах). Оставьте 0, чтобы использовать обнаруженное значение выбранной модели. Не влияет на вспомогательные модели и модели MoA.',
fallbackProviders: 'Резервные модели',
toolsets: 'Включённые наборы инструментов',
timezone: 'Часовой пояс',
@@ -845,6 +845,11 @@ export const ru = defineLocale({
targetRatio: 'Целевое сжатие',
protectLastN: 'Защищённые недавние сообщения'
},
+ auxiliary: {
+ compression: {
+ timeout: 'Таймаут модели сжатия (с)'
+ }
+ },
delegation: {
model: 'Модель субагента',
provider: 'Провайдер субагента',
@@ -910,6 +915,11 @@ export const ru = defineLocale({
enabled: 'Сжимать более старый контекст, когда диалоги становятся большими.',
codexGpt55Autoraise: 'Повышает порог сжатия до 85% для поддерживаемых моделей ChatGPT Codex OAuth.'
},
+ auxiliary: {
+ compression: {
+ timeout: 'Сколько секунд ждать вспомогательную модель сжатия за один вызов (по умолчанию 120). Увеличьте для медленных локальных моделей.'
+ }
+ },
voice: {
autoTts: 'Автоматически зачитывать ответы ассистента.'
},
diff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.ts
index 975f75d3e16..8617eaf80b3 100644
--- a/apps/desktop/src/i18n/zh-hant.ts
+++ b/apps/desktop/src/i18n/zh-hant.ts
@@ -607,7 +607,7 @@ export const zhHant = defineLocale({
},
fieldLabels: defineFieldCopy({
model: '預設模型',
- modelContextLength: '上下文視窗',
+ modelContextLength: '僅覆寫主聊天模型偵測到的上下文視窗(以 token 計)。保留 0 會使用所選模型偵測到的值。不影響輔助模型/MoA 模型。',
fallbackProviders: '備用模型',
toolsets: '已啟用工具集',
timezone: '時區',
@@ -767,6 +767,11 @@ export const zhHant = defineLocale({
targetRatio: '壓縮目標',
protectLastN: '保護最近訊息'
},
+ auxiliary: {
+ compression: {
+ timeout: '壓縮模型逾時(秒)'
+ }
+ },
delegation: {
model: '子代理模型',
provider: '子代理提供方',
@@ -831,6 +836,11 @@ export const zhHant = defineLocale({
enabled: '對話變大時摘要較早的上下文。',
codexGpt55Autoraise: '為支援的 ChatGPT Codex OAuth 模型將壓縮閾值提高到 85%。'
},
+ auxiliary: {
+ compression: {
+ timeout: '每次呼叫輔助壓縮模型的等待秒數(預設 120)。本機模型較慢時請調高。'
+ }
+ },
browser: {
useRealProfile:
'本機瀏覽會使用你的真實登入狀態。Hermes 會將預設瀏覽器的設定(Cookie、登入資訊與偏好)複製成受管理的快照,再以內建的 Chromium 驅動它——不會直接開啟你正在使用的設定檔,且每次執行都會從目前的設定檔重新整理副本。設定雲端瀏覽器後端時,也允許代理視需要開啟本機真實設定檔工作階段。僅支援 Chromium 系瀏覽器(Chrome、Edge、Brave、Brave Origin、Chromium);若預設瀏覽器並非 Chromium 系,會顯示明確錯誤。預設關閉。'
diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.ts
index b019d9c876e..7f455384d85 100644
--- a/apps/desktop/src/i18n/zh.ts
+++ b/apps/desktop/src/i18n/zh.ts
@@ -814,7 +814,7 @@ export const zh = defineLocale({
},
fieldLabels: defineFieldCopy({
model: '默认模型',
- modelContextLength: '上下文窗口',
+ modelContextLength: '仅覆盖主聊天模型检测到的上下文窗口(以 token 计)。保持为 0 则使用所选模型检测到的值。不影响辅助模型/MoA 模型。',
fallbackProviders: '备用模型',
toolsets: '启用的工具集',
timezone: '时区',
@@ -974,6 +974,11 @@ export const zh = defineLocale({
targetRatio: '压缩目标',
protectLastN: '保护最近消息'
},
+ auxiliary: {
+ compression: {
+ timeout: '压缩模型超时(秒)'
+ }
+ },
delegation: {
model: '子智能体模型',
provider: '子智能体提供方',
@@ -1038,6 +1043,11 @@ export const zh = defineLocale({
enabled: '当对话变大时对较早的上下文进行摘要。',
codexGpt55Autoraise: '为受支持的 ChatGPT Codex OAuth 模型将压缩阈值提高到 85%。'
},
+ auxiliary: {
+ compression: {
+ timeout: '每次调用辅助压缩模型的等待秒数(默认 120)。本地模型较慢时请调高。'
+ }
+ },
browser: {
useRealProfile:
'本地浏览使用你的真实登录状态。Hermes 会把你默认浏览器的配置(Cookie、登录、偏好)复制为受管快照,并用自带的 Chromium 驱动它——不会直接打开你的实时配置,且每次运行都会从实时配置刷新副本。还允许智能体在配置了云端浏览器后端时,按需打开本地真实配置会话。仅支持 Chromium 系浏览器(Chrome、Edge、Brave、Brave Origin、Chromium);默认浏览器不是 Chromium 系时会给出明确报错。默认关闭。'