fix(hooks): compile the Unix delivery timeout only on Unix

Final-head Windows CI failed before running tests because the Unix-socket
sink timeout constant had no Windows consumer under warnings-as-errors.
Match the constant's platform guard to its existing Unix-only emit method.
Windows keeps its existing no-op sink; Unix delivery remains bounded.

Validation: hermetic hooks library 28 passed / 0 failed, including the
stalled-listener deadline; all-target/all-feature scoped CI-policy Clippy
passed. fmt/diff checks passed. JavaScript sources are unchanged from the
810 passed / 0 failed / 1 platform-skip npm test and passing check:web gate
at 8f7744e52f; no redundant rerun. Real Windows compilation/tests and final
source artifact proof remain with the newly dispatched hosted head.

Preserve the failed Windows job log; this was a source error, not a flake.
The unfinished 8f7744 dist build and its obsolete RC/shared-process workflows
were cancelled before changing root. No old binary is labeled final.

Signed-off-by: CodeWhale Bot <[email protected]>
Co-authored-by: Codex <[email protected]>
This commit is contained in:
CodeWhale BotandCodex committed 2026-09-30 23:09:03 -07:00
1 parent 8f7744e52f
commit bd8588ffff
1 file changed
+1
+1
View File
@@ -338,6 +338,7 @@ impl UnixSocketHookSink {
/// dispatcher awaits its sinks in order, so a listener that accepts and never
/// reads would otherwise stall every later sink, and the emitting turn, as
/// soon as the socket buffer filled.
#[cfg(unix)]
const UNIX_SOCKET_SINK_TIMEOUT: Duration = Duration::from_secs(2);
#[async_trait]