fix: add missing cursor field to snapshot command schema (#435)

The `-C`/`--cursor` flag was added to the CLI parser and snapshot
implementation in #374, but the Zod schema in protocol.ts was not
updated. This caused the `cursor` field to be silently stripped
during command validation, so cursor-interactive element detection
never ran.

Fixes #434
This commit is contained in:
Anion
2026-02-13 08:29:13 -06:00
committed by GitHub
parent 4b776c7ba6
commit 604c0b9632
+1
View File
@@ -719,6 +719,7 @@ const screenshotSchema = baseCommandSchema.extend({
const snapshotSchema = baseCommandSchema.extend({
action: z.literal('snapshot'),
interactive: z.boolean().optional(),
cursor: z.boolean().optional(),
maxDepth: z.number().nonnegative().optional(),
compact: z.boolean().optional(),
selector: z.string().optional(),