fix: avoid repeated macOS privacy prompts (#1524)

* fix: avoid repeated macos privacy prompts

* fix: reduce background worktree permission probes

* chore: pin oxlint for ci

* fix: preserve optional rpc params with zod 4.4

* fix: preserve optional inline rpc params with zod 4.4
This commit is contained in:
Neil
2026-05-06 23:30:03 -07:00
committed by GitHub
parent 43a258951f
commit 7b83b2dcdc
28 changed files with 532 additions and 208 deletions
@@ -60,6 +60,7 @@ export const Screenshot = BrowserTarget.extend({
export const FullScreenshot = BrowserTarget.extend({
format: z
.unknown()
.optional()
.transform((v) => (v === 'jpeg' ? 'jpeg' : 'png'))
.pipe(z.enum(['png', 'jpeg']))
})
@@ -166,6 +167,7 @@ export const Check = BrowserTarget.extend({
element: requiredString('Missing required --element'),
checked: z
.unknown()
.optional()
.transform((v) => v !== false)
.pipe(z.boolean())
})