Add headless mode flag and fix queued sends; verify live end-to-end

This commit is contained in:
agent
2026-09-11 13:29:43 +02:00
parent 2830bd1ade
commit 2a15f057df
4 changed files with 30 additions and 6 deletions
+3 -3
View File
@@ -129,10 +129,10 @@ if (!app.requestSingleInstanceLock({ IS_DEV })) {
}
async function bootstrap() {
if (!Object.hasOwn(State.store, "firstLaunch")) {
createFirstLaunchTour();
} else {
if (process.env.VESKSLOP_HEADLESS === "1" || Object.hasOwn(State.store, "firstLaunch")) {
createWindows();
} else {
createFirstLaunchTour();
}
}
+2 -2
View File
@@ -76,7 +76,7 @@ onIpcCommand(IpcCommands.MESSAGE_SEND, async (data: { channelId?: string; conten
throw new Error("message:send requires { channelId, content }");
}
await sendMessage(data.channelId, { content: data.content });
await sendMessage(data.channelId, { content: data.content }, false);
return { channelId: data.channelId, sent: true };
});
@@ -115,6 +115,6 @@ onIpcCommand(IpcCommands.DM_SEND, async (data: { userId?: string; content?: stri
if (!channelId) throw new Error(`No DM channel for user ${data.userId} yet`);
await sendMessage(channelId, { content: data.content });
await sendMessage(channelId, { content: data.content }, false);
return { userId: data.userId, channelId, sent: true };
});