add suicide timer in auto chat main for parent and child process don't have any communication after child process spawned in 10s.

This commit is contained in:
geekgeekrun
2024-04-05 17:18:56 +08:00
parent a72fcaf00f
commit 3a31f7d186
5 changed files with 76 additions and 9 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ export function createMainWindow(): void {
subProcessOfPuppeteer!.stdio[3]!.pipe(JSONStream.parse()).on('data', async (raw) => {
const data = raw
switch (data.type) {
case 'DAEMON_PROCESS_STARTUP': {
case 'AUTO_START_CHAT_DAEMON_PROCESS_STARTUP': {
subProcessOfPuppeteer!.stdio[3]!.write(
JSON.stringify({
type: 'GEEK_AUTO_START_CHAT_CAN_BE_RUN'