From b75f954b0f7e131812bb4b105037c2295b0b8225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Thu, 5 Mar 2026 00:30:30 +0000 Subject: [PATCH] open ocr/tts/transcribe results in dual panels from file browser Co-Authored-By: Claude Opus 4.6 --- .../apps/FileBrowser/FileBrowserApp/useFileBrowserApp.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/useFileBrowserApp.ts b/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/useFileBrowserApp.ts index 1a8b6504..c55e616d 100644 --- a/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/useFileBrowserApp.ts +++ b/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/useFileBrowserApp.ts @@ -417,7 +417,7 @@ export const useFileBrowserApp = (basePath: string, rootOverride?: string, initi const { audioPath } = await files.tts(filePath, { saveNextTo: true }); toast.dismiss(toastId); refresh(); - setSearchParams({ view: audioPath }); + setSearchParams({ view: filePath, ephemeral: audioPath }); } catch { toast.error('Failed to generate speech audio', { id: toastId }); } @@ -430,7 +430,7 @@ export const useFileBrowserApp = (basePath: string, rootOverride?: string, initi const { ocrPath } = await files.ocr(filePath, { saveNextTo: true }); toast.dismiss(toastId); refresh(); - setSearchParams({ view: ocrPath }); + setSearchParams({ view: filePath, ephemeral: ocrPath }); } catch { toast.error('Failed to extract text from image', { id: toastId }); } @@ -443,7 +443,7 @@ export const useFileBrowserApp = (basePath: string, rootOverride?: string, initi const { transcriptionPath } = await files.transcribe(filePath, { saveNextTo: true }); toast.dismiss(toastId); refresh(); - setSearchParams({ view: transcriptionPath }); + setSearchParams({ view: filePath, ephemeral: transcriptionPath }); } catch { toast.error('Failed to transcribe audio', { id: toastId }); }