1
00:00:00,320 --> 00:00:05,444
Codex CLI zero point one seven three point
zero dropped on December second,

2
00:00:05,484 --> 00:00:10,488
twenty twenty six, and if you rely on
PreToolUse hooks to guard your workflow,

3
00:00:11,089 --> 00:00:13,971
there is a security fix in here you need
to know about.

4
00:00:15,172 --> 00:00:19,455
Before we get into the config, thanks to
Jellypod AI for sponsoring this episode.

5
00:00:20,196 --> 00:00:24,909
Now, let's look at what actually changed
in PR sixty two thousand eight hundred

6
00:00:24,909 --> 00:00:25,420
thirty one.

7
00:00:26,028 --> 00:00:31,872
You can grab this release right now with
npm install dash g at openai slash codex at

8
00:00:31,972 --> 00:00:37,035
zero point one seven three point zero, or
check the rust v zero point one seven

9
00:00:37,296 --> 00:00:38,316
three point zero tag.

10
00:00:38,937 --> 00:00:43,700
The headline change is fail closed
enforcement for PreToolUse hooks.

11
00:00:44,961 --> 00:00:50,164
Supported synchronous command and MCP tool
hooks can now set onFailure to block.

12
00:00:50,764 --> 00:00:54,767
When a PreToolUse check fails, Codex
prevents the tool from running instead of

13
00:00:54,807 --> 00:00:55,388
continuing.

14
00:00:56,347 --> 00:00:57,348
Why does this matter?

15
00:00:58,528 --> 00:01:03,036
Well, previously, as documented in GitHub
issue forty one thousand nine hundred

16
00:01:03,036 --> 00:01:08,214
seventy nine, a PreToolUse hook only
blocked execution if it returned a valid

17
00:01:08,314 --> 00:01:13,116
permissionDecision of deny, or an exit two
with a valid protocol result.

18
00:01:14,577 --> 00:01:19,260
If the hook timed out, failed to spawn,
crashed, or emitted malformed output,

19
00:01:19,780 --> 00:01:24,343
Codex logged the hook failure and then
left should_block set to false.

20
00:01:24,863 --> 00:01:26,144
It dispatched the tool anyway.

21
00:01:27,104 --> 00:01:30,586
That meant your policy hooks were least
reliable right when their process was

22
00:01:30,706 --> 00:01:31,927
unavailable or broken.

23
00:01:32,592 --> 00:01:37,396
To use this, open your hooks dot json
file, register a synchronous command or

24
00:01:37,616 --> 00:01:42,199
mcp_tool hook under PreToolUse, and set
onFailure to block.

25
00:01:43,020 --> 00:01:47,223
Make sure features dot hooks is enabled,
and then trust the hook through the slash

26
00:01:47,303 --> 00:01:48,183
hooks review flow.

27
00:01:49,144 --> 00:01:50,585
Keep a few caveats in mind, though.

28
00:01:51,165 --> 00:01:55,468
First, this only applies to supported
synchronous command and MCP tool hooks.

29
00:01:55,969 --> 00:02:00,172
If you omit onFailure, Codex preserves the
existing fail open behavior.

30
00:02:00,883 --> 00:02:06,128
Second, newly added or modified hooks
start untrusted, so they will not run until

31
00:02:06,168 --> 00:02:08,771
you explicitly trust them via slash hooks.

32
00:02:09,611 --> 00:02:14,616
And third, the release notes do not
specify the exact JSON nesting for onFailure,

33
00:02:15,096 --> 00:02:18,059
whether it sits on the handler object or
the matcher block,

34
00:02:18,980 --> 00:02:21,883
so check the schema in your local setup
rather than guessing.

35
00:02:22,530 --> 00:02:27,134
Beyond hooks, zero point one seven three
point zero packs several quality of life

36
00:02:27,174 --> 00:02:27,614
updates.

37
00:02:28,414 --> 00:02:32,778
Remember back in zero point one six six
point zero when Codex CLI introduced

38
00:02:32,818 --> 00:02:37,421
experimental local stdio MCP connection
sharing behind a feature flag?

39
00:02:38,342 --> 00:02:43,345
In PR sixty two thousand five hundred
fifty two, Codex now enables MCP connection

40
00:02:43,405 --> 00:02:48,389
sharing by default, and adds support for
older local servers that require initialize

41
00:02:48,469 --> 00:02:49,510
as their first request.

42
00:02:50,195 --> 00:02:54,998
If you manage Codex across a team, PR
sixty two thousand six hundred ninety gives

43
00:02:55,038 --> 00:02:57,479
administrators control over daemon
updates.

44
00:02:58,160 --> 00:03:02,964
You can block both scheduled and manual
daemon updates by setting features dot

45
00:03:02,964 --> 00:03:08,566
daemon_updates equal to false in your
managed requirements dot toml or local MDM

46
00:03:08,626 --> 00:03:09,006
policy.

47
00:03:11,107 --> 00:03:16,049
For terminal customization, PRs sixty two
thousand five hundred sixty nine and sixty

48
00:03:16,049 --> 00:03:20,793
two thousand six hundred thirty seven let
custom status lines align items left,

49
00:03:20,933 --> 00:03:23,915
center, or right, or spread them across
the terminal width.

50
00:03:24,913 --> 00:03:30,016
There is also a nice safety net in PR
sixty two thousand six hundred eighty seven.

51
00:03:30,376 --> 00:03:34,879
Pasting an image path now creates a
private copy, so the attachment survives even if

52
00:03:34,939 --> 00:03:37,441
you move or delete the original file
before sending.

53
00:03:39,001 --> 00:03:44,044
Finally, a few quick polish items: open
sidebar previews refresh when files change

54
00:03:44,104 --> 00:03:49,507
on disk even when an editor replaces the
file on save, the task mention picker fuzzy

55
00:03:49,607 --> 00:03:54,190
matches displayed titles, and smaller npm
packages reduce your download size.

56
00:03:55,571 --> 00:03:58,753
That is everything new in zero point one
seven three point zero.

