Skip to content

Commit 237c025

Browse files
authored
fix(server): make time field optional in session update validator (anomalyco#5372)
1 parent a9f2737 commit 237c025

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/opencode/src/server/server.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,9 +791,11 @@ export namespace Server {
791791
"json",
792792
z.object({
793793
title: z.string().optional(),
794-
time: z.object({
795-
archived: z.number().optional(),
796-
}),
794+
time: z
795+
.object({
796+
archived: z.number().optional(),
797+
})
798+
.optional(),
797799
}),
798800
),
799801
async (c) => {

0 commit comments

Comments
 (0)