fix: add missing modelProvider and modelName to nextEditWithHistory event

Adds missing modelProvider and modelName fields to make the schema
consistent with other dev data events.

Fixes CON-3402

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Patrick Erichsen 2025-08-12 20:50:15 -07:00
parent 4307010ab1
commit 217aa2d265
2 changed files with 4 additions and 0 deletions

View file

@ -15,4 +15,6 @@ export const nextEditEventAllSchema = baseDevDataAllSchema.extend({
beforeCursorPos: z.object({ line: z.number(), character: z.number() }),
afterCursorPos: z.object({ line: z.number(), character: z.number() }),
context: z.string(),
modelProvider: z.string(),
modelName: z.string(),
});

View file

@ -18,6 +18,8 @@ export const nextEditEventSchema_0_2_0 = nextEditEventAllSchema.pick({
beforeCursorPos: true,
afterCursorPos: true,
context: true,
modelProvider: true,
modelName: true,
});
export const nextEditEventSchema_0_2_0_noCode = nextEditEventSchema_0_2_0.omit({