codex
codex copied to clipboard
[codex] Show hook execution mode in app-server and TUI
Stack 3/3: #27771 → #27452 → this PR
Purpose
Once hooks can run asynchronously, inspection surfaces need to show whether a handler runs synchronously or in the background.
This PR adds that visibility without changing hook execution, scheduling, or delivery behavior.
What changes
- v2
HookMetadatagains anexecutionModefield with the valuesyncorasync - live
hooks/listresponses always include the field, while deserializing older metadata without it defaults tosync - the generated JSON and TypeScript schemas include the field
- the TUI hook details view displays
Mode: SyncorMode: Async