codex icon indicating copy to clipboard operation
codex copied to clipboard

[codex] Show hook execution mode in app-server and TUI

Open abhinav-oai opened this issue 5 months ago • 0 comments

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 HookMetadata gains an executionMode field with the value sync or async
  • live hooks/list responses always include the field, while deserializing older metadata without it defaults to sync
  • the generated JSON and TypeScript schemas include the field
  • the TUI hook details view displays Mode: Sync or Mode: Async

abhinav-oai avatar Jun 12 '26 05:06 abhinav-oai