Skip to content

Instantly share code, notes, and snippets.

View mrtoxas's full-sized avatar

Anton Bojko mrtoxas

View GitHub Profile
@mrtoxas
mrtoxas / README.md
Created December 16, 2025 22:09
Fix for Wrangler "write EOF" Error on Windows

Fix for Wrangler "write EOF" Error on Windows

Problem

Any project using Wrangler fails with write EOF error on Windows:

Astro with Cloudflare adapter:

pnpm astro dev
[@astrojs/cloudflare] An unhandled error occurred while running the "astro:server:setup" hook
write EOF
@mrtoxas
mrtoxas / README.md
Created September 28, 2026 13:08
Close a Base UI combobox (not the dialog) on the first overlay click the fix and why isOpen guards fail.

Combobox inside a Base UI dialog: overlay click closes the combobox first, then the dialog

A solution for the shadcn-on-Base-UI pair Dialog + Combobox, where the combobox is open inside a modal. Expected behavior: the first click on the overlay closes only the combobox, the second one closes the dialog.

Verified on @base-ui/react@1.8.0 (Astro 7 + React 19, but nothing framework-specific).

Why an isComboboxOpen guard doesn't work