The Codex Changelog
All Episodes

Codex 0.146.0: Remote Execution Over WebSockets

This episode explores Codex 0.146.0’s native WebSocket support for offloading heavy code execution to remote hosts, keeping local machines lightweight while enabling fast bidirectional streaming. It also covers reconnection handling, proxy pitfalls, and terminal UI polish like cleaner headers, clickable wrapped links, and non-blocking Control-C.

Show Notes


Chapter 1

Offloading Code Mode Execution Over WebSockets

Ethan Park

Your laptop fan starts screaming like a jet engine, the, uh, local subshell binary hangs on a massive compilation step, and suddenly your whole local environment is just locked up . We have all been there. Huge shoutout to Jellypod for helping us bring you this show every day, because today we are talking about how Codex zero point one hundred forty six point zero finally fixes that headache.

Maya

Oh man, the dreaded local laptop meltdown. Wait, so what actually changed under the hood in zero point fourteen six?

Ethan Park

So PR thirty five thousand seventy eight and thirty five thousand ninety eight brought in native WebSocket support. You can now connect app server to remote Code Mode hosts over WebSocket, using ws or wss protocol schemes.

Maya

Wait, connect app server to remote Code Mode hosts over WebSocket? So instead of spawning that local codex code mode host wrapper or piping through fragile raw subshells on your own machine, it just streams straight out to a remote server?

Ethan Park

Exactly. It completely decouples the tool execution engine from your local machine. You can run a super lightweight IDE extension or local terminal, and hand off all the heavy lifts, like running test suites or containerized builds, to a beefy cloud devbox or a remote Kubernetes pod.

Maya

That is huge for thin client setups. How do you actually point Codex to a remote box then? Is it just a single config setting?

Ethan Park

Pretty much, yeah. You set your remote Code Mode host URI in your configuration, something like wss colon slash slash code mode dot internal dot net, port eighty eighty, slash v1 slash ws. When app server boots, it initiates a clean authenticated WebSocket handshake directly to that endpoint. No extra local host process required.

Maya

So your laptop stays completely cool, and all the actual execution happens somewhere else with low latency bidirectional streaming back to your terminal.

Ethan Park

Right. But, uh, moving your execution across the network brings its own set of weird quirks, especially once corporate networks get involved .

Chapter 2

Proxy Traps and Terminal UI Enhancements

Maya

Ah, right! Enterprise firewalls! I bet those classic corporate middleboxes love messing with WebSocket connections.

Ethan Park

Oh, absolutely. If an enterprise reverse proxy strips out the HTTP Connection Upgrade header, that WebSocket handshake just drops dead silently. And if a socket disconnects abruptly mid execution, you risk leaving orphaned container processes churning away on your remote server.

Maya

That sounds like a nightmare for resource leaks. Did they add anything in this release to deal with unstable connections?

Ethan Park

They did. PR thirty four thousand seven hundred sixty three introduced automated reconnection logic. If a network blip happens or response frames drop mid turn, Codex automatically retries the WebSocket connection and attempts to restore state without crashing your active session.

Maya

That is such a relief. What about the actual terminal experience? Were there any other polish updates in zero point fourteen six?

Ethan Park

A bunch of really nice quality of life fixes, actually. PR thirty four thousand seven hundred seventy five clamps session headers when you are working in super narrow terminal layouts, so text stopped getting garbled. Then PR thirty four thousand seven hundred seventy eight coalesces wrapped OSC eight hyperlinks.

Maya

Wait, OSC eight links? You mean when a long URL wraps across two lines in your terminal and breaks the clickable link?

Ethan Park

Precisely! Now those wrapped links stay fully clickable as a single unified URL. And PR thirty five thousand added non blocking Control C interrupts, so pressing Control C actually cancels host commands immediately without freezing up your terminal UI.

Maya

Honestly, before any team deploys remote Code Mode hosts at scale, they should really audit their internal proxy rules and container lifecycle cleanup routines. But man, being able to offload execution cleanly over WebSockets changes everything for lightweight dev rigs.

Ethan Park

It really does. Alright, that is the latest in Codex zero point fourteen six. Catch you next time!