From 74fa6881ea74cd4385d8f35e5a28600ad6f1f171 Mon Sep 17 00:00:00 2001 From: m4 Date: Thu, 17 Sep 2026 23:08:53 +0800 Subject: [PATCH] style(desktop): fix import order in office-open touched files Co-Authored-By: Claude Opus 4.7 --- apps/desktop/electron/fs-ipc-open-external.test.ts | 1 + apps/desktop/electron/fs-ipc.ts | 2 +- apps/desktop/src/app/right-sidebar/files/tree.tsx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/desktop/electron/fs-ipc-open-external.test.ts b/apps/desktop/electron/fs-ipc-open-external.test.ts index 9a54b18549..29281f56a9 100644 --- a/apps/desktop/electron/fs-ipc-open-external.test.ts +++ b/apps/desktop/electron/fs-ipc-open-external.test.ts @@ -71,6 +71,7 @@ it('registers hermes:fs:openExternal and routes local paths through the resolver it('stages byte payloads under /external-open', async () => { const handler = handlerFor('hermes:fs:openExternal') + const result = (await handler({}, { data: [0x50, 0x4b], ext: '.docx', name: 'remote doc' })) as { ok: boolean path?: string diff --git a/apps/desktop/electron/fs-ipc.ts b/apps/desktop/electron/fs-ipc.ts index 76b3961d5d..e3c5d3749f 100644 --- a/apps/desktop/electron/fs-ipc.ts +++ b/apps/desktop/electron/fs-ipc.ts @@ -14,8 +14,8 @@ import { migrateProfileScopedDesktopPlugins, reconcileUnifiedDesktopHalves } from './desktop-plugins-root' -import { readDirForIpc } from './fs-read-dir' import { openExternalFileForIpc, type OpenExternalFilePayload } from './fs-open-external' +import { readDirForIpc } from './fs-read-dir' import { gitRootForIpc } from './git-root' export interface FsIpcDeps { diff --git a/apps/desktop/src/app/right-sidebar/files/tree.tsx b/apps/desktop/src/app/right-sidebar/files/tree.tsx index 9916bf79b7..de3fcadb84 100644 --- a/apps/desktop/src/app/right-sidebar/files/tree.tsx +++ b/apps/desktop/src/app/right-sidebar/files/tree.tsx @@ -7,8 +7,8 @@ import { TreeSkeleton } from '@/components/chat/skeletons' import { Codicon } from '@/components/ui/codicon' import { markRightPanePerf } from '@/debug/right-pane-events' import { useResizeObserver } from '@/hooks/use-resize-observer' -import { cn } from '@/lib/utils' import { isOfficeFilePath, openFileWithSystemApp } from '@/lib/office-files' +import { cn } from '@/lib/utils' import { type RepoChangeKind, repoChangeKindForPath } from '@/store/coding-status' import { $renamingPath, beginInlineRename } from '@/store/file-actions' import { $revealInTreeRequest } from '@/store/layout'