diff --git a/src/App.tsx b/src/App.tsx
index 1dc21328..69bbd12d 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -248,7 +248,10 @@ function App() {
const handlePaletteOpenFile = useCallback(
(path: string) => {
const name = path.split(/[\\/]/).pop() ?? path
- layoutStore.openFilePreview({ path, name, directory: currentDirectory })
+ layoutStore.openFileTab(
+ { path, name, directory: currentDirectory, serverId: serverStore.getActiveServerId() },
+ 'right',
+ )
},
[currentDirectory],
)
diff --git a/src/components/BottomPanel.tsx b/src/components/BottomPanel.tsx
index f41d6974..9af18609 100644
--- a/src/components/BottomPanel.tsx
+++ b/src/components/BottomPanel.tsx
@@ -15,6 +15,7 @@ const SessionChangesPanel = lazy(() =>
)
const ContextPanel = lazy(() => import('./ContextPanel').then(module => ({ default: module.ContextPanel })))
const FileExplorer = lazy(() => import('./FileExplorer').then(module => ({ default: module.FileExplorer })))
+const FileViewer = lazy(() => import('./FileViewer').then(module => ({ default: module.FileViewer })))
const McpPanel = lazy(() => import('./McpPanel').then(module => ({ default: module.McpPanel })))
const SkillPanel = lazy(() => import('./SkillPanel').then(module => ({ default: module.SkillPanel })))
const WorktreePanel = lazy(() => import('./WorktreePanel').then(module => ({ default: module.WorktreePanel })))
@@ -84,7 +85,6 @@ export const BottomPanel = memo(function BottomPanel({ directory, serverId, term
{t('workspace.terminalFontSizeTouchHint')}
+ )} +