mirror of
https://github.com/openai/codex.git
synced 2026-11-18 23:02:23 +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:
1 parent
6f647caa9b
commit
3aae5d885b
23 files changed
+75
-3
No files matched your search
@@ -28,8 +28,11 @@ v2_enum_from_core!(
|
||||
);
|
||||
|
||||
v2_enum_from_core!(
|
||||
#[derive(Default)]
|
||||
pub enum HookExecutionMode from CoreHookExecutionMode {
|
||||
Sync, Async
|
||||
#[default]
|
||||
Sync,
|
||||
Async
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user