1
00:00:00,200 --> 00:00:01,181
Quick one before we start.

2
00:00:01,601 --> 00:00:06,185
If you ran Codex against both a local
database server and a staging one,

3
00:00:06,705 --> 00:00:11,249
and you named them the same thing, did you
ever stop and wonder which one the agent

4
00:00:11,289 --> 00:00:12,390
was actually talking to?

5
00:00:13,771 --> 00:00:18,134
Yesterday's topic was auth refresh headers
in 0.170.0.

6
00:00:18,655 --> 00:00:21,977
Today it's the other half of that release,
the MCP work.

7
00:00:22,598 --> 00:00:25,020
And thanks to Jellypod AI for sponsoring
this episode.

8
00:00:25,717 --> 00:00:26,858
So, here's what changed.

9
00:00:27,498 --> 00:00:32,361
Codex CLI 0.170.0 shipped on November
18th.

10
00:00:32,881 --> 00:00:39,245
You get it with npm install dash g, at
openai slash codex at 0.170.0.

11
00:00:40,325 --> 00:00:45,228
Or the standalone installer, curl from
chatgpt dot com slash codex slash install dot

12
00:00:45,408 --> 00:00:45,688
sh.

13
00:00:46,408 --> 00:00:50,511
In the release notes, under New Features,
there's a line: experimental support for

14
00:00:50,591 --> 00:00:53,672
using identically named MCP servers across
environments.

15
00:00:54,133 --> 00:00:59,556
That's pull request 60905, titled Keep
same-named MCP servers separate across

16
00:00:59,596 --> 00:01:01,297
environments, from sayan-oai.

17
00:01:03,501 --> 00:01:04,441
Why does that matter?

18
00:01:05,382 --> 00:01:09,485
Think about a setup where your repo config
defines an MCP server called,

19
00:01:09,705 --> 00:01:11,926
say, database, pointing at local dev.

20
00:01:12,646 --> 00:01:16,389
Then a team or remote environment also
defines one called database,

21
00:01:16,509 --> 00:01:17,369
pointing at staging.

22
00:01:18,030 --> 00:01:19,971
Same logical name, different backends.

23
00:01:21,432 --> 00:01:23,793
Before this, same names meant collisions.

24
00:01:24,274 --> 00:01:28,336
One could shadow the other, and the risk
is the agent calls a tool and it lands on

25
00:01:28,336 --> 00:01:29,137
the wrong target.

26
00:01:29,777 --> 00:01:32,639
A staging migration that hits local dev is
annoying.

27
00:01:33,439 --> 00:01:34,420
The reverse is worse.

28
00:01:35,172 --> 00:01:36,674
Now, one thing I want to keep straight.

29
00:01:37,054 --> 00:01:40,077
The release note says experimental, and
that's all it says.

30
00:01:40,678 --> 00:01:42,780
I'm not going to invent a config schema
for you.

31
00:01:43,361 --> 00:01:48,125
What the note and the pull request title
tell us is the behavior: same-named servers

32
00:01:48,206 --> 00:01:50,848
are kept separate per environment instead
of colliding.

33
00:01:51,389 --> 00:01:54,051
The exact syntax could change before it
stabilizes.

34
00:01:54,903 --> 00:01:55,824
So how would you use it?

35
00:01:56,404 --> 00:01:59,846
First, upgrade in one repo where Codex
already runs.

36
00:02:00,506 --> 00:02:04,648
Second, set up your environments so the
identical server names sit in separate

37
00:02:04,668 --> 00:02:08,550
environment scopes, rather than renaming
things to work around the collision.

38
00:02:09,191 --> 00:02:13,693
Check the current Codex docs for the exact
config shape, because it's experimental.

39
00:02:15,294 --> 00:02:19,936
Third, and this is the step that matters,
look at what the session actually exposes.

40
00:02:20,517 --> 00:02:25,019
Open the tool list in your session or
subagent, and confirm the tools are bound to

41
00:02:25,039 --> 00:02:26,100
the environment you meant.

42
00:02:26,720 --> 00:02:27,620
Then read the transcript.

43
00:02:27,961 --> 00:02:31,903
When the agent calls a tool, check which
endpoint it hit, before you accept the

44
00:02:31,923 --> 00:02:32,123
diff.

45
00:02:32,842 --> 00:02:37,166
Now the part of the MCP work that's less
flashy but probably bites more people.

46
00:02:37,607 --> 00:02:44,573
Pull requests 60849 and 60981 fix MCP
OAuth credential races during cancellation,

47
00:02:44,773 --> 00:02:45,955
login, and logout.

48
00:02:46,535 --> 00:02:50,339
The first protects OAuth persistence from
stale credential writes.

49
00:02:50,339 --> 00:02:53,482
The second makes reactive token refreshes
cancellation-safe.

50
00:02:55,299 --> 00:02:56,099
Picture the failure.

51
00:02:56,560 --> 00:03:01,363
You start an OAuth handshake against a
remote MCP gateway, you cancel halfway,

52
00:03:01,663 --> 00:03:03,745
or a refresh is in flight when you log
out.

53
00:03:04,665 --> 00:03:07,507
A late write from the old attempt lands
after the new state,

54
00:03:07,707 --> 00:03:09,368
and you've got stale credentials saved.

55
00:03:10,029 --> 00:03:12,110
That's the class of problem these patches
address.

56
00:03:13,491 --> 00:03:17,774
To test it, re-run an MCP authorization
flow that exercises cancel,

57
00:03:18,114 --> 00:03:23,118
login, and logout, in that messy order,
and see whether auth sticks cleanly.

58
00:03:23,902 --> 00:03:25,723
A few smaller things in the same release.

59
00:03:26,424 --> 00:03:30,446
Oversized WebSocket requests now fall back
to HTTP immediately,

60
00:03:30,626 --> 00:03:34,189
without pointless retries, and they honor
advertised message size limits.

61
00:03:35,129 --> 00:03:39,612
Child threads and permission updates no
longer lose existing sandbox restrictions,

62
00:03:39,852 --> 00:03:41,653
which matters if you lean on subagents.

63
00:03:43,314 --> 00:03:46,876
Idle Cloud conversations reconnect after
transient stream loss,

64
00:03:47,217 --> 00:03:49,118
and active recovery turns are preserved.

65
00:03:50,018 --> 00:03:54,221
And on Windows, atomic file replacement
and permission preservation during repeated

66
00:03:54,301 --> 00:03:55,742
sandbox setup got fixed.

67
00:03:56,445 --> 00:03:57,026
The takeaway.

68
00:03:57,647 --> 00:04:02,414
Upgrade in one repo, keep the experimental
label in mind, and verify routing

69
00:04:02,434 --> 00:04:02,935
yourself.

70
00:04:03,576 --> 00:04:06,860
Don't trust a shared server name to mean
what you think it means.

71
00:04:07,481 --> 00:04:08,222
Check the transcript.

72
00:04:08,543 --> 00:04:09,824
That's the changelog for today.

