Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Disable hooks on windows for now (#15252)

Andrei Eternalcc192763e10f
diff --git a/codex-rs/hooks/src/engine/mod.rs b/codex-rs/hooks/src/engine/mod.rs
index e6297d71d5..24ff72990e 100644
--- a/codex-rs/hooks/src/engine/mod.rs
+++ b/codex-rs/hooks/src/engine/mod.rs
@@ -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 {