Increase timeout for CLI startup

This commit is contained in:
Shantur Rathore
2025-12-03 16:37:48 +00:00
parent d7b5f53d59
commit b35bfe63c0
3 changed files with 9 additions and 2 deletions

View File

@@ -53,12 +53,19 @@ export default defineConfig({
port: 3000, port: 3000,
}, },
build: { build: {
minify: false,
cssMinify: false,
sourcemap: true,
outDir: resolve(__dirname, "dist/renderer"), outDir: resolve(__dirname, "dist/renderer"),
rollupOptions: { rollupOptions: {
input: { input: {
main: uiRendererEntry, main: uiRendererEntry,
loading: uiRendererLoadingEntry, loading: uiRendererLoadingEntry,
}, },
output: {
compact: false,
minifyInternalExports: false,
},
}, },
}, },
}, },

View File

@@ -116,7 +116,7 @@ export class CliProcessManager extends EventEmitter {
const timeout = setTimeout(() => { const timeout = setTimeout(() => {
this.handleTimeout() this.handleTimeout()
reject(new Error("CLI startup timeout")) reject(new Error("CLI startup timeout"))
}, 15000) }, 60000)
this.once("ready", (status) => { this.once("ready", (status) => {
clearTimeout(timeout) clearTimeout(timeout)

View File

@@ -280,7 +280,7 @@ impl CliProcessManager {
let ready_clone = ready.clone(); let ready_clone = ready.clone();
let child_holder_clone = child_holder.clone(); let child_holder_clone = child_holder.clone();
thread::spawn(move || { thread::spawn(move || {
let timeout = Duration::from_secs(15); let timeout = Duration::from_secs(60);
thread::sleep(timeout); thread::sleep(timeout);
if ready_clone.load(Ordering::SeqCst) { if ready_clone.load(Ordering::SeqCst) {
return; return;