feat(client): sync digital employee outbox

This commit is contained in:
baiyanyun
2026-06-05 17:11:10 +08:00
parent f8048724c4
commit b9132c421d
7 changed files with 453 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ import { initAutoUpdater } from "./services/autoUpdater";
import { migrateDataDir, migrateSettingsPaths } from "./bootstrap/migrate";
import { getDeviceId, logSystemInfo } from "./services/system/deviceId";
import { initWebviewPolicy } from "./services/system/webviewPolicy";
import { stopDigitalEmployeeSyncWorker } from "./services/digitalEmployee/syncService";
// macOS 26 Tahoe 兼容性:禁用 Fontations 字体后端
// 参考: https://github.com/electron/electron/issues/49522
@@ -574,6 +575,7 @@ app.on("before-quit", (e) => {
log.info(
"[App] Before quit - update install in progress, skipping preventDefault to allow installer",
);
stopDigitalEmployeeSyncWorker();
closeDb();
return;
}
@@ -586,6 +588,7 @@ app.on("before-quit", (e) => {
void (async () => {
const start = Date.now();
try {
stopDigitalEmployeeSyncWorker();
await cleanupAllProcesses();
} finally {
const elapsed = Date.now() - start;