refactor: inline project layer detection in hook discovery

This commit is contained in:
viyatb-oai
2026-04-07 12:25:00 -07:00
parent ac0800ed36
commit f94384e81a
2 changed files with 2 additions and 5 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
use std::fs;
use std::path::Path;
use codex_app_server_protocol::ConfigLayerSource;
use codex_config::ConfigLayerStack;
use codex_config::ConfigLayerStackOrdering;
@@ -94,7 +95,7 @@ pub(crate) fn discover_handlers(config_layer_stack: Option<&ConfigLayerStack>) -
&mut warnings,
&mut display_order,
source_path.as_path(),
layer.is_project_layer(),
matches!(layer.name, ConfigLayerSource::Project { .. }),
event_name,
groups,
);