From 664b02332f898b46361c2f12260e9713597f462f Mon Sep 17 00:00:00 2001 From: sw3205933776 <3205933776@qq.com> Date: Wed, 13 Aug 2025 15:03:47 +0800 Subject: [PATCH] fix/ui-skip-btn-min-size --- .env.development | 3 +++ electron/main/index.ts | 10 ++++++---- src/components/InstallStep/InstallDependencies.tsx | 1 - 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.env.development b/.env.development index 6de142a30..c333da04b 100644 --- a/.env.development +++ b/.env.development @@ -3,3 +3,6 @@ VITE_BASE_URL=/api VITE_PROXY_URL=https://dev.eigent.ai VITE_USE_LOCAL_PROXY=false + +# VITE_PROXY_URL=http://localhost:3001 +# VITE_USE_LOCAL_PROXY=true \ No newline at end of file diff --git a/electron/main/index.ts b/electron/main/index.ts index 096671fc0..f86477185 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -269,7 +269,7 @@ const handleDependencyInstallation = async () => { log.info(' install dependencies success, check tool installed status...'); const isToolInstalled = await checkToolInstalled(); - + log.info('isToolInstalled && !python_process', isToolInstalled && !python_process); if (isToolInstalled && !python_process) { log.info(' tool installed, start backend service...'); python_process = await startBackend((port) => { @@ -461,7 +461,7 @@ function registerIpcHandlers() { const { MCP_REMOTE_CONFIG_DIR } = getEmailFolderPath(email); const logFolderName = `task_${sanitizedTaskId}`; const logFolderPath = path.join(MCP_REMOTE_CONFIG_DIR, logFolderName); - + // Check if log folder exists if (!fs.existsSync(logFolderPath)) { return { success: false, error: 'Log folder not found' }; @@ -902,6 +902,8 @@ async function createWindow() { title: 'Eigent', width: 1200, height: 800, + minWidth: 1200, + minHeight: 800, frame: false, transparent: true, vibrancy: 'sidebar', @@ -1041,7 +1043,7 @@ const cleanupPythonProcess = async () => { if (python_process?.pid) { const pid = python_process.pid; log.info('Cleaning up Python process', { pid }); - + await new Promise((resolve) => { kill(pid, 'SIGINT', (err) => { if (err) { @@ -1068,7 +1070,7 @@ const cleanupPythonProcess = async () => { log.error('Error handling port file:', error); } } - + python_process = null; } catch (error) { log.error('Error occurred while cleaning up process:', error); diff --git a/src/components/InstallStep/InstallDependencies.tsx b/src/components/InstallStep/InstallDependencies.tsx index 27412a0f2..d18318204 100644 --- a/src/components/InstallStep/InstallDependencies.tsx +++ b/src/components/InstallStep/InstallDependencies.tsx @@ -158,7 +158,6 @@ export const InstallDependencies: React.FC<{ -