fix(ai): share AI log opening route

This commit is contained in:
digua committed 2026-07-02 10:35:02 +08:00
1 parent b18181b514
commit 70ada5031c
11 files changed
+131 -58

No files matched your search

+2
View File
@@ -47,6 +47,7 @@ import { registerImportRoutes } from './import'
import { openDirectoryPath, showPathInFolder } from './cache'
import { getVersion } from '../../../version'
import { buildWebUpdateCheckResult } from './update-check'
import { getServerAiLogger } from '../../../ai/logger'
export interface AiContextOptions {
aiDataDir: string
@@ -121,6 +122,7 @@ export function registerWebRoutes(
nativeBinding: options?.nativeBinding,
semanticIndexService,
analyticsService,
getCurrentAiLogPath: () => getServerAiLogger()?.getExistingLogPath() ?? null,
openDirectory: openDirectoryPath,
showInFolder: showPathInFolder,
downloadsDir: resolvedPathProvider.getDownloadsDir(),