The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): restore archived sidebar rows from their action menu
Brooklyn Nicholson50e72e318ef6
diff --git a/apps/desktop/src/app/chat/sidebar/session-actions-menu.test.tsx b/apps/desktop/src/app/chat/sidebar/session-actions-menu.test.tsxindex e83a2ba707f..a329f07578e 100644--- a/apps/desktop/src/app/chat/sidebar/session-actions-menu.test.tsx+++ b/apps/desktop/src/app/chat/sidebar/session-actions-menu.test.tsx@@ -62,6 +62,7 @@ vi.mock('@/i18n', () => ({renameTitle: 'Rename session',renamed: 'Renamed',sessionActions: 'Session actions',+ unarchive: 'Unarchive',unpin: 'Unpin',untitledPlaceholder: 'Untitled'}@@ -223,6 +224,32 @@ describe('SessionActionsMenu', () => {expect(deleteItem.getAttribute('aria-disabled')).toBe('true')})+ // The sidebar's Archived view reuses this menu; its rows must offer the+ // restore verb instead of a no-op re-archive (#98813). The item still fires+ // the shared onArchive callback — the wiring dispatches it to the restore+ // path based on the row's archived state.+ it('labels the archive verb Unarchive for an already-archived row and fires the shared callback', async () => {+ const onArchive = vi.fn()+ render(+ <SessionActionsMenu archived onArchive={onArchive} sessionId="s1" title="My session">+ <button aria-label="Session actions" type="button">+ ⋮+ </button>+ </SessionActionsMenu>+ )++ const trigger = screen.getByRole('button', { name: 'Session actions' })+ fireEvent.pointerDown(trigger, { button: 0, pointerType: 'mouse' })+ fireEvent.pointerUp(trigger, { button: 0, pointerType: 'mouse' })+ fireEvent.click(trigger)++ const restoreItem = await screen.findByRole('menuitem', { name: /^unarchive$/i })+ expect(screen.queryByRole('menuitem', { name: /^archive$/i })).toBeNull()++ fireEvent.click(restoreItem)+ await waitFor(() => expect(onArchive).toHaveBeenCalledTimes(1))+ })+it('confirms with the Enter key and cancels with Escape', async () => {const onDelete = vi.fn()render(diff --git a/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx b/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsxindex 4be69f8c156..c56b4b4655b 100644--- a/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx+++ b/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx@@ -27,6 +27,7 @@ import { Input } from '@/components/ui/input'import { renameSession } from '@/hermes'import { useI18n } from '@/i18n'import { triggerHaptic } from '@/lib/haptics'+import { ArchiveOff } from '@/lib/icons'import { isSubmitEnter } from '@/lib/ime'import { PROFILE_SWATCHES } from '@/lib/profile-color'import { exportSession } from '@/lib/session-export'@@ -102,6 +103,9 @@ interface SessionActions {pinned?: boolean/** Backend-derived read state — drives the Mark as unread/read label. */unread?: boolean+ /** The row is already archived (the sidebar's Archived view): the shared+ * archive verb becomes Unarchive and restores the session (#98813). */+ archived?: booleanprofile?: stringonPin?: () => void/** Toggle the persisted read-state watermark for this row. */@@ -187,6 +191,7 @@ function useSessionActions({title,pinned = false,unread = false,+ archived = false,profile,onPin,onToggleUnread,@@ -432,8 +437,14 @@ function useSessionActions({const dangerItems: ActionItemSpec[] = [spec({disabled: !onArchive,- icon: 'archive',- label: r.archive,+ // Already archived (the Archived view): the same verb restores the row+ // instead of re-archiving it (#98813). The wiring dispatches the shared+ // onArchive callback to the restore path based on the row's state. No+ // unarchive codicon exists, so the restore item carries the ArchiveOff+ // glyph the Settings → Archived Chats restore button already uses.+ icon: archived ? undefined : 'archive',+ iconNode: archived ? <ArchiveOff className="size-3.5" /> : undefined,+ label: archived ? r.unarchive : r.archive,onSelect: () => {triggerHaptic('selection')onArchive?.()diff --git a/apps/desktop/src/app/chat/sidebar/session-row.test.tsx b/apps/desktop/src/app/chat/sidebar/session-row.test.tsxindex c8146ffe8b2..036a644abfc 100644--- a/apps/desktop/src/app/chat/sidebar/session-row.test.tsx+++ b/apps/desktop/src/app/chat/sidebar/session-row.test.tsx@@ -125,10 +125,21 @@ vi.mock('@/store/windows', async importOriginal => {// SessionActionsMenu open behavior is covered in session-actions-menu.test.tsx// against the real component. Stub it here so this file stays focused on the-// row chrome.+// row chrome (handoff avatar tip, etc.) — but record the props so the row's+// own state plumbing (e.g. the archived flag, #98813) is still asserted.+const menuProps = vi.hoisted(() => vi.fn())+vi.mock('./session-actions-menu', () => ({- SessionActionsMenu: ({ children }: { children: React.ReactNode }) => <>{children}</>,- SessionContextMenu: ({ children }: { children: React.ReactNode }) => <>{children}</>+ SessionActionsMenu: (props: { children?: React.ReactNode }) => {+ menuProps(props)++ return <>{props.children}</>+ },+ SessionContextMenu: (props: { children?: React.ReactNode }) => {+ menuProps(props)++ return <>{props.children}</>+ }}))vi.mock('./use-profile-prewarm', () => ({@@ -260,6 +271,22 @@ describe('SidebarSessionRow', () => {expect(screen.queryByRole('tooltip')).toBeNull()})})++ // The Archived view reuses the row menu, and the menu needs the row's+ // archived state to label its shared verb Unarchive (#98813).+ it('forwards the archived state to the row menu', () => {+ menuProps.mockClear()+ renderRow(makeSession({ archived: true, title: 'Archived row' }))++ expect(menuProps).toHaveBeenCalledWith(expect.objectContaining({ archived: true }))+ })++ it('forwards the non-archived state to the row menu', () => {+ menuProps.mockClear()+ renderRow(makeSession({ title: 'Live row' }))++ expect(menuProps).toHaveBeenCalledWith(expect.objectContaining({ archived: false }))+ })})// Regression for #83617: the row shell once spread the FULL dnd-kit handle, sodiff --git a/apps/desktop/src/app/chat/sidebar/session-row.tsx b/apps/desktop/src/app/chat/sidebar/session-row.tsxindex 242b61a2a33..99016e7d515 100644--- a/apps/desktop/src/app/chat/sidebar/session-row.tsx+++ b/apps/desktop/src/app/chat/sidebar/session-row.tsx@@ -312,6 +312,7 @@ function SidebarSessionRowImpl({</span>))}<SessionActionsMenu+ archived={Boolean(session.archived)}onArchive={onArchive}onBranch={onBranch}onDelete={onDelete}@@ -341,6 +342,7 @@ function SidebarSessionRowImpl({return (<SessionContextMenu+ archived={Boolean(session.archived)}onArchive={onArchive}onBranch={onBranch}onDelete={onDelete}diff --git a/apps/desktop/src/app/contrib/wiring.tsx b/apps/desktop/src/app/contrib/wiring.tsxindex f94024170bf..17c9cdde485 100644--- a/apps/desktop/src/app/contrib/wiring.tsx+++ b/apps/desktop/src/app/contrib/wiring.tsx@@ -88,6 +88,7 @@ import {setBusy,setMessages} from '@/store/session'+import { $archivedSessions } from '@/store/sidebar-archive'import { $titlebarAppActionsSide, titlebarAppActionsClusterCounts } from '@/store/titlebar-app-actions'import { armWakeWord, stopClientCapture } from '@/store/wake-word'import { isAuxiliaryWindow, isBrowserWindow, isHudWindow } from '@/store/windows'@@ -564,7 +565,8 @@ export function ContribWiring({ children }: { children: ReactNode }) {removeSession,resumeSession,selectSidebarItem,- startFreshSessionDraft+ startFreshSessionDraft,+ unarchiveSession} = useSessionActions({activeSessionId,activeSessionIdRef,@@ -1100,7 +1102,17 @@ export function ContribWiring({ children }: { children: ReactNode }) {const nextActions: WiringActions = {onAddContextRef: composer.addContextRefAttachment,onAddUrl: url => composer.addContextRefAttachment(`@url:${formatRefValue(url)}`, url),- onArchiveSession: sessionId => void archiveSession(sessionId),+ // The sidebar row menu reuses this verb in the Archived view too, where the+ // row is already archived — dispatch by state so the verb restores there+ // instead of re-archiving (#98813).+ onArchiveSession: sessionId => {+ const listed = $sessions.get().find(session => sessionMatchesStoredId(session, sessionId))++ const isArchived =+ listed?.archived === true || $archivedSessions.get().some(session => sessionMatchesStoredId(session, sessionId))++ void (isArchived ? unarchiveSession(sessionId) : archiveSession(sessionId))+ },onAttachDroppedItems: composer.attachDroppedItems,onAttachImageBlob: composer.attachImageBlob,onAttachPastedText: composer.attachPastedText,diff --git a/apps/desktop/src/app/session/hooks/use-session-actions/index.ts b/apps/desktop/src/app/session/hooks/use-session-actions/index.tsindex ca98a4fcf4b..1548fd607a6 100644--- a/apps/desktop/src/app/session/hooks/use-session-actions/index.ts+++ b/apps/desktop/src/app/session/hooks/use-session-actions/index.ts@@ -2976,6 +2976,44 @@ export function useSessionActions({])+ // The Archived view reuses the sidebar row menu; its already-archived rows+ // dispatch here through the same archive verb (#98813). Mirrors the Settings+ // → Archived Chats restore (sessions-settings.tsx): flip the persisted flag+ // back off, drop the archived-view row, and resurface the session in the+ // sidebar without waiting for a full refresh.+ const unarchiveSession = useCallback(+ async (storedSessionId: string) => {+ clearNotifications()++ const archived = $archivedSessions.get().find(session => sessionMatchesStoredId(session, storedSessionId))+ const profile = archived?.profile?.trim() || undefined++ try {+ await setSessionArchived(storedSessionId, false, profile)++ // Drop the archived-view row first so the view reflects the restore+ // even when the session cannot be re-listed below (e.g. it belongs to+ // a profile the current query does not cover).+ $archivedSessions.set(+ $archivedSessions.get().filter(session => !sessionMatchesStoredId(session, storedSessionId))+ )++ if (archived) {+ // Lift any optimistic eviction so the grouped tree shows it again,+ // and re-list through the slice router so a messaging/cron row lands+ // back in its own list, not the sessions one.+ untombstoneSessions([storedSessionId, archived._lineage_root_id])+ restoreListedSession({ ...archived, archived: false })+ }++ notify({ durationMs: 2_000, kind: 'success', message: copy.restored })+ } catch (err) {+ notifyError(err, copy.unarchiveFailed)+ }+ },+ [copy]+ )+return {archiveSession,branchCurrentSession,@@ -2987,6 +3025,7 @@ export function useSessionActions({removeSession,resumeSession,selectSidebarItem,- startFreshSessionDraft+ startFreshSessionDraft,+ unarchiveSession}}diff --git a/apps/desktop/src/app/session/hooks/use-session-actions/unarchive-session.test.tsx b/apps/desktop/src/app/session/hooks/use-session-actions/unarchive-session.test.tsxnew file mode 100644index 00000000000..38b2db1e7ad--- /dev/null+++ b/apps/desktop/src/app/session/hooks/use-session-actions/unarchive-session.test.tsx@@ -0,0 +1,156 @@+// Regression (#98813): the sidebar's Archived view reuses the row action+// menu, so its shared archive verb must RESTORE an already-archived row+// instead of re-archiving it. unarchiveSession is the restore path the+// wiring dispatches to: flip the persisted flag off, drop the archived-view+// row, and resurface the session in the sidebar without a full refresh — the+// same shape as the Settings → Archived Chats restore.+import { act, cleanup, render, waitFor } from '@testing-library/react'+import type { MutableRefObject } from 'react'+import { useEffect } from 'react'+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'++import { type SessionInfo, setSessionArchived } from '@/hermes'+import { $sessions, setSessions } from '@/store/session'+import { $archivedSessions } from '@/store/sidebar-archive'++import type { ClientSessionState } from '../../../types'++import { useSessionActions } from './index'++vi.mock('@/hermes', async importOriginal => ({+ ...(await importOriginal<Record<string, unknown>>()),+ deleteSession: vi.fn(),+ getSession: vi.fn(),+ getAllSessionMessages: vi.fn(),+ getLatestSessionMessages: vi.fn(),+ listAllProfileSessions: vi.fn(),+ setApiRequestProfile: vi.fn(),+ setSessionArchived: vi.fn()+}))++vi.mock('@/store/profile', async importOriginal => ({+ ...(await importOriginal<Record<string, unknown>>()),+ ensureGatewayProfile: vi.fn().mockResolvedValue(undefined)+}))++function archivedSession(overrides: Partial<SessionInfo> = {}): SessionInfo {+ return {+ archived: true,+ ended_at: null,+ id: 'arch-1',+ input_tokens: 0,+ is_active: false,+ last_active: 1,+ message_count: 2,+ model: null,+ output_tokens: 0,+ preview: null,+ source: 'desktop',+ started_at: 1,+ title: 'archived row',+ tool_call_count: 0,+ ...overrides+ } as SessionInfo+}++type Handle = Pick<ReturnType<typeof useSessionActions>, 'unarchiveSession'>++function Harness({ onReady }: { onReady: (handle: Handle) => void }) {+ const ref = <T,>(value: T): MutableRefObject<T> => ({ current: value })++ const actions = useSessionActions({+ activeSessionId: null,+ activeSessionIdRef: ref<string | null>(null),+ busyRef: ref(false),+ creatingSessionRef: ref(false),+ ensureSessionState: () => ({}) as ClientSessionState,+ getRouteToken: () => 'token',+ getRoutedStoredSessionId: () => null,+ navigate: vi.fn() as never,+ requestGateway: vi.fn().mockResolvedValue(undefined),+ resetViewSync: vi.fn(),+ runtimeIdByStoredSessionIdRef: ref(new Map<string, string>()),+ selectedStoredSessionId: null,+ selectedStoredSessionIdRef: ref<string | null>(null),+ sessionStateByRuntimeIdRef: ref(new Map<string, ClientSessionState>()),+ syncSessionStateToView: vi.fn(),+ updateSessionState: () => ({}) as ClientSessionState+ })++ useEffect(() => {+ onReady({ unarchiveSession: actions.unarchiveSession })+ }, [actions, onReady])++ return null+}++async function mountHarness(): Promise<Handle> {+ let handle: Handle | undefined+ render(<Harness onReady={h => (handle = h)} />)+ await waitFor(() => expect(handle).toBeDefined())++ return handle!+}++describe('unarchiveSession', () => {+ beforeEach(() => {+ setSessions([])+ $archivedSessions.set([])+ vi.mocked(setSessionArchived).mockReset()+ })++ afterEach(() => {+ cleanup()+ setSessions([])+ $archivedSessions.set([])+ })++ it('restores an archived row: flips the RPC off, drops the view row, resurfaces it in the sidebar', async () => {+ $archivedSessions.set([archivedSession(), archivedSession({ id: 'arch-2', title: 'keep me' })])+ vi.mocked(setSessionArchived).mockResolvedValue({ ok: true })++ const handle = await mountHarness()++ await act(() => handle.unarchiveSession('arch-1'))++ expect(vi.mocked(setSessionArchived)).toHaveBeenCalledWith('arch-1', false, undefined)+ expect($archivedSessions.get().map(session => session.id)).toEqual(['arch-2'])+ expect($sessions.get().map(session => session.id)).toEqual(['arch-1'])+ expect($sessions.get()[0]?.archived).toBe(false)+ })++ it('routes a messaging-source row back to the messaging list, not the sessions one', async () => {+ $archivedSessions.set([archivedSession({ id: 'msg-1', source: 'telegram' } as Partial<SessionInfo>)])+ vi.mocked(setSessionArchived).mockResolvedValue({ ok: true })++ const handle = await mountHarness()++ await act(() => handle.unarchiveSession('msg-1'))++ // restoreListedSession keys off the session's own source.+ expect($sessions.get().map(session => session.id)).toEqual([])+ })++ it('passes the archived row profile to setSessionArchived', async () => {+ $archivedSessions.set([archivedSession({ profile: 'sage' } as Partial<SessionInfo>)])+ vi.mocked(setSessionArchived).mockResolvedValue({ ok: true })++ const handle = await mountHarness()++ await act(() => handle.unarchiveSession('arch-1'))++ expect(vi.mocked(setSessionArchived)).toHaveBeenCalledWith('arch-1', false, 'sage')+ })++ it('keeps the archived row when the restore RPC fails', async () => {+ $archivedSessions.set([archivedSession()])+ vi.mocked(setSessionArchived).mockRejectedValue(new Error('backend down'))++ const handle = await mountHarness()++ await act(() => handle.unarchiveSession('arch-1'))++ expect($archivedSessions.get().map(session => session.id)).toEqual(['arch-1'])+ expect($sessions.get()).toEqual([])+ })+})diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.tsindex cb55ac47dad..5bac95b9b4d 100644--- a/apps/desktop/src/i18n/ar.ts+++ b/apps/desktop/src/i18n/ar.ts@@ -2143,6 +2143,7 @@ export const ar = defineLocale({branchFrom: 'فرع',rename: 'إعادة تسمية…',archive: 'أرشفة',+ unarchive: 'إلغاء الأرشفة',newWindow: 'فتح في نافذة جديدة',openInTerminal: 'فتح في الطرفية',copyIdFailed: 'فشل نسخ المعرف',@@ -3496,6 +3497,8 @@ export const ar = defineLocale({deleteFailed: 'فشل الحذف',archived: 'تمت الأرشفة',archiveFailed: 'فشلت الأرشفة',+ restored: 'تمت الاستعادة',+ unarchiveFailed: 'فشل إلغاء الأرشفة',cwdChangeFailed: 'فشل تغيير مجلد العمل',cwdStagedTitle: 'تم تجهيز مجلد العمل',cwdStagedMessage: 'سيطبق مجلد العمل على الرسالة التالية.',diff --git a/apps/desktop/src/i18n/de.ts b/apps/desktop/src/i18n/de.tsindex 49dbb46b032..ad25099e6c0 100644--- a/apps/desktop/src/i18n/de.ts+++ b/apps/desktop/src/i18n/de.ts@@ -4042,6 +4042,7 @@ export const deOverrides = {branchFrom: 'Branch',rename: 'Umbenennen…',archive: 'Archivieren',+ unarchive: 'Archivierung aufheben',newWindow: 'Neues Fenster',openInTerminal: 'Im Terminal öffnen',hideTabBar: 'Tab-Leiste ausblenden',@@ -5944,6 +5945,8 @@ export const deOverrides = {deleteFailed: 'Löschen fehlgeschlagen',archived: 'Archiviert',archiveFailed: 'Archivieren fehlgeschlagen',+ restored: 'Wiederhergestellt',+ unarchiveFailed: 'Archivierung aufheben fehlgeschlagen',cwdChangeFailed: 'Arbeitsverzeichnis-Änderung fehlgeschlagen',cwdStagedTitle: 'Arbeitsverzeichnis bereitgestellt',cwdStagedMessage: 'Starten Sie das Desktop-Backend neu, um cwd-Änderungen auf diese aktive Session anzuwenden.',diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex a3b52cef002..30159da1b7f 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -3595,6 +3595,7 @@ export const en: Translations = {branchFrom: 'Branch',rename: 'Rename…',archive: 'Archive',+ unarchive: 'Unarchive',newWindow: 'New window',openInTerminal: 'Open in terminal',hideTabBar: 'Hide tab bar',@@ -5392,6 +5393,8 @@ export const en: Translations = {deleteFailed: 'Delete failed',archived: 'Archived',archiveFailed: 'Archive failed',+ restored: 'Restored',+ unarchiveFailed: 'Unarchive failed',cwdChangeFailed: 'Working directory change failed',cwdStagedTitle: 'Working directory staged',cwdStagedMessage: 'Restart the desktop backend to apply cwd changes to this active session.',diff --git a/apps/desktop/src/i18n/es.ts b/apps/desktop/src/i18n/es.tsindex 1e9bdaff18d..2bb94f97664 100644--- a/apps/desktop/src/i18n/es.ts+++ b/apps/desktop/src/i18n/es.ts@@ -4032,6 +4032,7 @@ export const esOverrides = {branchFrom: 'Rama',rename: 'Renombrar',archive: 'Archivar',+ unarchive: 'Desarchivar',newWindow: 'Nueva ventana',openInTerminal: 'Abrir en el terminal',hideTabBar: 'Ocultar barra de pestañas',@@ -5934,6 +5935,8 @@ export const esOverrides = {deleteFailed: 'No se pudo eliminar',archived: 'Archivado',archiveFailed: 'No se pudo archivar',+ restored: 'Restaurado',+ unarchiveFailed: 'No se pudo desarchivar',cwdChangeFailed: 'No se pudo cambiar el directorio de trabajo',cwdStagedTitle: 'Directorio de trabajo preparado',cwdStagedMessage: 'Reinicia el backend de escritorio para aplicar cambios de cwd a esta sesión activa.',diff --git a/apps/desktop/src/i18n/fr.ts b/apps/desktop/src/i18n/fr.tsindex 38d03b07ec8..f08cfc1697b 100644--- a/apps/desktop/src/i18n/fr.ts+++ b/apps/desktop/src/i18n/fr.ts@@ -4050,6 +4050,7 @@ export const frOverrides = {branchFrom: 'Branche',rename: 'Renommer',archive: 'Archiver',+ unarchive: 'Restaurer',newWindow: 'Nouvelle fenêtre',openInTerminal: 'Ouvrir dans le terminal',hideTabBar: "Masquer la barre d'onglets",@@ -5955,6 +5956,8 @@ export const frOverrides = {deleteFailed: 'Échec de la suppression',archived: 'Archivé',archiveFailed: "Échec de l'archivage",+ restored: 'Restauré',+ unarchiveFailed: 'Échec de la restauration',cwdChangeFailed: 'Échec du changement de répertoire de travail',cwdStagedTitle: "Répertoire de travail en attente d'application",cwdStagedMessage: 'Redémarrez le backend desktop pour appliquer les modifications de cwd à cette session active.',diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex d1a612b254e..6b59e8306c5 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -2524,6 +2524,7 @@ export const ja = defineLocale({branchFrom: '分岐',rename: '名前を変更…',archive: 'アーカイブ',+ unarchive: 'アーカイブを解除',newWindow: '新しいウィンドウ',openInTerminal: 'ターミナルで開く',copyIdFailed: 'セッション ID をコピーできませんでした',@@ -4010,6 +4011,8 @@ export const ja = defineLocale({deleteFailed: '削除に失敗しました',archived: 'アーカイブしました',archiveFailed: 'アーカイブに失敗しました',+ restored: '復元しました',+ unarchiveFailed: 'アーカイブ解除に失敗しました',cwdChangeFailed: '作業ディレクトリの変更に失敗しました',cwdStagedTitle: '作業ディレクトリがステージングされました',cwdStagedMessage:diff --git a/apps/desktop/src/i18n/ru.ts b/apps/desktop/src/i18n/ru.tsindex b1d869a8e74..fd1e4722163 100644--- a/apps/desktop/src/i18n/ru.ts+++ b/apps/desktop/src/i18n/ru.ts@@ -2721,6 +2721,7 @@ export const ru = defineLocale({branchFrom: 'Ветка',rename: 'Переименовать',archive: 'В архив',+ unarchive: 'Восстановить',newWindow: 'Новое окно',openInTerminal: 'Открыть в терминале',hideTabBar: 'Скрыть панель вкладок',@@ -4133,6 +4134,8 @@ export const ru = defineLocale({deleteFailed: 'Удаление не удалось',archived: 'В архиве',archiveFailed: 'Архивирование не удалось',+ restored: 'Восстановлено',+ unarchiveFailed: 'Не удалось восстановить',cwdChangeFailed: 'Изменение рабочего каталога не удалось',cwdStagedTitle: 'Рабочий каталог поставлен в очередь',cwdStagedMessage: 'Перезапустите бэкенд desktop, чтобы применить изменения cwd к этому активному сеансу.',diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex 94966b3b0ff..b6f8463be1c 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -3032,6 +3032,7 @@ export interface Translations {branchFrom: stringrename: stringarchive: string+ unarchive: stringnewWindow: stringopenInTerminal: stringhideTabBar: string@@ -4477,6 +4478,8 @@ export interface Translations {deleteFailed: stringarchived: stringarchiveFailed: string+ restored: string+ unarchiveFailed: stringcwdChangeFailed: stringcwdStagedTitle: stringcwdStagedMessage: stringdiff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.tsindex d584221093a..27f6e209225 100644--- a/apps/desktop/src/i18n/zh-hant.ts+++ b/apps/desktop/src/i18n/zh-hant.ts@@ -2741,6 +2741,7 @@ export const zhHant = defineLocale({branchFrom: '分支',rename: '重新命名…',archive: '封存',+ unarchive: '取消封存',newWindow: '新視窗',openInTerminal: '在終端機中開啟',copyIdFailed: '無法複製工作階段 ID',@@ -4154,6 +4155,8 @@ export const zhHant = defineLocale({deleteFailed: '刪除失敗',archived: '已封存',archiveFailed: '封存失敗',+ restored: '已還原',+ unarchiveFailed: '取消封存失敗',cwdChangeFailed: '工作目錄變更失敗',cwdStagedTitle: '工作目錄已暫存',cwdStagedMessage: '重新啟動桌面後端後,工作目錄變更才會套用至此作用中工作階段。',diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex e799f20079e..3675658d2db 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -3386,6 +3386,7 @@ export const zh = defineLocale({branchFrom: '分支',rename: '重命名…',archive: '归档',+ unarchive: '取消归档',newWindow: '新窗口',openInTerminal: '在终端中打开',hideTabBar: '隐藏标签栏',@@ -4975,6 +4976,8 @@ export const zh = defineLocale({deleteFailed: '删除失败',archived: '已归档',archiveFailed: '归档失败',+ restored: '已恢复',+ unarchiveFailed: '取消归档失败',cwdChangeFailed: '工作目录更改失败',cwdStagedTitle: '工作目录已暂存',cwdStagedMessage: '重启桌面后端后,工作目录更改才会应用到当前活跃会话。',