The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(desktop): add display.resume_last_session config toggle (#60812)
jinglun0107aff724e568a
diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex 4c2322b317a..04280720860 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -608,6 +608,8 @@ export const en: Translations = {embedsAlways: 'Always',embedsOff: 'Off',embedsReset: (count: number) => `Reset ${count} allowed ${count === 1 ? 'service' : 'services'}`,+ resumeLastSessionTitle: 'Reopen Last Chat on Launch',+ resumeLastSessionDesc: 'When enabled, the app reopens your most recent chat on cold start. Turn off to always start with a fresh new chat.',product: 'Product',productDesc: 'Human-friendly tool activity with concise summaries.',technical: 'Technical',diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex aa5d7e06d36..81675d1d4b0 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -432,6 +432,8 @@ export const ja = defineLocale({embedsAlways: '常に',embedsOff: 'オフ',embedsReset: (count: number) => `許可した${count}件のサービスをリセット`,+ resumeLastSessionTitle: '起動時に前回のチャットを再開',+ resumeLastSessionDesc: 'オンの場合、コールドスタート時に直近のチャットを再び開きます。オフにすると常に新しいチャットから始まります。',product: 'プロダクト',productDesc: '読みやすいツール活動と簡潔な要約を表示します。',technical: 'テクニカル',diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex 9864cd51f39..ed6933b4370 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -497,6 +497,8 @@ export interface Translations {embedsAlways: stringembedsOff: stringembedsReset: (count: number) => string+ resumeLastSessionTitle: string+ resumeLastSessionDesc: stringproduct: stringproductDesc: stringtechnical: stringdiff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.tsindex 85a6b3c82cf..8e3dc7c2eb8 100644--- a/apps/desktop/src/i18n/zh-hant.ts+++ b/apps/desktop/src/i18n/zh-hant.ts@@ -418,6 +418,8 @@ export const zhHant = defineLocale({embedsAlways: '一律',embedsOff: '關閉',embedsReset: (count: number) => `重設 ${count} 個已允許的服務`,+ resumeLastSessionTitle: '啟動時恢復上次會話',+ resumeLastSessionDesc: '開啟後,應用冷啟動時重新打開最近的聊天。關閉則始終從空白新會話開始。',product: '產品',productDesc: '易讀的工具活動與精簡摘要。',technical: '技術',diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex ba29f496fbf..73a0956da99 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -592,6 +592,8 @@ export const zh: Translations = {embedsAlways: '总是',embedsOff: '关闭',embedsReset: (count: number) => `重置 ${count} 个已允许的服务`,+ resumeLastSessionTitle: '启动时恢复上次会话',+ resumeLastSessionDesc: '开启后,应用冷启动时重新打开最近的聊天。关闭则始终从空白新会话开始。',product: '产品',productDesc: '易读的工具活动与简洁摘要。',technical: '技术',diff --git a/hermes_cli/config_defaults.py b/hermes_cli/config_defaults.pyindex c3e41886e03..70709a52a60 100644--- a/hermes_cli/config_defaults.py+++ b/hermes_cli/config_defaults.py@@ -1469,6 +1469,10 @@ DEFAULT_CONFIG = {# Mirrors `hermes -c` muscle memory. Default off so existing# users aren't surprised. HERMES_TUI_RESUME=<id> always wins."tui_auto_resume_recent": False,+ # When true (default), the Desktop app reopens the last chat (or+ # last page) on cold start. Set false to always land on a fresh+ # new chat. Also a switch in Desktop Settings → Appearance.+ "resume_last_session": True,# When true (default), `hermes --tui` drops a one-time hint# ("subagents working · /agents to watch live") the first time a turn# starts delegating, nudging the user toward the live spawn-tree