mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
Expose execution mode in hook listings (#37538)
## What changed - Add `executionMode` to `HookMetadata` returned by `hooks/list`, with `sync` as the default for compatibility. - Propagate each discovered hook's `sync` or `async` mode through the app-server protocol and generated schemas. - Show the execution mode in the TUI hooks browser. ## Testing - Cover async and default-sync modes in `hooks/list` tests and TUI snapshots. GitOrigin-RevId: 9c9f2890798fe417face76c15847616b2dea9db4
This commit is contained in:
@@ -558,6 +558,7 @@ fn append_matcher_groups(
|
||||
is_managed: source.is_managed,
|
||||
current_hash,
|
||||
trust_status,
|
||||
execution_mode,
|
||||
});
|
||||
if enabled
|
||||
&& (source.bypass_hook_trust
|
||||
|
||||
@@ -108,6 +108,7 @@ pub struct HookListEntry {
|
||||
pub is_managed: bool,
|
||||
pub current_hash: String,
|
||||
pub trust_status: HookTrustStatus,
|
||||
pub execution_mode: codex_protocol::protocol::HookExecutionMode,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
|
||||
Reference in New Issue
Block a user