Apply argument comment lint across codex-rs

This commit is contained in:
Michael Bolin
2026-03-13 18:45:09 -07:00
parent 4e594bc93b
commit 2e751fd1d2
208 changed files with 1652 additions and 944 deletions
+5 -4
View File
@@ -26,9 +26,10 @@ pub(crate) fn discover_handlers(config_layer_stack: Option<&ConfigLayerStack>) -
let mut warnings = Vec::new();
let mut display_order = 0_i64;
for layer in
config_layer_stack.get_layers(ConfigLayerStackOrdering::LowestPrecedenceFirst, false)
{
for layer in config_layer_stack.get_layers(
ConfigLayerStackOrdering::LowestPrecedenceFirst,
/*include_disabled=*/ false,
) {
let Some(folder) = layer.config_folder() else {
continue;
};
@@ -87,7 +88,7 @@ pub(crate) fn discover_handlers(config_layer_stack: Option<&ConfigLayerStack>) -
&mut display_order,
source_path.as_path(),
codex_protocol::protocol::HookEventName::Stop,
None,
/*matcher=*/ None,
group.hooks,
);
}
+13 -5
View File
@@ -50,10 +50,14 @@ pub(crate) fn preview(
handlers: &[ConfiguredHandler],
_request: &StopRequest,
) -> Vec<HookRunSummary> {
dispatcher::select_handlers(handlers, HookEventName::Stop, None)
.into_iter()
.map(|handler| dispatcher::running_summary(&handler))
.collect()
dispatcher::select_handlers(
handlers,
HookEventName::Stop,
/*session_start_source=*/ None,
)
.into_iter()
.map(|handler| dispatcher::running_summary(&handler))
.collect()
}
pub(crate) async fn run(
@@ -61,7 +65,11 @@ pub(crate) async fn run(
shell: &CommandShell,
request: StopRequest,
) -> StopOutcome {
let matched = dispatcher::select_handlers(handlers, HookEventName::Stop, None);
let matched = dispatcher::select_handlers(
handlers,
HookEventName::Stop,
/*session_start_source=*/ None,
);
if matched.is_empty() {
return StopOutcome {
hook_events: Vec::new(),