Skip to content

Commit 4b55a0e

Browse files
committed
test(release): clear beta validation blockers
1 parent 9cdf853 commit 4b55a0e

3 files changed

Lines changed: 17 additions & 7 deletions

File tree

extensions/codex/src/app-server/native-subagent-monitor.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ describe("CodexNativeSubagentMonitor", () => {
380380
const runtime = createRuntime();
381381
const monitor = new CodexNativeSubagentMonitor(client, runtime, {
382382
codexHome,
383-
transcriptPollDelaysMs: [10],
383+
transcriptPollDelaysMs: [10, 1],
384384
});
385385
monitor.registerParent({
386386
parentThreadId: "parent-thread",
@@ -400,7 +400,11 @@ describe("CodexNativeSubagentMonitor", () => {
400400

401401
expect(runtime.deliverAgentHarnessTaskCompletion).not.toHaveBeenCalled();
402402

403-
await vi.advanceTimersByTimeAsync(20);
403+
await vi.advanceTimersByTimeAsync(10);
404+
expect(runtime.deliverAgentHarnessTaskCompletion).not.toHaveBeenCalled();
405+
406+
await vi.advanceTimersByTimeAsync(1);
407+
await Promise.resolve();
404408

405409
expect(runtime.deliverAgentHarnessTaskCompletion).toHaveBeenCalledWith(
406410
expect.objectContaining({

src/agents/acp-spawn.test.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ describe("spawnAcpDirect", () => {
16761676
channel: "matrix",
16771677
accountId: input.conversation.accountId,
16781678
conversationId: "child-thread",
1679-
parentConversationId: input.conversation.parentConversationId ?? "!room:example",
1679+
parentConversationId: input.conversation.parentConversationId ?? "!room:example.org",
16801680
},
16811681
metadata: {
16821682
boundBy:
@@ -1695,10 +1695,11 @@ describe("spawnAcpDirect", () => {
16951695
thread: true,
16961696
},
16971697
{
1698-
agentSessionKey: "agent:main:matrix:channel:!room:example",
1698+
agentSessionKey: "agent:main:matrix:channel:!room:example.org",
16991699
agentChannel: "matrix",
17001700
agentAccountId: "default",
1701-
agentTo: "channel:!room:example",
1701+
agentTo: "room:!room:example.org",
1702+
agentGroupId: "!room:example.org",
17021703
},
17031704
);
17041705
expect(result.status, JSON.stringify(result)).toBe("accepted");
@@ -1707,13 +1708,13 @@ describe("spawnAcpDirect", () => {
17071708
conversation: {
17081709
channel: "matrix",
17091710
accountId: "default",
1710-
conversationId: "!room:example",
1711+
conversationId: "!room:example.org",
17111712
},
17121713
});
17131714
expectAgentGatewayCall({
17141715
deliver: true,
17151716
channel: "matrix",
1716-
to: "room:!room:example",
1717+
to: "room:!room:example.org",
17171718
threadId: "child-thread",
17181719
});
17191720
});

src/commands/tasks.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { resolveSqliteSessionStoreDatabasePath } from "../config/sessions/store-
77
import { loadSessionStore, saveSessionStore } from "../config/sessions/store.js";
88
import { saveCronStore } from "../cron/store.js";
99
import type { RuntimeEnv } from "../runtime.js";
10+
import { closeOpenClawAgentDatabasesForTest } from "../state/openclaw-agent-db.js";
1011
import { resetDetachedTaskLifecycleRuntimeForTests } from "../tasks/detached-task-runtime.js";
1112
import {
1213
createManagedTaskFlow as createManagedTaskFlowOrNull,
@@ -67,6 +68,7 @@ async function writeTaskSessionStore(
6768
) {
6869
await fs.mkdir(path.dirname(storePath), { recursive: true });
6970
await saveSessionStore(storePath, store as never, { skipMaintenance: true });
71+
closeOpenClawAgentDatabasesForTest();
7072
}
7173

7274
function readTaskSessionStore(storePath: string): Record<string, unknown> {
@@ -94,6 +96,7 @@ async function withTaskCommandStateDir(
9496
resetTaskRegistryDeliveryRuntimeForTests();
9597
resetTaskRegistryForTests({ persist: false });
9698
resetTaskFlowRegistryForTests({ persist: false });
99+
closeOpenClawAgentDatabasesForTest();
97100
try {
98101
await run(state);
99102
} finally {
@@ -103,6 +106,7 @@ async function withTaskCommandStateDir(
103106
resetTaskRegistryDeliveryRuntimeForTests();
104107
resetTaskRegistryForTests({ persist: false });
105108
resetTaskFlowRegistryForTests({ persist: false });
109+
closeOpenClawAgentDatabasesForTest();
106110
}
107111
},
108112
);
@@ -121,6 +125,7 @@ describe("tasks commands", () => {
121125
resetTaskRegistryDeliveryRuntimeForTests();
122126
resetTaskRegistryForTests({ persist: false });
123127
resetTaskFlowRegistryForTests({ persist: false });
128+
closeOpenClawAgentDatabasesForTest();
124129
});
125130

126131
it("keeps audit JSON stable and sorts combined findings before limiting", async () => {

0 commit comments

Comments
 (0)