From 604c0b9632a9ee45b80a8f16a4c50dd8da721c5d Mon Sep 17 00:00:00 2001 From: Anion <1005128408@qq.com> Date: Fri, 13 Feb 2026 22:29:13 +0800 Subject: [PATCH] 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 --- src/protocol.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/protocol.ts b/src/protocol.ts index 7e9cde8..222c3c6 100644 --- a/src/protocol.ts +++ b/src/protocol.ts @@ -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(),