Abhinav
9ab7f4e6ac
Add Windows hook command overrides ( #22159 )
...
# Why
Managed hook configs need a shared cross-platform shape without making
the existing `command` field polymorphic. The common case is still one
command string, with Windows needing a different entrypoint only when
the runtime is actually Windows.
Keeping `command` as the portable/default path and adding an optional
Windows override keeps the config easier to read, preserves the existing
scalar shape for non-Windows users, and avoids forcing every caller into
a `{ unix, windows }` object when only one platform needs special
handling.
# What
- Add optional `command_windows` / `commandWindows` alongside the
existing hook `command` field.
- Resolve `command_windows` only on Windows during hook discovery; other
platforms continue to use `command` unchanged.
- Keep trust hashing aligned to the effective command selected for the
current runtime.
# Docs
The Codex hooks/config reference should document `command_windows` as
the Windows-only override for command hooks.
2026-05-11 22:22:29 +00:00
..
2026-05-11 10:49:19 -07:00
2026-03-28 11:23:07 -06:00
2026-05-11 11:34:52 -07:00
2026-05-11 19:08:26 +00:00
2026-05-05 11:17:47 -07:00
2026-05-06 18:08:31 -07:00
2026-05-01 09:39:48 -07:00
2026-05-09 16:10:56 -03:00
2026-04-21 17:10:36 +00:00
2026-05-04 16:11:15 -03:00
2026-04-07 08:03:35 -07:00
2026-04-30 22:42:48 -07:00
2026-05-05 13:32:54 -07:00
2026-05-10 20:42:11 +00:00
2026-05-05 11:17:47 -07:00
2026-05-10 20:42:11 +00:00
2026-05-10 11:45:49 -03:00
2026-04-30 11:34:34 -07:00
2026-05-05 11:17:47 -07:00
2026-05-06 08:35:42 -07:00
2026-04-30 11:34:34 -07:00
2026-05-11 10:49:19 -07:00
2026-04-30 11:34:34 -07:00
2026-05-11 09:47:51 -07:00
2026-05-10 20:42:11 +00:00
2026-04-30 10:52:19 -07:00
2026-04-13 18:27:00 -07:00
2026-04-10 20:25:31 -07:00
2026-05-07 20:31:41 -07:00
2026-05-04 16:11:15 -03:00
2026-05-11 11:34:52 -07:00
2026-04-20 16:12:17 -07:00
2026-05-05 16:18:02 +00:00
2026-03-28 11:23:07 -06:00
2026-04-29 17:22:41 -07:00
2026-03-28 11:23:07 -06:00
2026-05-02 01:20:57 +00:00
2026-04-25 22:00:32 -03:00
2026-05-11 22:22:29 +00:00
2026-04-30 10:52:19 -07:00
2026-04-30 11:34:34 -07:00
2026-03-28 11:23:07 -06:00
2026-04-17 17:58:32 -07:00
2026-05-09 16:10:56 -03:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-05-05 17:09:25 -03:00
2026-04-30 22:42:07 -07:00
2026-05-10 20:42:11 +00:00
2026-05-09 21:17:30 +00:00
2026-05-01 09:39:48 -07:00
2026-05-09 13:58:10 -03:00
2026-05-04 19:18:56 +00:00
2026-05-04 19:18:56 +00:00
2026-05-05 11:17:47 -07:00
2026-05-11 11:32:40 -07:00
2026-03-28 11:23:07 -06:00
2026-04-13 18:27:00 -07:00
2026-04-21 22:33:24 -07:00
2026-04-30 11:34:34 -07:00
2026-05-10 20:42:11 +00:00
2026-05-10 20:42:11 +00:00
2026-05-10 20:42:11 +00:00
2026-05-10 20:42:11 +00:00
2026-04-19 22:39:53 -07:00
2026-04-29 17:22:41 -07:00
2026-04-25 22:00:32 -03:00
2026-05-01 09:07:56 -07:00
2026-04-30 11:34:34 -07:00
2026-04-25 17:09:29 -07:00
2026-04-10 20:25:31 -07:00
2026-05-05 11:17:47 -07:00
2026-04-30 11:34:34 -07:00
2026-04-25 22:00:32 -03:00
2026-05-06 22:48:29 -07:00
2026-03-28 11:23:07 -06:00
2026-04-10 20:25:31 -07:00
2026-05-04 11:46:03 -07:00
2026-05-06 08:35:42 -07:00
2026-03-28 11:23:07 -06:00
2026-04-20 20:46:55 -07:00
2026-05-08 20:09:51 +03:00
2026-05-09 21:17:30 +00:00
2026-05-01 09:07:56 -07:00
2026-05-09 16:10:56 -03:00
2026-05-10 20:42:11 +00:00
2026-05-02 01:20:57 +00:00
2026-05-02 01:20:57 +00:00
2026-04-17 08:39:37 -07:00
2026-03-28 11:23:07 -06:00
2026-04-30 11:34:34 -07:00
2026-03-28 11:23:07 -06:00
2026-04-30 22:42:48 -07:00
2026-05-08 07:56:13 -07:00
2026-04-20 00:37:40 +00:00
2026-04-25 22:00:32 -03:00
2026-05-07 02:48:49 +00:00
2026-03-28 11:23:07 -06:00
2026-04-27 23:33:59 -07:00
2026-04-25 22:00:32 -03:00
2026-04-25 17:09:29 -07:00
2026-04-25 17:09:29 -07:00
2026-03-28 11:23:07 -06:00
2026-04-30 11:34:34 -07:00
2026-04-25 22:00:32 -03:00
2026-05-05 17:09:25 -03:00
2026-05-09 13:58:10 -03:00