The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#126332)
hermes-seaeye[bot]b23b8bcf7f84
diff --git a/apps/desktop/src/app/capabilities/toolsets/toolset-detail.tsx b/apps/desktop/src/app/capabilities/toolsets/toolset-detail.tsxindex c3193f19c3d..d38a12353bc 100644--- a/apps/desktop/src/app/capabilities/toolsets/toolset-detail.tsx+++ b/apps/desktop/src/app/capabilities/toolsets/toolset-detail.tsx@@ -78,7 +78,11 @@ export function ToolsetDetail({generic Settings → Config editor. */}{toolset.name === 'browser' && <BrowserRealProfilePanel profile={profile} />}{toolset.name === 'terminal' && (- <TerminalBackendPanel key={profileScopeKey(profile)} onConfiguredChange={onConfiguredChange} profile={profile} />+ <TerminalBackendPanel+ key={profileScopeKey(profile)}+ onConfiguredChange={onConfiguredChange}+ profile={profile}+ />)}<ToolsetConfigPanelkey={`${toolset.name}:${profileScopeKey(profile)}`}diff --git a/apps/desktop/src/app/messaging/index.test.tsx b/apps/desktop/src/app/messaging/index.test.tsxindex aadba1f98ce..39c07efe2ea 100644--- a/apps/desktop/src/app/messaging/index.test.tsx+++ b/apps/desktop/src/app/messaging/index.test.tsx@@ -221,6 +221,7 @@ describe('MessagingView enable switch', () => {// #96542 (second mechanism): A's in-flight getMessagingPlatforms resolves// AFTER the switch to B and must not repaint A's redacted token under B.const tokenA = '123456:AAE-profile-a-token'+let resolveA: (value: unknown) => void = () => {}getMessagingPlatforms.mockImplementation((profile?: null | string) =>diff --git a/apps/desktop/src/components/assistant-ui/thread/assistant-message.tsx b/apps/desktop/src/components/assistant-ui/thread/assistant-message.tsxindex 6f9d37eff9e..0720c034518 100644--- a/apps/desktop/src/components/assistant-ui/thread/assistant-message.tsx+++ b/apps/desktop/src/components/assistant-ui/thread/assistant-message.tsx@@ -840,25 +840,28 @@ const ErrorRecoveryActions: FC = () => {// composer scope), not the pooled backend's launch profile (#119080).const ownerProfile = useComposerScope().profile || gatewayProfile- const openLocalDir = useCallback(async (resolve: (logsRoot: string) => string, failedMessage: string) => {- try {- const root = await window.hermesDesktop?.logsRoot?.(normalizeProfileKey(ownerProfile))+ const openLocalDir = useCallback(+ async (resolve: (logsRoot: string) => string, failedMessage: string) => {+ try {+ const root = await window.hermesDesktop?.logsRoot?.(normalizeProfileKey(ownerProfile))- if (!root) {- notifyError(new Error('logs root unavailable'), failedMessage)+ if (!root) {+ notifyError(new Error('logs root unavailable'), failedMessage)- return- }+ return+ }- const result = await window.hermesDesktop?.openDir?.(resolve(root))+ const result = await window.hermesDesktop?.openDir?.(resolve(root))- if (result && !result.ok) {- notifyError(new Error(result.error || 'open failed'), failedMessage)+ if (result && !result.ok) {+ notifyError(new Error(result.error || 'open failed'), failedMessage)+ }+ } catch (error) {+ notifyError(error, failedMessage)}- } catch (error) {- notifyError(error, failedMessage)- }- }, [ownerProfile])+ },+ [ownerProfile]+ )const openLogs = useCallback(() => openLocalDir(root => root, copy.errorOpenLogsFailed),diff --git a/apps/desktop/src/components/tips/tutorial-lifetime.test.tsx b/apps/desktop/src/components/tips/tutorial-lifetime.test.tsxindex b217e7370c0..462a6884eb7 100644--- a/apps/desktop/src/components/tips/tutorial-lifetime.test.tsx+++ b/apps/desktop/src/components/tips/tutorial-lifetime.test.tsx@@ -12,7 +12,8 @@ vi.mock('@/store/gateway', async () => {$gateway: atom<unknown>(null),activeGateway: () => ({ request }),activeGatewayProfileKey: () => 'default',- requestGatewayForProfile: (_profile: string, ...call: unknown[]) => (request as (...args: unknown[]) => unknown)(...call)+ requestGatewayForProfile: (_profile: string, ...call: unknown[]) =>+ (request as (...args: unknown[]) => unknown)(...call)}})vi.mock('@/store/session', async () => {diff --git a/apps/desktop/src/plugins/hermes-bots/i18n.ts b/apps/desktop/src/plugins/hermes-bots/i18n.tsindex 43c3ee196a4..5f568971324 100644--- a/apps/desktop/src/plugins/hermes-bots/i18n.ts+++ b/apps/desktop/src/plugins/hermes-bots/i18n.ts@@ -835,7 +835,8 @@ const en: BotsMessages = {stoppedBody: 'Start this bot\u2019s desktop to watch what it does and take over when it needs you.',placementSandbox: backend => `Screen runs inside the ${backend} sandbox, with the terminal`,imageSwitchTitle: 'New sandbox image available',- imageSwitchBody: (current, target) => `Your sandbox still runs ${current}, which has no desktop. Switching to ${target} recreates the container the next time the bot uses its terminal: files in /root and /workspace stay on this machine, packages installed inside the container are reinstalled on demand.`,+ imageSwitchBody: (current, target) =>+ `Your sandbox still runs ${current}, which has no desktop. Switching to ${target} recreates the container the next time the bot uses its terminal: files in /root and /workspace stay on this machine, packages installed inside the container are reinstalled on demand.`,imageSwitchApprove: 'Switch image',imageSwitchKeep: 'Keep current image',start: 'Start screen',@@ -1274,7 +1275,8 @@ const ja: BotsMessages = {stoppedBody: 'このボットのデスクトップを起動すると、動作を見守り、必要なときに操作を引き継げます。',placementSandbox: backend => `画面は ${backend} サンドボックス内(ターミナルと同じ場所)で動作します`,imageSwitchTitle: '新しいサンドボックスイメージがあります',- imageSwitchBody: (current, target) => `サンドボックスはまだ ${current} で動作しており、デスクトップがありません。${target} に切り替えると、ボットが次にターミナルを使うときにコンテナが再作成されます。/root と /workspace のファイルはこのマシンに残り、コンテナ内にインストールしたパッケージは必要に応じて再インストールされます。`,+ imageSwitchBody: (current, target) =>+ `サンドボックスはまだ ${current} で動作しており、デスクトップがありません。${target} に切り替えると、ボットが次にターミナルを使うときにコンテナが再作成されます。/root と /workspace のファイルはこのマシンに残り、コンテナ内にインストールしたパッケージは必要に応じて再インストールされます。`,imageSwitchApprove: 'イメージを切り替える',imageSwitchKeep: '現在のイメージを使い続ける',start: '画面を起動',@@ -1697,7 +1699,8 @@ const zh: BotsMessages = {stoppedBody: '启动此机器人的桌面,观看它的操作,并在需要时接管。',placementSandbox: backend => `屏幕运行在 ${backend} 沙箱内,与终端同处`,imageSwitchTitle: '有新的沙箱镜像',- imageSwitchBody: (current, target) => `沙箱仍在运行 ${current},其中没有桌面。切换到 ${target} 后,机器人下次使用终端时会重建容器:/root 和 /workspace 中的文件保留在本机,容器内安装的软件包会按需重新安装。`,+ imageSwitchBody: (current, target) =>+ `沙箱仍在运行 ${current},其中没有桌面。切换到 ${target} 后,机器人下次使用终端时会重建容器:/root 和 /workspace 中的文件保留在本机,容器内安装的软件包会按需重新安装。`,imageSwitchApprove: '切换镜像',imageSwitchKeep: '保留当前镜像',start: '启动屏幕',@@ -2120,7 +2123,8 @@ const zhHant: BotsMessages = {stoppedBody: '啟動此機器人的桌面,觀看它的操作,並在需要時接手。',placementSandbox: backend => `畫面在 ${backend} 沙箱內執行,與終端同處`,imageSwitchTitle: '有新的沙箱映像',- imageSwitchBody: (current, target) => `沙箱仍在執行 ${current},其中沒有桌面。切換到 ${target} 後,機器人下次使用終端時會重建容器:/root 和 /workspace 中的檔案保留在本機,容器內安裝的套件會按需重新安裝。`,+ imageSwitchBody: (current, target) =>+ `沙箱仍在執行 ${current},其中沒有桌面。切換到 ${target} 後,機器人下次使用終端時會重建容器:/root 和 /workspace 中的檔案保留在本機,容器內安裝的套件會按需重新安裝。`,imageSwitchApprove: '切換映像',imageSwitchKeep: '保留目前映像',start: '啟動螢幕',diff --git a/apps/desktop/src/plugins/hermes-bots/screen-pane.tsx b/apps/desktop/src/plugins/hermes-bots/screen-pane.tsxindex e9f4b6c9c8a..917544e7777 100644--- a/apps/desktop/src/plugins/hermes-bots/screen-pane.tsx+++ b/apps/desktop/src/plugins/hermes-bots/screen-pane.tsx@@ -435,7 +435,9 @@ export function BotScreenPane({ bot }: { bot: RosterRow }) {<div className="grid min-h-48 place-items-center p-6 text-center"><div className="flex max-w-md flex-col items-center gap-2"><div className="text-sm font-medium">{t.screen.imageSwitchTitle}</div>- <div className="text-xs text-muted-foreground">{t.screen.imageSwitchBody(sw.current_image, sw.target_image)}</div>+ <div className="text-xs text-muted-foreground">+ {t.screen.imageSwitchBody(sw.current_image, sw.target_image)}+ </div><div className="flex gap-2"><Button disabled={busy} onClick={() => void decideImageSwitch(true)} size="sm">{busy ? <GlyphSpinner /> : <Codicon name="arrow-swap" />}diff --git a/apps/desktop/src/store/approval-mode.ts b/apps/desktop/src/store/approval-mode.tsindex 4cf43e85ed8..4fb9fd0aa96 100644--- a/apps/desktop/src/store/approval-mode.ts+++ b/apps/desktop/src/store/approval-mode.ts@@ -66,10 +66,9 @@ export async function syncApprovalModeForProfile(const key = profileKey(profile)const revision = nextRevision(key)- const result = (await requestGateway(- 'config.get',- scopeToProfile(profile, { key: 'approvals.mode' })- )) as { value?: string }+ const result = (await requestGateway('config.get', scopeToProfile(profile, { key: 'approvals.mode' }))) as {+ value?: string+ }const mode = normalizeApprovalMode(result?.value)diff --git a/apps/desktop/src/store/display-toggles.test.ts b/apps/desktop/src/store/display-toggles.test.tsindex e40b3cb3018..28a4d22aa50 100644--- a/apps/desktop/src/store/display-toggles.test.ts+++ b/apps/desktop/src/store/display-toggles.test.ts@@ -21,7 +21,9 @@ const $enabled = atom(true)mirrorDisplayToggle('display.test_toggle', STORAGE_KEY, $enabled)const sets = () =>- request.mock.calls.filter(([, method]) => method === 'config.set').map(([profile, , params]) => ({ ...params, profile }))+ request.mock.calls+ .filter(([, method]) => method === 'config.set')+ .map(([profile, , params]) => ({ ...params, profile }))beforeEach(() => {localStorage.clear()diff --git a/apps/desktop/src/store/display-toggles.ts b/apps/desktop/src/store/display-toggles.tsindex f0dc7b80d37..14b4dea49f1 100644--- a/apps/desktop/src/store/display-toggles.ts+++ b/apps/desktop/src/store/display-toggles.ts@@ -43,9 +43,9 @@ function push(mirror: Mirror): void {key: mirror.configKey,value: mirror.read() ? 'true' : 'false'}).catch(() => {- // Not connected, or a gateway too old to know the key. The next toggle- // and the next connection both try again.- })+ // Not connected, or a gateway too old to know the key. The next toggle+ // and the next connection both try again.+ })}/** Keep `display.<configKey>` on the live gateway in step with a renderer atom. */