mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-15 19:21:08 +00:00
fix: restore ci type compatibility
This commit is contained in:
@@ -170,7 +170,18 @@ describe("subagent registry persistence resume", () => {
|
||||
|
||||
await flushQueuedRegistryWork();
|
||||
|
||||
const announce = announceSpy.mock.lastCall?.[0];
|
||||
const announceCalls = announceSpy.mock.calls as unknown as Array<[unknown]>;
|
||||
const announce = (announceCalls.at(-1)?.[0] ?? undefined) as
|
||||
| {
|
||||
childRunId?: string;
|
||||
childSessionKey?: string;
|
||||
requesterSessionKey?: string;
|
||||
requesterOrigin?: { channel?: string; accountId?: string };
|
||||
task?: string;
|
||||
cleanup?: string;
|
||||
outcome?: { status?: string };
|
||||
}
|
||||
| undefined;
|
||||
if (announce) {
|
||||
expect(announce).toMatchObject({
|
||||
childRunId: "run-1",
|
||||
|
||||
@@ -88,7 +88,7 @@ export function isAcpSessionKey(sessionKey: string | undefined | null): boolean
|
||||
if (!raw) {
|
||||
return false;
|
||||
}
|
||||
const normalized = normalizeOptionalLowercaseString(raw);
|
||||
const normalized = normalizeLowercaseStringOrEmpty(raw);
|
||||
if (normalized.startsWith("acp:")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user