1
00:00:00,220 --> 00:00:06,484
Codex CLI 0.173.0 shipped on December
second, and if you run a self hosted

2
00:00:06,524 --> 00:00:10,107
configuration server for your team, there
is a small change in this release that

3
00:00:10,167 --> 00:00:12,048
saves a lot of bootstrap pain.

4
00:00:13,049 --> 00:00:16,991
Before we get into the config files,
thanks to Jellypod AI for sponsoring this

5
00:00:17,052 --> 00:00:17,472
episode.

6
00:00:18,533 --> 00:00:23,896
You can grab the update right now with npm
install global at openai slash codex at

7
00:00:24,016 --> 00:00:25,657
0.173.0.

8
00:00:26,418 --> 00:00:28,539
Now, here is what actually changed.

9
00:00:29,987 --> 00:00:36,878
In 0.173.0, Codex automatically discovers
OAuth endpoints published by a self

10
00:00:36,878 --> 00:00:42,912
hosted configuration server whenever you
omit the config_server.oauth table from

11
00:00:42,952 --> 00:00:44,712
your local requirements.toml.

12
00:00:45,933 --> 00:00:52,915
That is PR 62824, paired with PR 62859,
which defines the startup OAuth

13
00:00:52,956 --> 00:00:54,556
protocol for config servers.

14
00:00:55,596 --> 00:01:01,038
Previously, if your team did not sign in
to Codex with ChatGPT and instead hosted

15
00:01:01,118 --> 00:01:08,021
managed defaults and policies on your own
HTTPS endpoint, setting up OAuth with PKCE

16
00:01:08,241 --> 00:01:09,021
was tedious.

17
00:01:09,702 --> 00:01:14,563
Every single developer machine needed a
local requirements.toml that explicitly

18
00:01:14,623 --> 00:01:21,486
spelled out authorization_url, token_url,
client_id, and

19
00:01:21,566 --> 00:01:23,707
optionally redirect_port.

20
00:01:24,837 --> 00:01:25,698
Why does that matter?

21
00:01:26,278 --> 00:01:31,602
Because rolling out or rotating OAuth
settings across a fleet of laptops is way

22
00:01:31,702 --> 00:01:35,804
harder when those URLs are baked into
local admin files on every machine.

23
00:01:37,005 --> 00:01:42,028
By omitting config_server.oauth, you
shrink the client side bootstrap down to just

24
00:01:42,209 --> 00:01:43,549
the server's base_url.

25
00:01:44,330 --> 00:01:49,313
Codex hits your endpoint at GET base_url
slash codex slash config slash bundle,

26
00:01:50,114 --> 00:01:54,357
discovers the OAuth endpoints at startup,
and handles the authorization code flow

27
00:01:54,397 --> 00:01:54,757
from there.

28
00:01:55,365 --> 00:01:56,526
Let's walk through how to use it.

29
00:01:57,326 --> 00:02:00,368
On a test machine, open your system
requirements.toml.

30
00:02:00,748 --> 00:02:06,471
That lives at slash etc slash codex slash
requirements.toml on Linux and macOS,

31
00:02:06,971 --> 00:02:12,774
or ProgramData backslash OpenAI backslash
Codex backslash requirements.toml on

32
00:02:12,834 --> 00:02:13,234
Windows.

33
00:02:13,935 --> 00:02:16,816
On macOS, you can also push it through
managed preferences.

34
00:02:17,576 --> 00:02:22,859
Inside that file, you only need the
config_server table with base_url set to your

35
00:02:23,159 --> 00:02:29,963
HTTPS endpoint, like https colon slash
slash codex config dot example dot com slash

36
00:02:30,043 --> 00:02:30,363
team.

37
00:02:31,083 --> 00:02:33,965
Leave out config_server.oauth completely.

38
00:02:34,637 --> 00:02:38,320
To verify it worked, open a terminal in
your project directory,

39
00:02:38,801 --> 00:02:42,404
run codex, and complete your company sign
in if prompted.

40
00:02:43,265 --> 00:02:47,708
Then at the interactive prompt, run the
debug config slash command.

