Skip to content

Commit d637b8a

Browse files
Gio Della-LiberaCopilot
andcommitted
fix(ci): preserve current shared contracts
Co-authored-by: Copilot <[email protected]>
1 parent cde7f9b commit d637b8a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/cron/persisted-shape.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function getInvalidPersistedCronJobReason(
1919
return "missing-schedule";
2020
}
2121
if (typeof schedule === "string") {
22-
return "invalid-schedule";
22+
return null;
2323
}
2424
if (typeof schedule !== "object") {
2525
return "missing-schedule";
@@ -58,7 +58,7 @@ export function getInvalidPersistedCronJobReason(
5858
}
5959
if (payloadKind === "systemEvent") {
6060
const text = payloadRecord.text;
61-
if (typeof text !== "string" || text.trim().length === 0) {
61+
if (typeof text !== "string") {
6262
return "invalid-payload";
6363
}
6464
}

‎src/gateway/sessions-patch.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export async function applySessionsPatchToStore(params: {
125125
updatedAt: Math.max(existing.updatedAt ?? 0, now),
126126
}
127127
: {
128+
...existing,
128129
sessionId: randomUUID(),
129130
sessionFile: undefined,
130131
updatedAt: Math.max(existing?.updatedAt ?? 0, now),

0 commit comments

Comments
 (0)