fix: restore ci type compatibility

This commit is contained in:
Peter Steinberger
2026-04-07 13:35:33 +01:00
parent 62793e6027
commit 602e45af94
2 changed files with 13 additions and 2 deletions

View File

@@ -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",

View File

@@ -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;
}