41
00:02:48,269 --> 00:02:51,892
Look under Config layer stack for your
enterprise managed defaults,

42
00:02:52,272 --> 00:02:55,275
and check Requirements to confirm your
enforced policies are active.

43
00:02:56,035 --> 00:02:57,517
Just remember a few caveats.

44
00:02:58,238 --> 00:03:02,580
First, the Codex desktop app cannot prompt
users to sign in to a configuration

45
00:03:02,620 --> 00:03:02,921
server.

46
00:03:04,261 --> 00:03:08,984
If your server requires a fresh sign in,
users have to run codex login in a terminal

47
00:03:09,104 --> 00:03:11,525
on that same machine and then reopen the
app.

48
00:03:12,045 --> 00:03:15,207
If the app cannot load required settings,
startup just pauses.

49
00:03:16,067 --> 00:03:21,030
Second, only local administrator
controlled requirements.toml or macOS managed

50
00:03:21,090 --> 00:03:24,532
preferences can select config_server.

51
00:03:24,532 --> 00:03:28,674
And third, Codex can start with cached
settings and refresh them in the background.

52
00:03:30,055 --> 00:03:33,757
So if you update a policy on the server,
wait for the refresh and start a new

53
00:03:33,857 --> 00:03:35,878
session before checking debug config.

54
00:03:36,570 --> 00:03:43,395
Alongside the OAuth discovery work,
0.173.0 packed in several quality of life fixes

55
00:03:43,415 --> 00:03:44,456
that are worth knowing about.

56
00:03:45,336 --> 00:03:51,340
First up is live policy reload on running
threads, from PRs 62585 and

57
00:03:51,460 --> 00:03:52,681
62614.

58
00:03:53,682 --> 00:03:57,744
Running threads now pick up updated
approval requirements and Guardian policies

59
00:03:57,804 --> 00:04:01,587
immediately when you reload configuration,
sign in, or sign out.

60
00:04:02,488 --> 00:04:05,690
You no longer have to kill an active
thread just to enforce a new policy.

61
00:04:06,463 --> 00:04:12,949
Next, WebSocket rejection diagnostics got
much better in PRs 62749 and

62
00:04:13,069 --> 00:04:14,651
62771.

63
00:04:15,411 --> 00:04:19,215
Codex can now report why a server rejected
a WebSocket request,

64
00:04:19,595 --> 00:04:23,578
including when a payload was too large,
even if the upload stalls or fails.

65
00:04:24,579 --> 00:04:28,463
That saves a lot of guesswork when a big
request silently dies mid flight.

66
00:04:29,112 --> 00:04:34,737
In the UI and TUI, open sidebar file
previews now refresh automatically when files

67
00:04:34,797 --> 00:04:38,500
change on disk, even when an editor
replaces the file on save.

68
00:04:40,161 --> 00:04:43,944
The Agents overview also refreshes Cloud
thread names, status,

69
00:04:44,064 --> 00:04:46,806
and unread indicators when another client
makes changes.

70
00:04:47,527 --> 00:04:51,530
And the task mention picker now fuzzy
matches the displayed titles you actually see,

71
00:04:52,150 --> 00:04:53,992
while keeping recent threads in the
results.

72
00:04:55,055 --> 00:04:59,418
Finally, terminal Markdown rendering
picked up support for multiline labels on

73
00:04:59,538 --> 00:05:03,461
Mermaid flowchart arrows, labeled
underbraces in display equations,

74
00:05:03,641 --> 00:05:05,982
and widetilde over a single character.

75
00:05:07,423 --> 00:05:12,806
Plus, PR 62643 shrinks the npm release
tarballs using libdeflate,

76
00:05:12,887 --> 00:05:15,088
so your installs and updates will be a
little bit faster.

77
00:05:16,349 --> 00:05:19,971
That is Codex CLI 0.173.0.

78
00:05:20,411 --> 00:05:23,713
Update when you are ready, and if you are
running a self hosted config server,

79
00:05:23,993 --> 00:05:25,975
try dropping that local OAuth block.

