Skip to content

Instantly share code, notes, and snippets.

View heeen's full-sized avatar
🥨

Florian Hänel heeen

🥨
View GitHub Profile
@heeen
heeen / patch-cli.js
Created January 12, 2026 23:03
Patch for Claude Code issue #6237 - fixes freeze on /dev/* device paths
#!/usr/bin/env node
/**
* Patch Claude Code CLI to fix device file blocking issue
* https://github.com/anthropics/claude-code/issues/6237
*
* This patches the minified cli.js directly to skip /dev/* paths
* when reading files extracted from bash output.
*
* Usage:
* node patch-cli.js # Patch installed CLI
use winit::{
event::{Event, WindowEvent},
event_loop::{ControlFlow},
};
use std::cell::RefCell;
pub struct ExampleBase {
pub window: winit::window::Window,
pub event_loop: RefCell<winit::event_loop::EventLoop<()>>,
pub test: i32,