mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-12 05:52:01 +00:00
Merge branch 'main' into 150-feature-request-history-sidebar-ux-improvement
This commit is contained in:
commit
c4fa6cda8e
3 changed files with 9 additions and 5 deletions
|
|
@ -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
|
||||
|
|
@ -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<void>((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);
|
||||
|
|
|
|||
|
|
@ -158,7 +158,6 @@ export const InstallDependencies: React.FC<{
|
|||
</DialogHeader>
|
||||
<DialogFooter>
|
||||
<Button onClick={handleInstall}>Retry</Button>
|
||||
<Button onClick={handleInstall}>Retry</Button>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue