build: thread hookRuns through compile-only call sites

This commit is contained in:
Andrei Eternal
2026-03-03 14:15:15 -08:00
parent 37a973ecf9
commit 7482199eee
7 changed files with 18 additions and 0 deletions
@@ -198,6 +198,7 @@ pub(crate) async fn apply_bespoke_event_handling(
state.active_turn_snapshot().unwrap_or_else(|| Turn {
id: payload.turn_id.clone(),
items: Vec::new(),
hook_runs: Vec::new(),
error: None,
status: TurnStatus::InProgress,
})
@@ -1175,6 +1176,8 @@ pub(crate) async fn apply_bespoke_event_handling(
.send_server_notification(ServerNotification::ItemCompleted(notification))
.await;
}
EventMsg::HookStarted(_) => {}
EventMsg::HookCompleted(_) => {}
EventMsg::ExitedReviewMode(review_event) => {
let review = match review_event.review_output {
Some(output) => render_review_output_text(&output),
@@ -1607,6 +1610,7 @@ async fn emit_turn_completed_with_status(
turn: Turn {
id: event_turn_id,
items: vec![],
hook_runs: vec![],
error,
status,
},
@@ -4757,6 +4757,7 @@ impl CodexMessageProcessor {
let turn = Turn {
id: turn_id.clone(),
items: vec![],
hook_runs: vec![],
error: None,
status: TurnStatus::InProgress,
};
@@ -5044,6 +5045,7 @@ impl CodexMessageProcessor {
Turn {
id: turn_id,
items,
hook_runs: vec![],
error: None,
status: TurnStatus::InProgress,
}