Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#96263)

hermes-seaeye[bot]8d30c2044964
diff --git a/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts b/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts
index b0ebd3ab62d..86c4c683406 100644
--- a/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts
+++ b/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts
@@ -1,10 +1,18 @@
import { useEffect } from 'react'
-import { fetchStoredTranscriptAcrossBackends, getLatestSessionMessages, PROMPT_SUBMIT_REQUEST_TIMEOUT_MS } from '@/hermes'
+import {
+ fetchStoredTranscriptAcrossBackends,
+ getLatestSessionMessages,
+ PROMPT_SUBMIT_REQUEST_TIMEOUT_MS
+} from '@/hermes'
import { translateNow } from '@/i18n/runtime'
import { toChatMessages } from '@/lib/chat-messages'
import { notify } from '@/store/notifications'
-import { isReadOnlyRuntimeId, readOnlyRuntimeIdFor, resumeWithStoredTranscriptFallback } from '@/store/read-only-transcript'
+import {
+ isReadOnlyRuntimeId,
+ readOnlyRuntimeIdFor,
+ resumeWithStoredTranscriptFallback
+} from '@/store/read-only-transcript'
import { knownSessionOwner, ownerLookupSessionRows } from '@/store/session'
import { assertSessionOwnerResolved } from '@/store/session-owner-resolution'
import { requestForSessionProfile, type SessionOwnerScope } from '@/store/session-request-router'
@@ -245,8 +253,7 @@ export function useSessionTileDelegate({
...state,
busy: false,
awaitingResponse: false,
- messages:
- state.messages.length > 0 ? state.messages : toChatMessages(outcome.transcript?.messages ?? [])
+ messages: state.messages.length > 0 ? state.messages : toChatMessages(outcome.transcript?.messages ?? [])
}),
storedSessionId
)
diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.ts
index ac81f7821c1..f658ca540cb 100644
--- a/apps/desktop/src/i18n/ar.ts
+++ b/apps/desktop/src/i18n/ar.ts
@@ -2780,7 +2780,8 @@ export const ar = defineLocale({
editTurnUnavailable: 'هذه الجولة لم تعد في سجل الخادم (ربما أزيلت بالضغط).',
resumeFailed: 'فشل الاستئناف',
readOnlyTranscriptTitle: 'فُتحت للقراءة فقط',
- readOnlyTranscriptBody: 'لا يوجد بعد خادم متصل يملك هذه المحادثة القديمة، لذا فُتحت كنصّ محفوظ للقراءة فقط. السجل سليم؛ الإرسال معطّل حتى يتبنّاها خادم.',
+ readOnlyTranscriptBody:
+ 'لا يوجد بعد خادم متصل يملك هذه المحادثة القديمة، لذا فُتحت كنصّ محفوظ للقراءة فقط. السجل سليم؛ الإرسال معطّل حتى يتبنّاها خادم.',
readOnlyTranscriptSendBlocked: 'هذه المحادثة مفتوحة كنصّ محفوظ للقراءة فقط — الإرسال معطّل.',
resumeStrandedTitle: 'تعذّر تحميل هذه الجلسة',
resumeStrandedBody:
diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.ts
index dba0dcb5fdd..d4131559edf 100644
--- a/apps/desktop/src/i18n/ja.ts
+++ b/apps/desktop/src/i18n/ja.ts
@@ -3031,7 +3031,8 @@ export const ja = defineLocale({
editTurnUnavailable: 'このターンはサーバー履歴にありません(圧縮で削除された可能性があります)。',
resumeFailed: '再開に失敗しました',
readOnlyTranscriptTitle: '読み取り専用で開きました',
- readOnlyTranscriptBody: 'この古いチャットを所有するバックエンドがまだ接続されていないため、読み取り専用のトランスクリプトとして開きました。履歴は無事です。バックエンドが所有を認識するまで送信は無効です。',
+ readOnlyTranscriptBody:
+ 'この古いチャットを所有するバックエンドがまだ接続されていないため、読み取り専用のトランスクリプトとして開きました。履歴は無事です。バックエンドが所有を認識するまで送信は無効です。',
readOnlyTranscriptSendBlocked: 'このチャットは読み取り専用トランスクリプトとして開いています。送信は無効です。',
resumeStrandedTitle: 'このセッションを読み込めませんでした',
resumeStrandedBody:
diff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.ts
index 6fa49ea3e6f..f155f4050cf 100644
--- a/apps/desktop/src/i18n/zh-hant.ts
+++ b/apps/desktop/src/i18n/zh-hant.ts
@@ -2906,7 +2906,8 @@ export const zhHant = defineLocale({
editTurnUnavailable: '此回合已不在伺服器歷史中(可能已被壓縮移除)。',
resumeFailed: '繼續失敗',
readOnlyTranscriptTitle: '已以唯讀方式開啟',
- readOnlyTranscriptBody: '尚無已連線的後端認領這個較早的對話,因此它以唯讀逐字稿方式開啟。歷史紀錄完好;在有後端認領之前無法傳送訊息。',
+ readOnlyTranscriptBody:
+ '尚無已連線的後端認領這個較早的對話,因此它以唯讀逐字稿方式開啟。歷史紀錄完好;在有後端認領之前無法傳送訊息。',
readOnlyTranscriptSendBlocked: '此對話目前以唯讀逐字稿方式開啟——傳送已停用。',
resumeStrandedTitle: '無法載入此工作階段',
resumeStrandedBody: '與此工作階段的連線失敗,自動重試已停止。請確認閘道正在執行,然後重試。',
diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.ts
index e86c04e7447..e5326688699 100644
--- a/apps/desktop/src/i18n/zh.ts
+++ b/apps/desktop/src/i18n/zh.ts
@@ -3554,7 +3554,8 @@ export const zh: Translations = {
editTurnUnavailable: '此回合已不在服务器历史中(可能已被压缩移除)。',
resumeFailed: '恢复失败',
readOnlyTranscriptTitle: '已以只读方式打开',
- readOnlyTranscriptBody: '尚无已连接的后端认领这个较早的会话,因此它以只读记录方式打开。历史记录完好;在有后端认领之前无法发送消息。',
+ readOnlyTranscriptBody:
+ '尚无已连接的后端认领这个较早的会话,因此它以只读记录方式打开。历史记录完好;在有后端认领之前无法发送消息。',
readOnlyTranscriptSendBlocked: '该会话目前以只读记录方式打开——发送已禁用。',
resumeStrandedTitle: '无法加载此会话',
resumeStrandedBody: '与此会话的连接失败,自动重试已停止。请确认网关正在运行,然后重试。',
diff --git a/apps/desktop/src/store/read-only-transcript.ts b/apps/desktop/src/store/read-only-transcript.ts
index 72e93399e42..8cf3ca9bd64 100644
--- a/apps/desktop/src/store/read-only-transcript.ts
+++ b/apps/desktop/src/store/read-only-transcript.ts
@@ -17,7 +17,7 @@
*/
import { atom } from 'nanostores'
-import type { SessionOwnerResolutionError } from './session-owner-resolution';
+import type { SessionOwnerResolutionError } from './session-owner-resolution'
import { isSessionOwnerResolutionError } from './session-owner-resolution'
/** Stored session ids currently open as read-only stored transcripts. The