Skip to content

Commit 6722ceb

Browse files
committed
fix(server): retain deprecated jonMode/dynamicPrompt in schema for existing documents
Existing production streamJobs documents contain these fields. Convex schema validation rejects documents with extra fields, so they must remain in the schema until a migration removes them from all documents.
1 parent 181af3f commit 6722ceb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/server/convex/schema.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ export default defineSchema({
262262
enableWebSearch: v.optional(v.boolean()),
263263
supportsToolCalls: v.optional(v.boolean()),
264264
maxSteps: v.optional(v.number()),
265+
// Deprecated: retained in schema for backward compatibility with existing documents
266+
dynamicPrompt: v.optional(v.boolean()),
267+
jonMode: v.optional(v.boolean()),
265268
})),
266269
content: v.string(),
267270
reasoning: v.optional(v.string()),

0 commit comments

Comments
 (0)