Disable hooks on windows for now (#15252)

We'll verify a bit later that all of this works correctly and re-enable
This commit is contained in:
Andrei Eternal 2026-03-19 21:31:56 -07:00 committed by GitHub
parent f7201e5a9f
commit cc192763e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,6 +74,17 @@ impl ClaudeHooksEngine {
};
}
if cfg!(windows) {
return Self {
handlers: Vec::new(),
warnings: vec![
"Disabled `codex_hooks` for this session because `hooks.json` lifecycle hooks are not supported on Windows yet."
.to_string(),
],
shell,
};
}
let _ = schema_loader::generated_hook_schemas();
let discovered = discovery::discover_handlers(config_layer_stack);
Self {