fix: restore discord startup logging and boundary bootstrap

This commit is contained in:
Peter Steinberger
2026-04-04 00:14:08 +01:00
parent 0f18e44538
commit de2eaccfce
5 changed files with 17 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
{
"originHash" : "1c9c9d251b760ed3234ecff741a88eb4bf42315ad6f50ac7392b187cf226c16c",
"originHash" : "fb90e7b1977f43661ac91681d16da11f9ddd85630407ef170eaada0a6ee39972",
"pins" : [
{
"identity" : "axorcist",
@@ -24,7 +24,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/steipete/ElevenLabsKit",
"state" : {
"revision" : "c8679fbd37416a8780fe43be88a497ff16209e2d",
"revision" : "7e3c948d8340abe3977014f3de020edf221e9269",
"version" : "0.1.0"
}
},

View File

@@ -1063,6 +1063,14 @@ export async function monitorDiscordProvider(opts: MonitorDiscordOpts = {}) {
eventQueueListenerTimeoutMs: eventQueueOpts.listenerTimeout,
});
logDiscordStartupPhase({
runtime,
accountId: account.accountId,
phase: "client-start",
startAt: startupStartedAt,
gateway: lifecycleGateway,
});
const botIdentity =
botUserId && botUserName ? `${botUserId} (${botUserName})` : (botUserId ?? botUserName ?? "");
runtime.log?.(

2
pnpm-lock.yaml generated
View File

@@ -604,6 +604,8 @@ importers:
extensions/speech-core: {}
extensions/stepfun: {}
extensions/synology-chat: {}
extensions/synthetic: {}

View File

@@ -12,12 +12,12 @@ describe("loadBoundaryIncludePatternsFromEnv", () => {
});
describe("boundary vitest config", () => {
it("keeps boundary suites on the shared runner without global setup", () => {
it("keeps boundary suites on the shared runner with shared test bootstrap", () => {
const config = createBoundaryVitestConfig({});
expect(config.test?.isolate).toBe(false);
expect(config.test?.runner).toBe("./test/non-isolated-runner.ts");
expect(config.test?.include).toEqual(boundaryTestFiles);
expect(config.test?.setupFiles).toEqual([]);
expect(config.test?.setupFiles).toEqual(["test/setup.ts"]);
});
});

View File

@@ -18,9 +18,9 @@ export function createBoundaryVitestConfig(env: Record<string, string | undefine
isolate: false,
runner: "./test/non-isolated-runner.ts",
include: loadBoundaryIncludePatternsFromEnv(env) ?? boundaryTestFiles,
// Keep this lane free of OpenClaw runtime bootstrap so pure infra/boundary
// suites can avoid plugin/channel setup import cost.
setupFiles: [],
// Boundary workers still need the shared isolated HOME/bootstrap. Only
// per-file module isolation is disabled here.
setupFiles: sharedVitestConfig.test.setupFiles,
},
});
}